createPhiB.H
Go to the documentation of this file.
1 typeIOobject<surfaceScalarField> phiBHeader
2 (
3  "phiB",
4  runTime.name(),
5  mesh,
6  IOobject::NO_READ
7 );
8 
9 
11 
12 if (phiBHeader.headerOk())
13 {
14  Info<< "Reading face flux ";
15 
17  (
18  IOobject
19  (
20  "phiB",
21  runTime.name(),
22  mesh,
23  IOobject::MUST_READ,
24  IOobject::AUTO_WRITE
25  ),
26  mesh
27  );
28 }
29 else
30 {
31  Info<< "Calculating face flux ";
32 
34  (
35  IOobject
36  (
37  "phiB",
38  runTime.name(),
39  mesh,
40  IOobject::NO_READ,
41  IOobject::AUTO_WRITE
42  ),
43  fvc::flux(B)
44  );
45 }
46 
48 
49 Info<< phiB.name() << nl << endl;
static const Foam::dimensionedScalar B("B", Foam::dimless, 18.678)
typeIOobject< surfaceScalarField > phiBHeader("phiB", runTime.name(), mesh, IOobject::NO_READ)
surfaceScalarField * phiBPtr
Definition: createPhiB.H:10
surfaceScalarField & phiB
Definition: createPhiB.H:47
tmp< SurfaceField< typename innerProduct< vector, Type >::type > > flux(const VolField< Type > &vf)
Return the face-flux field obtained from the given volVectorField.
Ostream & endl(Ostream &os)
Add newline and flush stream.
Definition: Ostream.H:251
SurfaceField< scalar > surfaceScalarField
messageStream Info
static const char nl
Definition: Ostream.H:260