|
[Sponsors] |
export csv. file in each design point of a parametric solution |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
June 27, 2016, 06:58 |
export csv. file in each design point of a parametric solution
|
#1 |
New Member
Join Date: Jun 2016
Posts: 6
Rep Power: 10 |
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 |
|
June 27, 2016, 11:09 |
|
#2 |
Senior Member
Join Date: Jul 2011
Location: Berlin, Germany
Posts: 173
Rep Power: 15 |
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 |
|
June 28, 2016, 03:47 |
|
#3 | |
New Member
Join Date: Jun 2016
Posts: 6
Rep Power: 10 |
Quote:
|
||
June 28, 2016, 07:18 |
|
#4 |
New Member
Join Date: Jun 2016
Posts: 6
Rep Power: 10 |
Anyone has a better idea or has had the same problem as me?
|
|
June 28, 2016, 07:50 |
|
#5 |
Senior Member
urosgrivc
Join Date: Dec 2015
Location: Slovenija
Posts: 365
Rep Power: 12 |
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. |
|
June 28, 2016, 08:03 |
|
#6 | |
New Member
Join Date: Jun 2016
Posts: 6
Rep Power: 10 |
Quote:
Thank you so much for your help Vikun |
||
June 28, 2016, 08:04 |
|
#7 |
Senior Member
urosgrivc
Join Date: Dec 2015
Location: Slovenija
Posts: 365
Rep Power: 12 |
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. |
|
June 28, 2016, 08:10 |
|
#8 |
New Member
Join Date: Jun 2016
Posts: 6
Rep Power: 10 |
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).
|
|
July 1, 2016, 06:02 |
|
#9 |
New Member
Join Date: Jun 2016
Posts: 6
Rep Power: 10 |
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 |
|
July 1, 2016, 07:25 |
|
#10 |
Senior Member
Join Date: Jul 2011
Location: Berlin, Germany
Posts: 173
Rep Power: 15 |
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 |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
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 |