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....
|
hi,
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? neewbie |
neewbie,
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.... |
Hi,
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 |
Hi,
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! |
Create a chart or use perl script.
|
Hi,
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! EDIT 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! |
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). DATA READER:DATA READER Current Results File = Design_1_3_002.res Current Timestep = -1 Clear All Objects = false Keep Camera Position = true Force File Reload = true END > load # # loop on results # !for ($i=0;$i<=20; $i++){ # !$resstp=75 + 30 * $i; #Load in Time step #Time Step USER SCALAR VARIABLE:Timewrite Boundary Values = Conservative Calculate Global Range = Off Expression = Time Recipe = Expression END # # EXPRESSION EVALUATOR: Evaluated Expression = Time END > forceupdate EXPRESSION EVALUATOR DATA READER:DATA READER Current Timestep = $resstp END > load # !($VolTime, $tunits) = evaluate('volumeAve(Timewrite)@Domain 1'); # #Volume Averaged Pressure !($VolPres, $units) = evaluate('volumeAve(Pressure)@Domain 1'); !print OUTFILE "$VolTime $VolPres\n"; !} |
Quote:
How to load this script? I am in need of similar code where I could find output parameter (Force) of transient analysis for specific time steps among several times. |
All times are GMT -4. The time now is 16:55. |