From b8fbdd75235e76aa8bcfceab85612614ff4efea9 Mon Sep 17 00:00:00 2001 From: Chris Greenshields Date: Tue, 24 Aug 2021 15:19:40 +0100 Subject: [PATCH] limitPressure, limitTemperature: added example fvConstraints --- .../general/fvConstraints/limitPressure | 29 +++++++++++++++++++ .../general/fvConstraints/limitTemperature | 24 +++++++++++++++ .../system/fvSolution | 2 -- 3 files changed, 53 insertions(+), 2 deletions(-) create mode 100644 etc/caseDicts/general/fvConstraints/limitPressure create mode 100644 etc/caseDicts/general/fvConstraints/limitTemperature diff --git a/etc/caseDicts/general/fvConstraints/limitPressure b/etc/caseDicts/general/fvConstraints/limitPressure new file mode 100644 index 0000000000..d77ed76644 --- /dev/null +++ b/etc/caseDicts/general/fvConstraints/limitPressure @@ -0,0 +1,29 @@ +/*--------------------------------*- C++ -*----------------------------------*\ + ========= | + \\ / F ield | OpenFOAM: The Open Source CFD Toolbox + \\ / O peration | Website: https://openfoam.org + \\ / A nd | Version: dev + \\/ M anipulation | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + format ascii; + class dictionary; + object limitPressure; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +limitp +{ + type limitPressure; + + // limits can be specified absolute + // min 200; + // max 500; + + // ... or as multipliers on initial min/max values + minFactor 0.1; + maxFactor 1.5; +} + +//************************************************************************** // diff --git a/etc/caseDicts/general/fvConstraints/limitTemperature b/etc/caseDicts/general/fvConstraints/limitTemperature new file mode 100644 index 0000000000..8769faf403 --- /dev/null +++ b/etc/caseDicts/general/fvConstraints/limitTemperature @@ -0,0 +1,24 @@ +/*--------------------------------*- C++ -*----------------------------------*\ + ========= | + \\ / F ield | OpenFOAM: The Open Source CFD Toolbox + \\ / O peration | Website: https://openfoam.org + \\ / A nd | Version: dev + \\/ M anipulation | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + format ascii; + class dictionary; + object limitTemperature; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +limitT +{ + type limitTemperature; + min 200; + max 6000; + selectionMode all; +} + +//************************************************************************** // diff --git a/etc/templates/compressibleInflowOutflow/system/fvSolution b/etc/templates/compressibleInflowOutflow/system/fvSolution index 46e5027f8d..b0a4fc7548 100644 --- a/etc/templates/compressibleInflowOutflow/system/fvSolution +++ b/etc/templates/compressibleInflowOutflow/system/fvSolution @@ -42,8 +42,6 @@ SIMPLE } nNonOrthogonalCorrectors 0; - pMinFactor 0.1; - pMaxFactor 1.5; } relaxationFactors