ENH: icoReactingMultiPhaseInterFoam: thermo sharing T

This commit is contained in:
mattijs
2018-06-15 14:05:37 +01:00
committed by Andrew Heather
parent 4cb073e150
commit 636328fc1c
10 changed files with 96 additions and 97 deletions

View File

@ -26,6 +26,22 @@
mesh
);
// Note: construct T to be around before the thermos. The thermos will
// not update T.
Info<< "Reading field T\n" << endl;
volScalarField T
(
IOobject
(
"T",
runTime.timeName(),
mesh,
IOobject::MUST_READ,
IOobject::AUTO_WRITE
),
mesh
);
Info<< "Calculating field g.h\n" << endl;
#include "readGravitationalAcceleration.H"
@ -45,6 +61,7 @@
p_rgh
);
Info<< "Creating multiphaseSystem\n" << endl;
autoPtr<multiphaseSystem> fluidPtr = multiphaseSystem::New(mesh);
@ -57,8 +74,6 @@
}
volScalarField& T = fluid.T();
// Need to store rho for ddt(rho, U)
volScalarField rho
(