{"id":164641,"date":"2023-03-17T08:58:16","date_gmt":"2023-03-17T08:58:16","guid":{"rendered":"\/knowledge\/forums\/topic\/how-to-obtain-a-list-of-domain-names-when-using-batch-session-files-in-cfd-post\/"},"modified":"2023-07-31T12:25:58","modified_gmt":"2023-07-31T12:25:58","slug":"how-to-obtain-a-list-of-domain-names-when-using-batch-session-files-in-cfd-post","status":"publish","type":"topic","link":"https:\/\/innovationspace.ansys.com\/knowledge\/forums\/topic\/how-to-obtain-a-list-of-domain-names-when-using-batch-session-files-in-cfd-post\/","title":{"rendered":"How to obtain a list of domain names, when using batch session files in CFD-Post?"},"content":{"rendered":"<p>The list of domains and the names of single domains can be extracted automatically in batch session files in CFD-Post, using the following commands:  CFD-Post 12: ==========  ! my $current_case_list = getValue(&#8220;DATA READER&#8221;, &#8220;Current Case List&#8221;); ! my @current_case_list = split \/s*,s*\/, $current_case_list; ! print &#8220;Current Cases: $current_case_listn&#8221;;  ! my $current_case_name = getValue(&#8220;DATA READER&#8221;, &#8220;Active Case Name&#8221;);  ! my $doms = getChildren(&#8220;$current_case_name&#8221;,&#8221;DOMAIN&#8221;); ! $doms =~ s\/DOMAIN:\/\/g; ! @row_names = sort @row_names; ! my $row_no = 0;  ! my @row_names = split(\/,\/, $doms );   ! print &#8220;Domains in current Case: $domsn&#8221;; ! print &#8220;@row_names: @row_namesn&#8221;; ! print &#8220;$row_names[1]n&#8221;;    CFX-Post 11: =========  In CFX-Post 11, the method for extracting domain lists and names is different than in CFD-Post 12, as CFX-Post 11 handles multiple cases loaded to Post differently   ! $doms = getChildren(&#8220;&#8221;, &#8220;DOMAIN&#8221;); ! $doms =~ s\/DOMAIN:\/\/g; ! @row_names = split(\/,\/, $doms ); $row_no = 0;  ! @row_names = sort @row_names; ! print &#8220;Domains: $domsn&#8221;; ! print &#8220;@row_names: @row_namesn&#8221;;<\/p>\n","protected":false},"template":"","class_list":["post-164641","topic","type-topic","status-publish","hentry","topic-tag-4663","topic-tag-cfd-post","topic-tag-fluid-dynamics","topic-tag-general","topic-tag-post-processing","topic-tag-rotating-machinery"],"aioseo_notices":[],"acf":[],"custom_fields":[{"0":{"_wp_page_template":["default"],"_bbp_last_active_time":["3-15-2023  20:20:28"],"_bbp_forum_id":["27796"],"_bbp_author_ip":["23.56.168.180"],"_btv_view_count":["1310"],"siebel_km_number":["839923"],"product_version":["12"],"km_published_date":["2008-12-12T00:00:00.000Z"],"family":["Fluid Dynamics"],"application_name":["CFD-Post"]},"test":"articlesansys-com"}],"_links":{"self":[{"href":"https:\/\/innovationspace.ansys.com\/knowledge\/wp-json\/wp\/v2\/topics\/164641","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/innovationspace.ansys.com\/knowledge\/wp-json\/wp\/v2\/topics"}],"about":[{"href":"https:\/\/innovationspace.ansys.com\/knowledge\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/innovationspace.ansys.com\/knowledge\/wp-json\/wp\/v2\/topics\/164641\/revisions"}],"wp:attachment":[{"href":"https:\/\/innovationspace.ansys.com\/knowledge\/wp-json\/wp\/v2\/media?parent=164641"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}