createFields.H
Go to the documentation of this file.
1 Info<< "Reading field U\n" << endl;
3 (
4  IOobject
5  (
6  "U",
7  runTime.name(),
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.name(),
23  mesh,
24  IOobject::NO_READ,
25  IOobject::NO_WRITE
26  ),
27  mesh,
28  dimensionedScalar(mesh.Sf().dimensions()*U.dimensions(), 0)
29 );
30 
31 
32 autoPtr<viscosityModel> viscosity(viscosityModel::New(mesh));
33 
34 autoPtr<incompressible::momentumTransportModel> turbulence
35 (
37 );
38 
40 
43 
45 (
46  "gradP",
47  dimensionSet(0, 1, -2, 0, 0),
48  Zero
49 );
50 
51 #include "createFvModels.H"
52 #include "createFvConstraints.H"
autoPtr< CompressibleMomentumTransportModel > New(const volScalarField &rho, const volVectorField &U, const surfaceScalarField &phi, const viscosity &viscosity)
static const zero Zero
Definition: zero.H:97
VolField< vector > volVectorField
Definition: volFieldsFwd.H:65
dimensionedSymmTensor sqr(const dimensionedVector &dv)
Tensor< scalar > tensor
Tensor of scalars.
Definition: tensor.H:51
Ostream & endl(Ostream &os)
Add newline and flush stream.
Definition: Ostream.H:257
SurfaceField< scalar > surfaceScalarField
messageStream Info
Vector< scalar > vector
A scalar version of the templated Vector.
Definition: vector.H:49
dimensioned< scalar > mag(const dimensioned< Type > &)
dimensioned< vector > dimensionedVector
Dimensioned vector obtained from generic dimensioned type.
const dimensionSet dimVelocity
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
vector flowDirection
Definition: createFields.H:41
dimensionedVector gradP("gradP", dimensionSet(0, 1, -2, 0, 0), Zero)
tensor flowMask
Definition: createFields.H:42
Info<< "Reading field U\n"<< endl;volVectorField U(IOobject("U", runTime.name(), mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE), mesh);Info<< "Creating face flux\n"<< endl;surfaceScalarField phi(IOobject("phi", runTime.name(), mesh, IOobject::NO_READ, IOobject::NO_WRITE), mesh, dimensionedScalar(mesh.Sf().dimensions() *U.dimensions(), 0));autoPtr< viscosityModel > viscosity(viscosityModel::New(mesh))
autoPtr< incompressible::momentumTransportModel > turbulence(incompressible::momentumTransportModel::New(U, phi, viscosity))
dimensionedVector Ubar("Ubar", dimVelocity, viscosity)
volVectorField U(IOobject("U", runTime.name(), mesh, IOobject::NO_READ, IOobject::NO_WRITE), mesh, dimensionedVector(dimVelocity, Zero))