createFields.H
Go to the documentation of this file.
1 Info<< "Reading transportProperties\n" << endl;
2 
3 IOdictionary transportProperties
4 (
5  IOobject
6  (
7  "transportProperties",
8  runTime.constant(),
9  mesh,
10  IOobject::MUST_READ_IF_MODIFIED,
11  IOobject::NO_WRITE
12  )
13 );
15 (
16  transportProperties.lookup("Rh")
17 );
19 (
20  transportProperties.lookup("temp")
21 );
23 (
24  "rhoa",
25  dimensionSet(1,-3,0,0,0,0,0),
26  scalar(0)
27 );
29 (
30  "rhop",
31  dimensionSet(1,-3,0,0,0,0,0),
32  scalar(0)
33 );
35 (
36  "mua",
37  dimensionSet(1,-1,-1,0,0,0,0),
38  scalar(0)
39 );
40 scalar scalingFactor
41 (
42  transportProperties.lookupOrDefault<scalar>("scalingFactor", 1.0)
43 );
44 const bool solveTD = transportProperties.lookupOrDefault("solveTD", false);
46 (
47 transportProperties.lookup("phases")
48 );
49 
50 Info<< "Reading field U\n" << endl;
52 (
53  IOobject
54  (
55  "U",
56  "0",//runTime.timeName(), //If read from the latest timedir, it will be scaled each time the simulation is restarted!
57  mesh,
58  IOobject::MUST_READ,
59  IOobject::NO_WRITE
60  ),
61  mesh
62 );
63 U = U*scalingFactor;
64 U.correctBoundaryConditions();
65 
66 surfaceScalarField phiwind
67 (
68  IOobject
69  (
70  "phiwind",
71  runTime.timeName(),
72  mesh,
73  IOobject::READ_IF_PRESENT,
74  IOobject::NO_WRITE
75  ),
76  linearInterpolate(U) & mesh.Sf()
77 );
78 
80 (
81  IOobject
82  (
83  "Re",
84  runTime.timeName(),
85  mesh,
86  IOobject::READ_IF_PRESENT,
87  IOobject::NO_WRITE
88  ),
89  mesh,
90  dimensionedScalar("Re",dimensionSet(0,0,0,0,0,0,0),500)
91 );
92 
93 volScalarField CdRe
94 (
95  IOobject
96  (
97  "CdRe",
98  runTime.timeName(),
99  mesh,
100  IOobject::READ_IF_PRESENT,
101  IOobject::NO_WRITE
102  ),
103  mesh,
104  dimensionedScalar("CdRe",dimensionSet(0,0,0,0,0,0,0),250)
105 );
Foam::Re
scalarField Re(const UList< complex > &cf)
Definition: complexFields.C:97
Foam::endl
Ostream & endl(Ostream &os)
Add newline and flush stream.
Definition: Ostream.H:251
Foam::Info
messageStream Info
Foam::dimensionedScalar
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
Definition: dimensionedScalarFwd.H:41
Foam::volScalarField
GeometricField< scalar, fvPatchField, volMesh > volScalarField
Definition: volFieldsFwd.H:52
mesh
dynamicFvMesh & mesh
Definition: createDynamicFvMesh.H:18
Foam::volVectorField
GeometricField< vector, fvPatchField, volMesh > volVectorField
Definition: volFieldsFwd.H:55
Foam::linearInterpolate
tmp< GeometricField< Type, fvsPatchField, surfaceMesh > > linearInterpolate(const GeometricField< Type, fvPatchField, volMesh > &vf)
Definition: linear.H:107
Foam::surfaceScalarField
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
Definition: surfaceFieldsFwd.H:52
phases
multiphaseSystem::phaseModelList & phases
Definition: createFields.H:11
List
Definition: Test.C:19
U
volVectorField U(IOobject("U", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::AUTO_WRITE), Urel+SRF->U())