CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   CFX (https://www.cfd-online.com/Forums/cfx/)
-   -   export csv. file in each design point of a parametric solution (https://www.cfd-online.com/Forums/cfx/173762-export-csv-file-each-design-point-parametric-solution.html)

vikun June 27, 2016 05:58

export csv. file in each design point of a parametric solution
 
Hello everybody,
I'm doing a parametric simulation of a refrigeration pipe, refrigerated with water.
I have to do 75 simulations by changing the geometry, the inlet heat flux and the inlet velocity of the water.

I have defined all the design points by defining all the input parameters (Velocity inlet, inlet heat flux and the geometry variables imported from a solidworks file) and the output ones (Pressure drop (In-Out water), diference between Temperature in and out of the water and the average temperature of the inlet heat flux surface).

The problem is that I also need to export of every design point an excel archive (.csv) with the temperatures of each node in the inlet heat flux surface, to let me calculate in excel the standard deviation of the temperature in the surface in every configuration.

I know how to do it manually in CFX-post, just going to file->Export->Export.. and then defining the surface and the variable, but it can only be done for one case.

So I need your help, to see if there is a way to export this data file (.csv with the temperature of every node in the heat flux inlet surface) in every design point of the parametric simulation.
Maybe there is a command I don't know or maybe by scripting some commands in the command editor, I've never programmed in Perl language, I've been looking to some tutorials, but I didn't find a way to do it.

Thank you for your Help,
Vikun

monkey1 June 27, 2016 10:09

If you were looking for exporting "each time step" of a transient run then this would help
http://www.cfd-online.com/Forums/cfx...tml#post385850
but for parametric solutions I have no clue.
Nevertheless maybe the perl script will help you find the right way to do it.
At least it helped me to have a "template" and then iterate myself to the right solution by try and error :)

vikun June 28, 2016 02:47

Quote:

Originally Posted by monkey1 (Post 606780)
If you were looking for exporting "each time step" of a transient run then this would help
http://www.cfd-online.com/Forums/cfx...tml#post385850
but for parametric solutions I have no clue.
Nevertheless maybe the perl script will help you find the right way to do it.
At least it helped me to have a "template" and then iterate myself to the right solution by try and error :)

Thank you for your answer, I'm not looking for exporting each time step of a transient run, but I'll take a look to the script and I'll try to change it in order to let me do what I want.

vikun June 28, 2016 06:18

Anyone has a better idea or has had the same problem as me?

urosgrivc June 28, 2016 06:50

You could calculate the standard deviation in cfxPOST
-> http://www.cfd-online.com/Forums/cfx...-cfx-post.html

than set it as an output parameter it would save you hours of time.

let almighty ansysCFX do the job for you why bother spending time with exel if it is unnecessary.

vikun June 28, 2016 07:03

Quote:

Originally Posted by urosgrivc (Post 606965)
You could calculate the standard deviation in cfxPOST
-> http://www.cfd-online.com/Forums/cfx...-cfx-post.html

than set it as an output parameter it would save you hours of time.

let almighty ansysCFX do the job for you why bother spending time with exel if it is unnecessary.

That would be great! but which expression may I use to know the Xi values?

Thank you so much for your help

Vikun

urosgrivc June 28, 2016 07:04

Well Mr. Glenn stated in the link:

The CEL expression is count().

AND areaaverage() can be used to get average on that surface

I hawent looked at this topic deeply enough yet. This is just a thought and it should work beautifully.
Thanks goes to BalanceChen and ghorrocks.

vikun June 28, 2016 07:10

Quote:

Originally Posted by urosgrivc (Post 606971)
Well Mr. Glenn stated in the link:

The CEL expression is count().

AND areaaverage() can be used to get average on that surface

Of course Count is to know the number of nodes in the surface, and areaave to know the average temperature in the surface but the problem is to get the temperature of each node in the surface (Xi values in the post mentioned before).

vikun July 1, 2016 05:02

Hello Everybody again,

I've created an script that exports the csv file that I want, the problem is that I don't know how can I do to save it in CFX-post, to let the program execute that script automatically in every simulation.

If I open the cfx-post and I paste the code in the command editor and click to process, it creates the csv file.

So, there is a way to make the program execute that code in every simulation of the 75 parametrics simulations I've prepared? (in order to export the 75 csv files)


Thank you so much,

Vikun

monkey1 July 1, 2016 06:25

Don't know how to automate the process, but when you save your script as a .cse file you can "play" it directly by clicking on "Session->Play Session" in CFX Post.
No need to paste it every time to the command editor


All times are GMT -4. The time now is 01:48.