Field bounding after topo change

This commit is contained in:
Hrvoje Jasak 2015-06-11 15:56:06 +01:00
parent 0d34546d97
commit 5c3c481e85

View file

@ -25,12 +25,15 @@ Application
sonicDyMFoam
Description
Transient solver for trans-sonic/supersonic for laminar or flow of a
compressible gas with support for mesh motion and topological changes
Transient solver for trans-sonic/supersonic for laminar or turbulent
flow of a compressible gas with support for mesh motion and
topological changes
Uses the flexible PIMPLE (PISO-SIMPLE) solution for time-resolved and
pseudo-transient simulations.
Turbulence modelling is generic, i.e. laminar, RAS or LES may be selected.
Updated from sonicFoamAutoMotion by Hrvoje Jasak
Author
@ -82,9 +85,10 @@ int main(int argc, char *argv[])
// Mesh motion update
if (meshChanged)
{
T.correctBoundaryConditions();
p.correctBoundaryConditions();
e.correctBoundaryConditions();
T = max(T, TMin);
p = max(p, pMin);
e = max(e, thermo.Cv()*TMin);
thermo.correct();
rho = thermo.rho();