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

how to export variable value from results

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 14, 2008, 09:20
Default how to export variable value from results
  #1
Shrivathsa
Guest
 
Posts: n/a
i have a set of variables whose values i want frequently (say as in an optimization project). i don't want to go to cfx-post and access the function calculator to do the operation again and again. hence my question is:

how do we export for example area averaged velocity to a text file? the text file may 1. be generated automatically by the solver during the solution process. 2. be generated by the post processor, but there should be no human intervention (should happen through a command line operation).

For example, if we take the first tutorial problem of the static mixer, how do we export the area averaged velocity at the region "out" to a text file?
  Reply With Quote

Old   October 14, 2008, 10:33
Default Re: how to export variable value from results
  #2
LKF
Guest
 
Posts: n/a
I'm fairly new to CFX so there may be a much more effecient way to do this . . .

However, I would suggest recording a Session File in Post, and then making some edits to the file in a text editor to include the appropriate Perl commands which would write your desired set of variables to a file.

  Reply With Quote

Old   October 14, 2008, 21:37
Default Re: how to export variable value from results
  #3
Glenn Horrocks
Guest
 
Posts: n/a
Hi,

A better way is to put a monitor point as an output object and link it to a CEL expression of the areaAve() or whatever. Then it is automatically calculated as the simulation progresses. You can access it through the solver manager or if you feel brave you can extract it directly out of the mon file in the run directory.

Glenn Horrocks
  Reply With Quote

Old   October 15, 2008, 05:30
Default Re: how to export variable value from results
  #4
Shrivathsa
Guest
 
Posts: n/a
hi glenn,

thanks for your suggestion, i put in a monitor point, i did see the mon file being written with the required result.

the problem now is that once the solver completes the run, the directory which has the mon file is deleted. is there a way to preserve the directory containing the mon file, or at least the mon file?
  Reply With Quote

Old   October 15, 2008, 07:03
Default Re: how to export variable value from results
  #5
Shrivathsa
Guest
 
Posts: n/a
Glenn,

thanks for your advice, ignore my previous post as i now have a solution. the way to get back the monitor variable values is by using the following command: cfx5dfile results.res -read-monitor >out.txt
  Reply With Quote

Reply


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
Auto Export Transient results? eRzBeNgEl STAR-CCM+ 2 September 12, 2011 18:31
error in COMSOL:'ERROR:6164 Duplicate Variable' bhushas COMSOL 1 May 30, 2008 04:35
Export CFD Solver results to text file format Maik Main CFD Forum 2 May 23, 2008 01:34
Replace periodic by inlet-outlet pair lego CFX 3 November 5, 2002 20:09
CFX 5.5 results export N Menon CFX 1 January 3, 2002 20:53


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