|
[Sponsors] |
January 21, 2020, 07:29 |
Including limiters in fvOptions
|
#1 |
New Member
Join Date: Jan 2020
Posts: 6
Rep Power: 6 |
Dear all,
I'd like to know if there is a way to include limiters on equation variables such as p, U, etc. (max and min values) in the case of using SRFSimpleFoam, simpleFoam, etc. Thanks in advance, Lorenzo |
|
January 21, 2020, 14:54 |
|
#2 |
Senior Member
Lasse Brams Vinther
Join Date: Oct 2015
Posts: 118
Rep Power: 11 |
Hello Lorenzo,
You can limit the velocity, temperature and such in fvOptions such as the following: Code:
limitU { type limitVelocity; active yes; selectionMode all; max 100; } Code:
SIMPLE { nNonOrthogonalCorrectors 0; numberIterationsStator 1; numberIterationsRotor 1; UMax 500; pMin pMin [0 2 -2 0 0 0 0] -1000; pMax pMax [0 2 -2 0 0 0 0] 1000; } Lasse |
|
January 22, 2020, 11:58 |
|
#3 | |
New Member
Join Date: Jan 2020
Posts: 6
Rep Power: 6 |
Quote:
Thanks a lot Lasse, the limiter on velocity works for the case I'm running, but the limiter on pressure does not seem to be read by the code (I tried to put banana instead of a value for pMax and the solver [SRFSimpleFoam] didn't complain). Do you have some further suggestions on this aspect? |
||
January 22, 2020, 14:59 |
|
#4 |
Senior Member
Lasse Brams Vinther
Join Date: Oct 2015
Posts: 118
Rep Power: 11 |
Hello Lorenzo,
I may have been a bit too hasty regarding the pressure limiting, as it seems that incrompressible solvers does not read the limit specified in fvSolution as compressible solvers does in the pEqn. I'll make a test solver where this is included to be certain of the implementation. |
|
January 22, 2020, 16:03 |
|
#5 |
Senior Member
Lasse Brams Vinther
Join Date: Oct 2015
Posts: 118
Rep Power: 11 |
Alright so I was unable to apply the fvSolution limiter as the units of the pMin/pMax is different as it does not include the density as the incompressible solver does in the pressure field.
I then just added a pMin, pMax to the transportProperties in a new solver called limitedSimpleFoam an example of this is attached to this post, and restricted in the pressure in pEqn with min max. I'm not certain its possible to limit the pressure directly in fvSolution for incompressible solvers, I at least was unable to locate it in the source. Hope its adequate. Regards, Lasse |
|
January 23, 2020, 07:18 |
|
#6 | |
New Member
Join Date: Jan 2020
Posts: 6
Rep Power: 6 |
Quote:
Thanks a lot for the effort, I'll try to include this feature in the SRFSimpleFoam solver too, to handle a case I'm currently running. |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Can I use fvOptions to couple a solid region and a fluid region? | titanchao | OpenFOAM Running, Solving & CFD | 4 | January 14, 2022 08:55 |
What are the units used in the thermophysicalProperties and fvOptions dictionaries? | ophr | OpenFOAM Pre-Processing | 2 | June 16, 2019 02:29 |
Configuration of boundary conditions and fvOptions file | Raza Javed | OpenFOAM Running, Solving & CFD | 16 | May 3, 2019 17:35 |
topoSet/setSet and fvOptions | pod | OpenFOAM Running, Solving & CFD | 5 | April 30, 2019 06:41 |
Doubt regarding MUSCL scheme implementation and associated limiters | SangeethCFD | Main CFD Forum | 0 | October 7, 2017 10:00 |