CFD Online Discussion Forums

CFD Online Discussion Forums (
-   CFX (
-   -   Find X,Y,Z Location of maxVal (CFX-Post) (

andygir November 16, 2010 17:25

Find X,Y,Z Location of maxVal (CFX-Post)
I have done CFD studies previously but i am new to the CFX-post application.... I am simulating a 3D airfoil to study the wing tip vorticity of the flow in this region... I have created a table to find the max vorticity magnitude at different downstream locations using maxVal(Expression)@(Location) in the table cells... Now I want to find the X,Y,Z coordinates of this value and input them to the table i have created; however, i have not been able to do this.... Does anyone know how to do this or a different way to track the vortex core line....

mvoss November 17, 2010 04:06


you can use the Point@ValueMaximum and than look for the Coord. of the Points. Thatīs without scripting and not for many points.
By the way, if you set set the downstream positions why do you want to know the Coord. again?


andygir November 17, 2010 11:20


Thanks for your info... I set a point at the maximum value of my vorticity magnitude variable and got all the information from there... Pretty simple but as I told you I am new to this tool....

bhatiadinesh November 18, 2010 02:55

You can directly go in File -> Export, Select the points generated by the software and in that select the variable related to the point which you want to export, in that window check export geometry information as well.
- Dinesh

cheche December 22, 2010 12:18


would anyone tell me how or point me to where it is explained how this could be done for a transient simulation? Trying to get the coordinates of maxVal(Velocity)@plane 1 for each timestep for example?

thanks in advance!

singer1812 December 22, 2010 18:57

Create a chart or use perl script.

cheche December 23, 2010 09:17


Thanks for the reply!
I've been playing around with the chart tool but haven't been able to obtain x,y,z values for my maxVal.

Do you think you help me out a bit with the script, I've never used this method before?

Also I read I could achieve this using a FORTRAN subroutine, any ideas/help on this?

once again thanks in advance!


Found how to do it:

Define a point by the min or max of your variable.
Create a new expression: probe(y)@point 1
Create a chart of the expression as a function of time and voila...

thanks for your help!

singer1812 December 23, 2010 11:09

It is best to do this with a chart. Just transient chart the expression, with x being time. It will cycle through and get your results for you.

If you want to forge ahead with perl, see below. There is logic in that script to skip some timesteps (we didnt want to pull data from every transient file).

Current Results File = Design_1_3_002.res
Current Timestep = -1
Clear All Objects = false
Keep Camera Position = true
Force File Reload = true
> load
# loop on results
!for ($i=0;$i<=20; $i++){
!$resstp=75 + 30 * $i;
#Load in Time step
#Time Step
Boundary Values = Conservative
Calculate Global Range = Off
Expression = Time
Recipe = Expression
Evaluated Expression = Time
Current Timestep = $resstp
> load
!($VolTime, $tunits) = evaluate('volumeAve(Timewrite)@Domain 1');
#Volume Averaged Pressure
!($VolPres, $units) = evaluate('volumeAve(Pressure)@Domain 1');
!print OUTFILE "$VolTime $VolPres\n";

All times are GMT -4. The time now is 05:44.