|
[Sponsors] |
No limitScalar in fvOptions? Only limitTemperature |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
May 30, 2020, 18:05 |
No limitScalar in fvOptions? Only limitTemperature
|
#1 |
Member
alexander thierfelder
Join Date: Dec 2019
Posts: 71
Rep Power: 6 |
Hi I wonder why there is only a very restricted limitTemperature option in fvOptions, and not a very gerneral limitScalar:
Code:
limitT { type limitTemperature; active yes; selectionMode all; min 200; max 500; phase gas; // optional } I know that it applied on the "he" field of basicThermo, so not directly on a scalarField. I also know that it is not hard to hard code it in a solver: Code:
fieldX.max(minValue); fieldX.min(maxValue); Code:
fvOptions.correct(fieldX); and a fvOptions entry like: Code:
limitMyScalar { type limitScalar; active yes; field sigma; selectionMode cellZone; //all cellZone porosity; min 200; max 500; } Huge thanks if someone gives me some advice. |
|
May 31, 2020, 16:24 |
|
#2 |
Senior Member
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 931
Rep Power: 13 |
Hi,
- If you would like to have a general limiter for fields, you can use limitFields function object, instead. Hope it helps.
__________________
The OpenFOAM community is the biggest contributor to OpenFOAM: User guide/Wiki-1/Wiki-2/Code guide/Code Wiki/Journal Nilsson/Guerrero/Holzinger/Holzmann/Nagy/Santos/Nozaki/Jasak/Primer Governance Bugs/Features: OpenFOAM (ESI-OpenCFD-Trademark) Bugs/Features: FOAM-Extend (Wikki-FSB) Bugs: OpenFOAM.org How to create a MWE New: Forkable OpenFOAM mirror |
|
May 31, 2020, 20:38 |
|
#3 |
Member
alexander thierfelder
Join Date: Dec 2019
Posts: 71
Rep Power: 6 |
Yes that should be what I like was looking for, thanks. Sometimes I wonder about implemented functionalities, that are somehow redundant. I am also motivated to implement it in fvOptions, for learning purpose and for the fact that it would nice to have it all in one place.
|
|
Tags |
fvoptions, limits |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
fvOptions limitTemperature crashing in compressibleInterFoam | JM27 | OpenFOAM Running, Solving & CFD | 38 | November 29, 2023 04:55 |
fvOptions: temperatureLimitsConstraint or limitTemperature not working on V3.0+ | derekm | OpenFOAM Running, Solving & CFD | 6 | February 1, 2021 02:16 |
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 |
twoPhaseEulerFoam + fvOptions limitTemperature | hanness | OpenFOAM Running, Solving & CFD | 5 | July 19, 2018 09:53 |