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

How to clip solution variables such as absolute pressure, velocity ...

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By ghorrocks

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 9, 2015, 04:29
Post How to clip solution variables such as absolute pressure, velocity ...
  #1
Senior Member
 
Behrooz Jamshidi
Join Date: Apr 2013
Posts: 110
Rep Power: 13
CFD-fellow is on a distinguished road
Hi
In my simulation I know maximum pressure and velocity in my domain and Im looking for a way to force the solver to clip these values (not clipping properties).
For example in Fluent one can set min and max values of pressure velocity and some other variables, and Im sure CFX has too but cant find it!
Any help would be appreciated.
CFD-fellow is offline   Reply With Quote

Old   February 9, 2015, 05:26
Default
  #2
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,703
Rep Power: 143
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
This is possible but is a really bad idea. It is a bad idea because it means the gradients of pressure and velocity go bezerk where it clips and that makes the numerics horribly unstable. You should allow the solver to undershoot and overshoot as it progresses to convergence. You will only make things harder by clipping.
ghorrocks is offline   Reply With Quote

Old   February 9, 2015, 05:42
Default
  #3
Senior Member
 
Behrooz Jamshidi
Join Date: Apr 2013
Posts: 110
Rep Power: 13
CFD-fellow is on a distinguished road
Hi Glenn
I know that this is not a good task but I want to try it. Where can I adjust these parameters?
CFD-fellow is offline   Reply With Quote

Old   February 9, 2015, 05:56
Default
  #4
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,703
Rep Power: 143
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
I can't guarantee this will work, but try this:

Open {CFX_ROOT}/etc/VARIABLES

Find the pressure section. It has a keyword "Component Bounds Flag = No", switch that to Yes. Then the "Component Lower/Upper Bounds = ..." keywords should (might?) become active.

And try your luck in the velocity section. Even less guarantees that it works there.

And don't forget to backup the VARIABLES file before you do this otherwise you might kill your CFX installation.
aero.senthilkumar likes this.
ghorrocks is offline   Reply With Quote

Old   February 9, 2015, 11:36
Default
  #5
Senior Member
 
Edmund Singer P.E.
Join Date: Aug 2010
Location: Minneapolis, MN
Posts: 511
Rep Power: 20
singer1812 is on a distinguished road
Something that might work without involving changing Variables section is to add a source term turns on or off with your criteria. It will not strictly limit the variable, but you can influence the magnitude with a source or sink.

For example if you want to clip temperature at the lower limits you can do the following. The below example will pump energy into a node when its temperature falls below 20K. The trick on the source terms is to get the equation on the source to behave in a way you want it to (dont want to be pumping in too much energy as the temperature will over compensate):

SOURCES:
EQUATION SOURCE: energy
Option = Source
Source = Density*1004[J kg^-1 K^-1]/tstep*(20 \
[K]-T)*step(20-T*1[K^-1])
Source Coefficient = Density*1004[J kg^-1 K^-1]/tstep
END
END
singer1812 is offline   Reply With Quote

Old   February 9, 2015, 11:49
Default
  #6
Senior Member
 
Join Date: Jun 2009
Posts: 1,804
Rep Power: 32
Opaque will become famous soon enough
Clipping solution variables such as velocity, pressure, enthalpy, turbulence kinetic energy, etc is a bad practice since you are forcing the solver to satisfy two conditions: the solution the equation is trying to converge to, and the maximum/minimum artificially imposed value. You will observe erratic convergence if any at all.

If your variable is physically limited, i.e. bounded, the transport equation must include such constrain such the equations fed to the solution algorithm can converge to both constrains: conservation of something, and bounded.

Singer1812's suggestion is a good idea, though I rather see it with the Source Coefficient only since the addition of the source could let it converge to an unexpected solution, and you will need to verify the source added is negligible to rely on the converged results. This is approach is basically an additional under-relaxation of the equations greater than the one imposed by the software.

My 2 cents.

Last edited by Opaque; February 9, 2015 at 19:48.
Opaque is offline   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
Difficulty in calculating angular velocity of Savonius turbine simulation alfaruk CFX 14 March 17, 2017 06:08
New pressure and velocity boundary condition derived from the mixedFvPatchField.C becklei OpenFOAM Running, Solving & CFD 0 June 14, 2014 05:01
Boundary Conditions : Total Pressure or Velocity Gearb0x OpenFOAM Running, Solving & CFD 2 February 28, 2011 21:18
how to print the results from CFX-4.2 cfd_99 Main CFD Forum 5 June 21, 1999 09:23
Fluent-V5,Turbomachinery (stagnation pressure live its own life) Alberto Tamm Main CFD Forum 19 May 27, 1999 14:42


All times are GMT -4. The time now is 11:12.