|
[Sponsors] |
October 14, 2008, 10:20 |
how to export variable value from results
|
#1 |
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? |
|
October 14, 2008, 11:33 |
Re: how to export variable value from results
|
#2 |
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. |
|
October 14, 2008, 22:37 |
Re: how to export variable value from results
|
#3 |
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 |
|
October 15, 2008, 06:30 |
Re: how to export variable value from results
|
#4 |
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? |
|
October 15, 2008, 08:03 |
Re: how to export variable value from results
|
#5 |
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 |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Auto Export Transient results? | eRzBeNgEl | STAR-CCM+ | 2 | September 12, 2011 19:31 |
error in COMSOL:'ERROR:6164 Duplicate Variable' | bhushas | COMSOL | 1 | May 30, 2008 05:35 |
Export CFD Solver results to text file format | Maik | Main CFD Forum | 2 | May 23, 2008 02:34 |
Replace periodic by inlet-outlet pair | lego | CFX | 3 | November 5, 2002 21:09 |
CFX 5.5 results export | N Menon | CFX | 1 | January 3, 2002 21:53 |