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 );
surfaceScalarField alphaPhiUn(IOobject("alphaPhiUn", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::NO_WRITE), mesh, dimensionedScalar(phi.dimensions(), Zero))
const bool alphaRestart
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.
engineTime & runTime
Ostream & endl(Ostream &os)
Add newline and flush stream.
Definition: Ostream.H:531
surfaceScalarField alphaPhi10(alphaPhi10Header, phi *fvc::interpolate(alpha1))
dynamicFvMesh & mesh
IOobject alphaPhi10Header(IOobject::groupName("alphaPhi0", alpha1.group()), runTime.timeName(), mesh, IOobject::READ_IF_PRESENT, IOobject::AUTO_WRITE)
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
messageStream Info
Information stream (stdout output on master, null elsewhere)
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
tmp< surfaceScalarField > talphaPhi1Corr0
static constexpr const zero Zero
Global zero (0)
Definition: zero.H:127
const volScalarField & alpha1