|
[Sponsors] |
Exporting Transient results as a function of space and time |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
December 5, 2017, 09:12 |
Exporting Transient results as a function of space and time
|
#1 |
New Member
Ran
Join Date: Dec 2016
Posts: 6
Rep Power: 9 |
Hello all,
I've searched the forums but found only results for transient results a function of time and for a single coordinate. I made a transient simulation, in CFD-Post i created a line and made a chart with the pressure as a function of X on that line like so (attached image): I know to export the data to a .csv file, but how i can do it automaticly for all time steps, and hopefull to one chart where i have a matrix where the columns are for time and rows are for X or vice-versa ? Thanks alot ! |
|
December 5, 2017, 18:30 |
|
#2 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,871
Rep Power: 144 |
There is a command line option to access the monitor point data, cfx5mondata. Look in the documentation for details on how to use it. You can then put it in a batch/script file and automate generation of CSV files like this.
|
|
December 6, 2017, 01:26 |
|
#3 |
New Member
Ran
Join Date: Dec 2016
Posts: 6
Rep Power: 9 |
Can I do this with a line defined in CFD-Post?
If not, how can i automate thw generation of monitor data points along some wall, i want to create many monitor points in order to have good resolution. Thank you. |
|
December 6, 2017, 01:33 |
|
#4 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,871
Rep Power: 144 |
If the line is in CFD-Post you can automate it using a session file. The easiest way to start with session files is to record a session file as you do the actions you are interested, then look at the recorded session file. You can edit it to include looping, variables and logic, then re-run it to do your automated actions.
|
|
December 6, 2017, 06:43 |
|
#5 |
New Member
Ran
Join Date: Dec 2016
Posts: 6
Rep Power: 9 |
Thank you !
I didn't know about the sessions in CFD-Post. I implemented what you said. created a session, in which i wasplotting and exporting one graph. Then i searched the forums to see how to edit the file and add a loop with Perl code. After that i wrote a Matlab script that automaticly loads all the files into a single matrix. Thanks a lot ! I added the codes for anyone that finds this post in the future and encountered a similar problem. Last edited by sniak; December 7, 2017 at 07:05. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Transient analysis with variable time step AcuConsole | Andrea_Formartis | Main CFD Forum | 3 | July 19, 2017 08:57 |
Run OpenFoam in 2 nodes of a cluster | WhiteW | OpenFOAM Running, Solving & CFD | 16 | December 20, 2016 01:51 |
Transient Run - Output "Time" in partial results? | evcelica | CFX | 2 | May 16, 2012 22:36 |
Variable BC in time and space for transient run | Porry | CFX | 2 | February 21, 2012 10:38 |
unsteady calcs in FLUENT | Sanjay Padhiar | Main CFD Forum | 1 | March 31, 1999 13:32 |