


{"id":403974,"date":"2025-01-07T17:36:18","date_gmt":"2025-01-07T17:36:18","guid":{"rendered":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/exporting-solution-data-from-fluent-using-ansys-fluent-core\/"},"modified":"2025-01-07T17:36:18","modified_gmt":"2025-01-07T17:36:18","slug":"exporting-solution-data-from-fluent-using-ansys-fluent-core","status":"publish","type":"topic","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/exporting-solution-data-from-fluent-using-ansys-fluent-core\/","title":{"rendered":"Exporting solution data from Fluent using ansys-fluent-core"},"content":{"rendered":"<p>&lt;p&gt;Hi all,&lt;\/p&gt;&lt;p&gt;I am using ansys-fluent-core to write a python script to automate some simulations with different geometries and setup. I have a script that can import the different mesh files, setup and run the simulation, and save certain results. However, I need to export specific solution data, which in the GUI is done by file &gt; export &gt; solution data. I need to export static pressure, x-wall shear stress, x-face area, y-face area, and dx-velocity_dx in ascii format.&lt;\/p&gt;&lt;p&gt;ansys-fluent-core has a function for exporting solution data, which is solver.file.export.ascii(), which is what I am trying to use for this. This is the description of the arguments for the function:&lt;\/p&gt;&lt;p&gt;class ascii(Command)&lt;br&gt;&nbsp;| &nbsp;ascii(name: &#8216;Optional[str]&#8217; = None, parent=None)&lt;br&gt;&nbsp;|&lt;br&gt;&nbsp;| &nbsp;Write an ASCII file.&lt;br&gt;&nbsp;|&lt;br&gt;&nbsp;| &nbsp;Parameters&lt;br&gt;&nbsp;| &nbsp;&#8212;&#8212;&#8212;-&lt;br&gt;&nbsp;| &nbsp; &nbsp; &nbsp;file_name : str&lt;br&gt;&nbsp;| &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Enter the desired file name to export.&lt;br&gt;&nbsp;| &nbsp; &nbsp; &nbsp;surface_name_list : List&lt;br&gt;&nbsp;| &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;List of surfaces to export.&lt;br&gt;&nbsp;| &nbsp; &nbsp; &nbsp;delimiter : str&lt;br&gt;&nbsp;| &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Select the delimiter separating the fields.&lt;br&gt;&nbsp;| &nbsp; &nbsp; &nbsp;cell_func_domain : List&lt;br&gt;&nbsp;| &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Select the list of quantities to export.&lt;br&gt;&nbsp;| &nbsp; &nbsp; &nbsp;location : str&lt;br&gt;&nbsp;| &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Select the node or cell-center to export data values.&lt;\/p&gt;&lt;p&gt;So the line of code I&#8217;m attempting to use is this:&lt;\/p&gt;&lt;p&gt;solver.file.export.ascii(file_name = solution_data_file, surface_name_list = [&#8220;no_slip_walls&#8221;], delimiter = &#8220;space&#8221;, location = &#8220;cell-center&#8221;, cell_func_domain = [&#8220;Static_Pressure&#8221;])&lt;\/p&gt;&lt;p&gt;where solution_data_file is a string with the correct file name and path and no_slip_walls is a defined named selction in the mesh file.&lt;\/p&gt;&lt;p&gt;The issue I am having is that I don&#8217;t know what the cell_func_domain list expects as an argument. This should be the list that specifies that I want to export static pressure, x-wall shear stress, etc, but I don&#8217;t know what format these should be in in the list. I have tried many variations, such as [&#8220;Static_Pressure&#8221;], [&#8220;static_pressure&#8221;], [&#8220;static pressure&#8221;], etc., but I always get an error that the value is not allowed:&lt;\/p&gt;&lt;p&gt;RuntimeError: Values contain disallowed entries&lt;br&gt;Error Object: (Static_Pressure)&lt;\/p&gt;&lt;p&gt;I could not find any documentation or examples (I searched through the pyfluent documentation and their github) that explain this either, so if anyone knows how the specific quantities are supposed to be specified or where to look for better documentation I would really appreciate it.&lt;\/p&gt;&lt;p&gt;Thanks,&lt;\/p&gt;&lt;p&gt;Kyle&lt;\/p&gt;<\/p>\n","protected":false},"template":"","class_list":["post-403974","topic","type-topic","status-publish","hentry","topic-tag-fluent","topic-tag-python-scripting"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.10 - aioseo.com -->\n\t<meta name=\"description\" content=\"Hi all,I am using ansys-fluent-core to write a python script to automate some simulations with different geometries and setup. I have a script that can import the different mesh files, setup and run the simulation, and save certain results. However, I need to export specific solution data, which in the GUI is done by file\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<link rel=\"canonical\" href=\"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/exporting-solution-data-from-fluent-using-ansys-fluent-core\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 4.9.10\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"Ansys Learning Forum | Ansys Innovation Space\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"Exporting solution data from Fluent using ansys-fluent-core | Ansys Learning Forum\" \/>\n\t\t<meta property=\"og:description\" content=\"Hi all,I am using ansys-fluent-core to write a python script to automate some simulations with different geometries and setup. I have a script that can import the different mesh files, setup and run the simulation, and save certain results. However, I need to export specific solution data, which in the GUI is done by file\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/exporting-solution-data-from-fluent-using-ansys-fluent-core\/\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2025-01-07T17:36:18+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2025-01-07T17:36:18+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Exporting solution data from Fluent using ansys-fluent-core | Ansys Learning Forum\" \/>\n\t\t<meta name=\"twitter:description\" content=\"Hi all,I am using ansys-fluent-core to write a python script to automate some simulations with different geometries and setup. I have a script that can import the different mesh files, setup and run the simulation, and save certain results. However, I need to export specific solution data, which in the GUI is done by file\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic\\\/exporting-solution-data-from-fluent-using-ansys-fluent-core\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/topics\\\/#listItem\",\"name\":\"Topics\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/topics\\\/#listItem\",\"position\":2,\"name\":\"Topics\",\"item\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/topics\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic-tag\\\/fluent\\\/#listItem\",\"name\":\"fluent\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic-tag\\\/fluent\\\/#listItem\",\"position\":3,\"name\":\"fluent\",\"item\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic-tag\\\/fluent\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic\\\/exporting-solution-data-from-fluent-using-ansys-fluent-core\\\/#listItem\",\"name\":\"Exporting solution data from Fluent using ansys-fluent-core\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/topics\\\/#listItem\",\"name\":\"Topics\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic\\\/exporting-solution-data-from-fluent-using-ansys-fluent-core\\\/#listItem\",\"position\":4,\"name\":\"Exporting solution data from Fluent using ansys-fluent-core\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic-tag\\\/fluent\\\/#listItem\",\"name\":\"fluent\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/#organization\",\"name\":\"Ansys Learning Forum\",\"description\":\"Ansys Innovation Space\",\"url\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic\\\/exporting-solution-data-from-fluent-using-ansys-fluent-core\\\/#webpage\",\"url\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic\\\/exporting-solution-data-from-fluent-using-ansys-fluent-core\\\/\",\"name\":\"Exporting solution data from Fluent using ansys-fluent-core | Ansys Learning Forum\",\"description\":\"Hi all,I am using ansys-fluent-core to write a python script to automate some simulations with different geometries and setup. I have a script that can import the different mesh files, setup and run the simulation, and save certain results. However, I need to export specific solution data, which in the GUI is done by file\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic\\\/exporting-solution-data-from-fluent-using-ansys-fluent-core\\\/#breadcrumblist\"},\"datePublished\":\"2025-01-07T17:36:18+00:00\",\"dateModified\":\"2025-01-07T17:36:18+00:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/#website\",\"url\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/\",\"name\":\"Ansys Learning Forum\",\"description\":\"Ansys Innovation Space\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Exporting solution data from Fluent using ansys-fluent-core | Ansys Learning Forum","description":"Hi all,I am using ansys-fluent-core to write a python script to automate some simulations with different geometries and setup. I have a script that can import the different mesh files, setup and run the simulation, and save certain results. However, I need to export specific solution data, which in the GUI is done by file","canonical_url":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/exporting-solution-data-from-fluent-using-ansys-fluent-core\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"BreadcrumbList","@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/exporting-solution-data-from-fluent-using-ansys-fluent-core\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum#listItem","position":1,"name":"Home","item":"https:\/\/innovationspace.ansys.com\/forum","nextItem":{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum\/topics\/#listItem","name":"Topics"}},{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum\/topics\/#listItem","position":2,"name":"Topics","item":"https:\/\/innovationspace.ansys.com\/forum\/topics\/","nextItem":{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic-tag\/fluent\/#listItem","name":"fluent"},"previousItem":{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic-tag\/fluent\/#listItem","position":3,"name":"fluent","item":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic-tag\/fluent\/","nextItem":{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/exporting-solution-data-from-fluent-using-ansys-fluent-core\/#listItem","name":"Exporting solution data from Fluent using ansys-fluent-core"},"previousItem":{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum\/topics\/#listItem","name":"Topics"}},{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/exporting-solution-data-from-fluent-using-ansys-fluent-core\/#listItem","position":4,"name":"Exporting solution data from Fluent using ansys-fluent-core","previousItem":{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic-tag\/fluent\/#listItem","name":"fluent"}}]},{"@type":"Organization","@id":"https:\/\/innovationspace.ansys.com\/forum\/#organization","name":"Ansys Learning Forum","description":"Ansys Innovation Space","url":"https:\/\/innovationspace.ansys.com\/forum\/"},{"@type":"WebPage","@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/exporting-solution-data-from-fluent-using-ansys-fluent-core\/#webpage","url":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/exporting-solution-data-from-fluent-using-ansys-fluent-core\/","name":"Exporting solution data from Fluent using ansys-fluent-core | Ansys Learning Forum","description":"Hi all,I am using ansys-fluent-core to write a python script to automate some simulations with different geometries and setup. I have a script that can import the different mesh files, setup and run the simulation, and save certain results. However, I need to export specific solution data, which in the GUI is done by file","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/innovationspace.ansys.com\/forum\/#website"},"breadcrumb":{"@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/exporting-solution-data-from-fluent-using-ansys-fluent-core\/#breadcrumblist"},"datePublished":"2025-01-07T17:36:18+00:00","dateModified":"2025-01-07T17:36:18+00:00"},{"@type":"WebSite","@id":"https:\/\/innovationspace.ansys.com\/forum\/#website","url":"https:\/\/innovationspace.ansys.com\/forum\/","name":"Ansys Learning Forum","description":"Ansys Innovation Space","inLanguage":"en-US","publisher":{"@id":"https:\/\/innovationspace.ansys.com\/forum\/#organization"}}]},"og:locale":"en_US","og:site_name":"Ansys Learning Forum | Ansys Innovation Space","og:type":"article","og:title":"Exporting solution data from Fluent using ansys-fluent-core | Ansys Learning Forum","og:description":"Hi all,I am using ansys-fluent-core to write a python script to automate some simulations with different geometries and setup. I have a script that can import the different mesh files, setup and run the simulation, and save certain results. However, I need to export specific solution data, which in the GUI is done by file","og:url":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/exporting-solution-data-from-fluent-using-ansys-fluent-core\/","article:published_time":"2025-01-07T17:36:18+00:00","article:modified_time":"2025-01-07T17:36:18+00:00","twitter:card":"summary_large_image","twitter:title":"Exporting solution data from Fluent using ansys-fluent-core | Ansys Learning Forum","twitter:description":"Hi all,I am using ansys-fluent-core to write a python script to automate some simulations with different geometries and setup. I have a script that can import the different mesh files, setup and run the simulation, and save certain results. However, I need to export specific solution data, which in the GUI is done by file"},"aioseo_meta_data":{"post_id":"403974","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"schema_type":"default","schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"limit_modified_date":false,"created":"2025-10-19 11:03:58","updated":"2026-09-17 15:46:48","ai":null,"breadcrumb_settings":null,"seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/innovationspace.ansys.com\/forum\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/innovationspace.ansys.com\/forum\/topics\/\" title=\"Topics\">Topics<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic-tag\/fluent\/\" title=\"fluent\">fluent<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tExporting solution data from Fluent using ansys-fluent-core\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/innovationspace.ansys.com\/forum"},{"label":"Topics","link":"https:\/\/innovationspace.ansys.com\/forum\/topics\/"},{"label":"fluent","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic-tag\/fluent\/"},{"label":"Exporting solution data from Fluent using ansys-fluent-core","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/exporting-solution-data-from-fluent-using-ansys-fluent-core\/"}],"acf":[],"custom_fields":[{"0":{"_bbp_forum_id":["27792"],"_bbp_topic_id":["403974"],"_bbp_subscription":["473582","39507"],"_bbp_author_ip":["71.104.108.251"],"_bbp_last_reply_id":["408479"],"_bbp_last_active_id":["408479"],"_bbp_last_active_time":["2025-02-05 13:43:06"],"_bbp_reply_count":["1"],"_bbp_reply_count_hidden":["0"],"_bbp_voice_count":["2"],"_bbp_engagement":["473582","39507"],"_btv_view_count":["1495"],"_bbp_topic_status":["unanswered"]},"test":"wheeler-kynortheastern-edu"}],"_links":{"self":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/403974","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics"}],"about":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/403974\/revisions"}],"wp:attachment":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/media?parent=403974"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}