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

Exporting Transient results as a function of space and time

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

Like Tree1Likes
  • 1 Post By ghorrocks

Reply
 
LinkBack Thread Tools Display Modes
Old   December 5, 2017, 09:12
Default Exporting Transient results as a function of space and time
  #1
New Member
 
Ran
Join Date: Dec 2016
Posts: 6
Rep Power: 3
sniak is on a distinguished road
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 !
Attached Images
File Type: jpg PvX.jpg (69.4 KB, 20 views)
sniak is offline   Reply With Quote

Old   December 5, 2017, 18:30
Default
  #2
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 14,311
Rep Power: 110
ghorrocks is a jewel in the roughghorrocks is a jewel in the roughghorrocks is a jewel in the roughghorrocks is a jewel in the rough
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.
ghorrocks is offline   Reply With Quote

Old   December 6, 2017, 01:26
Default
  #3
New Member
 
Ran
Join Date: Dec 2016
Posts: 6
Rep Power: 3
sniak is on a distinguished road
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.
sniak is offline   Reply With Quote

Old   December 6, 2017, 01:33
Default
  #4
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 14,311
Rep Power: 110
ghorrocks is a jewel in the roughghorrocks is a jewel in the roughghorrocks is a jewel in the roughghorrocks is a jewel in the rough
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.
sniak likes this.
ghorrocks is offline   Reply With Quote

Old   December 6, 2017, 06:43
Default
  #5
New Member
 
Ran
Join Date: Dec 2016
Posts: 6
Rep Power: 3
sniak is on a distinguished road
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.
Attached Files
File Type: zip SessionTest.zip (1.8 KB, 1 views)

Last edited by sniak; December 7, 2017 at 07:05.
sniak is offline   Reply With Quote

Reply

Thread Tools
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 On
Pingbacks are On
Refbacks are On


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 07: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 21: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 12:32


All times are GMT -4. The time now is 04:40.