CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > CFX

export csv. file in each design point of a parametric solution

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree1Likes
  • 1 Post By monkey1

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 27, 2016, 06:58
Default export csv. file in each design point of a parametric solution
  #1
New Member
 
Join Date: Jun 2016
Posts: 6
Rep Power: 10
vikun is on a distinguished road
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
vikun is offline   Reply With Quote

Old   June 27, 2016, 11:09
Default
  #2
Senior Member
 
Join Date: Jul 2011
Location: Berlin, Germany
Posts: 173
Rep Power: 15
monkey1 is on a distinguished road
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
monkey1 is offline   Reply With Quote

Old   June 28, 2016, 03:47
Default
  #3
New Member
 
Join Date: Jun 2016
Posts: 6
Rep Power: 10
vikun is on a distinguished road
Quote:
Originally Posted by monkey1 View Post
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 is offline   Reply With Quote

Old   June 28, 2016, 07:18
Default
  #4
New Member
 
Join Date: Jun 2016
Posts: 6
Rep Power: 10
vikun is on a distinguished road
Anyone has a better idea or has had the same problem as me?
vikun is offline   Reply With Quote

Old   June 28, 2016, 07:50
Default
  #5
Senior Member
 
urosgrivc
Join Date: Dec 2015
Location: Slovenija
Posts: 365
Rep Power: 12
urosgrivc is on a distinguished road
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.
urosgrivc is offline   Reply With Quote

Old   June 28, 2016, 08:03
Default
  #6
New Member
 
Join Date: Jun 2016
Posts: 6
Rep Power: 10
vikun is on a distinguished road
Quote:
Originally Posted by urosgrivc View Post
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
vikun is offline   Reply With Quote

Old   June 28, 2016, 08:04
Default
  #7
Senior Member
 
urosgrivc
Join Date: Dec 2015
Location: Slovenija
Posts: 365
Rep Power: 12
urosgrivc is on a distinguished road
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.
urosgrivc is offline   Reply With Quote

Old   June 28, 2016, 08:10
Default
  #8
New Member
 
Join Date: Jun 2016
Posts: 6
Rep Power: 10
vikun is on a distinguished road
Quote:
Originally Posted by urosgrivc View Post
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 is offline   Reply With Quote

Old   July 1, 2016, 06:02
Default
  #9
New Member
 
Join Date: Jun 2016
Posts: 6
Rep Power: 10
vikun is on a distinguished road
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
vikun is offline   Reply With Quote

Old   July 1, 2016, 07:25
Default
  #10
Senior Member
 
Join Date: Jul 2011
Location: Berlin, Germany
Posts: 173
Rep Power: 15
monkey1 is on a distinguished road
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
vikun likes this.
monkey1 is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[OpenFOAM.org] Error creating ParaView-4.1.0 OpenFOAM 2.3.0 tlcoons OpenFOAM Installation 13 April 20, 2016 18:34
what is swap4foam ?? AB08 OpenFOAM 28 February 2, 2016 02:22
[swak4Foam] Problem installing swak_2.x for OpenFoam-2.4.0 towanda OpenFOAM Community Contributions 6 September 5, 2015 22:03
centOS 5.6 : paraFoam not working yossi OpenFOAM Installation 2 October 9, 2013 02:41
[OpenFOAM] Annoying issue of automatic "Rescale to Data Range " with paraFoam/paraview 3.12 keepfit ParaView 60 September 18, 2013 04:23


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