createFields.H
Go to the documentation of this file.
1 Info<< "Reading field U\n" << endl;
3 (
4  IOobject
5  (
6  "U",
7  runTime.timeName(),
8  mesh,
9  IOobject::MUST_READ,
10  IOobject::AUTO_WRITE
11  ),
12  mesh
13 );
14 
15 
16 Info<< "Creating face flux\n" << endl;
18 (
19  IOobject
20  (
21  "phi",
22  runTime.timeName(),
23  mesh,
24  IOobject::NO_READ,
25  IOobject::NO_WRITE
26  ),
27  mesh,
28  dimensionedScalar("zero", mesh.Sf().dimensions()*U.dimensions(), 0.0)
29 );
30 
31 
32 singlePhaseTransportModel laminarTransport(U, phi);
33 
34 autoPtr<incompressible::turbulenceModel> turbulence
35 (
37 );
38 
40 
41 vector flowDirection = (Ubar/mag(Ubar)).value();
42 tensor flowMask = sqr(flowDirection);
43 
45 (
46  "gradP",
47  dimensionSet(0, 1, -2, 0, 0),
48  vector::zero
49 );
dimensionedVector gradP("gradP", dimensionSet(0, 1,-2, 0, 0), vector::zero)
volVectorField U(IOobject( "U", runTime.timeName(), runTime, IOobject::NO_READ, IOobject::NO_WRITE ), mesh, dimensionedVector("zero", dimVelocity, vector::zero), p.boundaryField().types())
surfaceScalarField & phi
Definition: createFields.H:13
dimensionedVector Ubar("Ubar", dimVelocity, laminarTransport)
dimensioned< scalar > mag(const dimensioned< Type > &)
Tensor< scalar > tensor
Tensor of scalars.
Definition: tensor.H:51
singlePhaseTransportModel laminarTransport(U, phi)
messageStream Info
autoPtr< compressible::turbulenceModel > turbulence
Definition: createFields.H:23
dynamicFvMesh & mesh
autoPtr< BasicCompressibleTurbulenceModel > New(const volScalarField &rho, const volVectorField &U, const surfaceScalarField &phi, const typename BasicCompressibleTurbulenceModel::transportModel &transport, const word &propertiesName)
Ostream & endl(Ostream &os)
Add newline and flush stream.
Definition: Ostream.H:251
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
dimensioned< vector > dimensionedVector
Dimensioned vector obtained from generic dimensioned type.
GeometricField< vector, fvPatchField, volMesh > volVectorField
Definition: volFieldsFwd.H:55
Vector< scalar > vector
A scalar version of the templated Vector.
Definition: vector.H:49
dimensionedSymmTensor sqr(const dimensionedVector &dv)
const dimensionSet dimVelocity
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.