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

CFD-Post: minVal and global minimum different values

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

Like Tree4Likes
  • 1 Post By ghorrocks
  • 1 Post By Opaque
  • 1 Post By ghorrocks
  • 1 Post By ghorrocks

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 7, 2023, 07:58
Default CFD-Post: minVal and global minimum different values
  #1
New Member
 
sofia
Join Date: Jul 2021
Posts: 5
Rep Power: 5
dsofi32 is on a distinguished road
When doing a volumetric rendering of Pressure, both the Global and Local minimum value are -14.78 Pa. Yet, when I create the expression "minVal(Pressure)@part_1", the result is -40.4 Pa.


What is CFD-Post's expression used to calculate each value? I would like an expression to calculate, for each time-step of my simulation, the minimum pressure value of the volumetric rendering.


Thanks in advance for the help.
dsofi32 is offline   Reply With Quote

Old   June 7, 2023, 20:13
Default
  #2
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,862
Rep Power: 144
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
You have to be careful when you look at minimum values (or maximums). They are likely to be highly mesh sensitive. Also be aware of the general numerical modelling advice that taking the max or min of a function amplifies noise (whereas means and medians reduces it). So it is always going to be hard to get a reliable number on the maximum or minimum of a simulation variable.

The difference between the global/local minimum and the CEL expression is likely to be because it is evaluated on different locations in the control volume. CFD-Post just uses the nodal values but the solver has the full resolution results with integration point values as well - so CEL done in the solver is evaluated on a finer and more accurate variable field than CFD-Post. The difference should reduce with mesh refinement (unless the minimum is associated with a step change effect like a shock wave).
dsofi32 likes this.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum.
ghorrocks is offline   Reply With Quote

Old   June 8, 2023, 10:45
Default
  #3
Senior Member
 
Join Date: Jun 2009
Posts: 1,875
Rep Power: 33
Opaque will become famous soon enough
In addition, what is "part_1"?

Does include any boundaries? If so, are you using hybrid or conservative values when visualizing, or computing the minVal() function?

If part_1 is defined as mesh location, or physics location in CFX-Pre, you may also want to evaluate minVal(Pressure)@part_1 as a monitor point and compare vs CFD-Post.

You also mentioned transient, so be careful with Global. Is Global on the locator, or Global for the simulation (transient minimum included)?
dsofi32 likes this.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum.
Opaque is offline   Reply With Quote

Old   June 12, 2023, 06:20
Default
  #4
New Member
 
sofia
Join Date: Jul 2021
Posts: 5
Rep Power: 5
dsofi32 is on a distinguished road
Thank you very much for your reply @Opaque. To answer your questions:
- "part_1" is the fluid domain and I think it includes everything, including the boundaries. I am not familiar with "mesh location", the geometry was imported and selected as a Fluid in DesignModeler, if that helps.

- I am not sure what "hybrid or conservative values" means. I did a volume rendering of pressure and looked at the minimum value of the scale, and the minVal was used in an expression.
- Regarding the Global aspect, I have results from Fluent for several time steps, and I tested this with a different time step and the minimum values were different from these (and from each other, once again). So I don't think Global values are related to time, but instead related to the geometry.


Is there a way to find the minimum pressure through another method in CFD-Post?
dsofi32 is offline   Reply With Quote

Old   June 12, 2023, 06:23
Default
  #5
New Member
 
sofia
Join Date: Jul 2021
Posts: 5
Rep Power: 5
dsofi32 is on a distinguished road
Thanks for the explanation @ghorrocks.


If I were to plot the pressure rendering and picked the CEL expression (which I am assuming is the minVal), then wouldn't CFD-Post return an error, since the minimum I picked is lower than the global/local minimum?
dsofi32 is offline   Reply With Quote

Old   June 12, 2023, 06:35
Default
  #6
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,862
Rep Power: 144
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
Quote:
If I were to plot the pressure rendering and picked the CEL expression (which I am assuming is the minVal), then wouldn't CFD-Post return an error, since the minimum I picked is lower than the global/local minimum?
I do not understand what you are saying - but why not just try it and find out?
dsofi32 likes this.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum.
ghorrocks is offline   Reply With Quote

Old   June 12, 2023, 07:34
Default
  #7
New Member
 
sofia
Join Date: Jul 2021
Posts: 5
Rep Power: 5
dsofi32 is on a distinguished road
Hello again @ghorrocks


I think I wasn't clear enough in my reply. Since the minimum Global value measured is -14.78 Pa, if I specified a different minimum (in this case, using minVal which returns -40.4 Pa), CFD-Post could return an error. But you are right, I could test this out and confirm, but I do not think it is necessary.


Do you know any other ways of returning the minimum of the pressure for the chosen time step? This way I could potentially validate one of the two values.
dsofi32 is offline   Reply With Quote

Old   June 12, 2023, 08:13
Default
  #8
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,862
Rep Power: 144
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
The best, and most accurate way of getting the minimum pressure in each time step is to define a monitor point with the CEL expression minVal(p)@region name. Then rerun the simulation and the solver will output the minimum value with the full integration point accuracy. You can get the data in the solver manager.
dsofi32 likes this.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum.
ghorrocks is offline   Reply With Quote

Reply

Tags
cfd-post, expression, minval, variable, volumetric rendering

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are On
Refbacks are On



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