CFD Online Logo CFD Online URL
Home > Forums > CFX

plotting transiente results

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

LinkBack Thread Tools Display Modes
Old   January 17, 2003, 05:02
Default plotting transiente results
Michael Rasmussen
Posts: n/a

I have a bit of a problem figuring out how I can get the results from a transient simulation out of CFX 5.5.1. What I would like is a time serie of the velocity in a point - preferable in a text format for import in a spreadsheet.

1) I have saved the results for each timestep for my velocity: This results in 555 files: 1.trn 2.trn,..... However The files are binary and I dont know which program can read them - POST will not accept the format - only for animation.

2) I looked at the export facility in the solvermanager. However, The form is not fixed in my windows version - so it is impossible to select the resultfile. - Besides I'm not sure that the formats possible can be used ? (as mentioned above, I would like a simple textfile I can import into a speadsheet or similar)

3) I also looked to set up a monitor in the solver manager - but that is only possible at a patch (e.g inlet) - and not for the velocity at a point.

Is there a workaround - or have I simply overlooked a facility ?

Regards Michael
  Reply With Quote

Old   January 17, 2003, 05:46
Default Re: plotting transiente results
Jens Bennetsen
Posts: n/a
Hi Michael

1) the only way to extract point data would be to go though at the data file for your simulation.

2) a better way would be to setup monitor point in your simulation, creat a ccl-file with your monitor point and includé it in your simulation.

3) after the simulation has finish, you can write out the data using cfx5dfile -read-monitor file.res > file.mon

4) the file.mon can then be read into a spreadsheet.


  Reply With Quote

Old   January 17, 2003, 06:45
Default Re: plotting transiente results
Posts: n/a
Hi Michael, Jens is right. ideally you would use the monitor point option and then the dfile command.

If you don't want to re run your job you could write some perl to extract you data from post. It will take a little time to run but its still possible. Create a point in post, then export the velocity using that point as a locator. As for the perl (cfx call it power syntax) I'm not 100% sure as what to put, but I'm sure it wouldn't take much to work out. Start by recording a session file to load a time step and then export the data. Then look at combining some perl into your session file to automate it.

good luck Bob
  Reply With Quote

Old   January 17, 2003, 18:15
Default Re: plotting transiente results
Posts: n/a
Actually monitor points are only possible on points, i.e. at a cartesian coordiate <x,y,z>. What gives you the impression this is only possible on a patch (inlet or otherwise)?

At any rate you should be able to use a monitor point to get the data you need. set up a graph in the solver monitor which plots your monitor point data and then use the "right click"->"export data" option to get a spreadsheet friendly version.

  Reply With Quote

Old   January 18, 2003, 16:33
Default Re: plotting transiente results
Michael Rasmussen
Posts: n/a
Hi everybody

I have tried the suggestions from Jens and Bob - and I now have a working routine for extracting the data

- Thanks

In the response to the question from Neale - Well I'm not sure - but it seems that when I select the monitor - only patches appears in the list - and only variables such as pressure and Momentum.

After inserting a point (and which data I want) via the ccl approach - suggested by jens - this point appears as an user monitor point which can be selected and plotted. Then I can use Neals suggestion by right-clicking at the monitor in the solver manager and saving the data.

Anyway - I wish that extracting data as time series in comming versions of the program will be a more straight forward procedure in the postprocessor - all the nessesary data are available - as they are used in the animation facility!. It would also be nice if the user points could be defined in for example in Build.

- Im sure that the Guy's and Girls at AEA are working day and night at this problem ;-)

Thanks and Regards

  Reply With Quote

Old   February 18, 2003, 09:30
Default Re: plotting transiente results
Michael Bo
Posts: n/a
<html>If you want to extract data from a point specified within Post after you have made your transient calculation, this script will work
Create a point in Post, named Point 1, where you want to monitor your transient behaviour.
Create a file, named mysession.cse containing the following

!open (OUTFILE, ">myData.dat");
!print OUTFILE "Timestep, Velocity U, Velocity V at Point 1 \n";
!for ($i=30; $i<=234; $i++) {
Current Timestep = $i
> load
!($Uvel, $units) = evaluate('probe(Velocity u)@Point 1');
!($Vvel, $units) = evaluate('probe(Velocity v)@Point 1');
!print OUTFILE "$i , $Uvel , $Vvel \n";
!close OUTFILE;

Play the file within Post from the menu Session/Play Session, and you are done!
Change the Timestep range and other variables for personal behaviour.
Michael Bo

  Reply With Quote


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
simulation results for k-w model and SST model Li CFX 7 June 29, 2007 04:19
Problems with repeating results Lee Siemens 4 May 26, 2006 03:39
Circular miniFlume experimental amp numerical results amelia OpenFOAM Running, Solving & CFD 11 September 4, 2005 22:42
Plotting Results on CFX-Post Claudia CFX 0 November 19, 2002 12:09
benchmark results stefan Siemens 3 September 10, 2001 09:48

All times are GMT -4. The time now is 20:13.