Info<< "\nReading field p\n" << endl << flush;
volScalarField p
(
IOobject
"p",
runTime.timeName(),
mesh,
IOobject::MUST_READ,
IOobject::AUTO_WRITE
),
mesh
);
Info<< "Reading field U\n" << endl << flush;
volVectorField U
"U",
# include "createPhi.H"
volScalarField rho
"rho",
IOobject::NO_READ,
IOobject::NO_WRITE
dimensionedScalar("0", dimMass/dimVolume, 0)
freeSurface interface(mesh, rho, U, p, phi);
volScalarField* fluidIndicatorPtr = nullptr;
if(Pstream::parRun())
{
fluidIndicatorPtr = new volScalarField
"fluidIndicator",
}
else
interface.fluidIndicator()
volScalarField& fluidIndicator = *fluidIndicatorPtr;
rho = fluidIndicator
*(
interface.rhoFluidA()
- interface.rhoFluidB()
)
+ interface.rhoFluidB();
volScalarField mu
"mu",
fluidIndicator
interface.muFluidA()
- interface.muFluidB()
+ interface.muFluidB()
// Read interpolators if present
if (interface.twoFluids())
interface.interpolatorAB();
# include "setRefCell.H"
mesh.schemesDict().setFluxRequired(p.name());