createAlphaFluxes.H
Go to the documentation of this file.
1 IOobject alphaPhi10Header
2 (
3  IOobject::groupName("alphaPhi0", alpha1.group()),
4  runTime.timeName(),
5  mesh,
6  IOobject::READ_IF_PRESENT,
7  IOobject::AUTO_WRITE
8 );
9 
10 const bool alphaRestart =
11  alphaPhi10Header.typeHeaderOk<surfaceScalarField>(true);
12 
14 {
15  Info << "Restarting alpha" << endl;
16 }
17 
18 // MULES flux from previous time-step
20 (
23 );
24 
25 // MULES Correction
26 tmp<surfaceScalarField> talphaPhi1Corr0;
27 
28 // MULES compressed flux is registered in case scalarTransport FO needs it.
30 (
31  IOobject
32  (
33  "alphaPhiUn",
34  runTime.timeName(),
35  mesh,
36  IOobject::NO_READ,
37  IOobject::NO_WRITE
38  ),
39  mesh,
40  dimensionedScalar(phi.dimensions(), Zero)
41 );
runTime
engineTime & runTime
Definition: createEngineTime.H:13
Foam::Zero
static constexpr const zero Zero
Global zero (0)
Definition: zero.H:131
Foam::endl
Ostream & endl(Ostream &os)
Add newline and flush stream.
Definition: Ostream.H:369
alpha1
const volScalarField & alpha1
Definition: setRegionFluidFields.H:8
alphaPhi10Header
IOobject alphaPhi10Header(IOobject::groupName("alphaPhi0", alpha1.group()), runTime.timeName(), mesh, IOobject::READ_IF_PRESENT, IOobject::AUTO_WRITE)
Foam::Info
messageStream Info
Information stream (stdout output on master, null elsewhere)
Foam::dimensionedScalar
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
Definition: dimensionedScalarFwd.H:42
phi
surfaceScalarField & phi
Definition: setRegionFluidFields.H:8
alphaRestart
const bool alphaRestart
Definition: createAlphaFluxes.H:10
mesh
dynamicFvMesh & mesh
Definition: createDynamicFvMesh.H:6
Foam::surfaceScalarField
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
Definition: surfaceFieldsFwd.H:54
alphaPhiUn
surfaceScalarField alphaPhiUn(IOobject("alphaPhiUn", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::NO_WRITE), mesh, dimensionedScalar(phi.dimensions(), Zero))
alphaPhi10
surfaceScalarField alphaPhi10(alphaPhi10Header, phi *fvc::interpolate(alpha1))
talphaPhi1Corr0
tmp< surfaceScalarField > talphaPhi1Corr0
Definition: createAlphaFluxes.H:26
Foam::fac::interpolate
static tmp< GeometricField< Type, faePatchField, edgeMesh > > interpolate(const GeometricField< Type, faPatchField, areaMesh > &tvf, const edgeScalarField &faceFlux, Istream &schemeData)
Interpolate field onto faces using scheme given by Istream.