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