Loading...
Searching...
No Matches
createFields.H
Go to the documentation of this file.
1 Info<< "Reading field T\n" << endl;
2
4 (
5 IOobject
6 (
7 "T",
8 runTime.timeName(),
9 mesh,
10 IOobject::MUST_READ,
11 IOobject::AUTO_WRITE
12 ),
13 mesh
14 );
15
16 Info<< "Reading transportProperties\n" << endl;
17
18 IOdictionary transportProperties
19 (
20 IOobject
21 (
22 "transportProperties",
23 runTime.constant(),
24 mesh,
25 IOobject::MUST_READ_IF_MODIFIED,
26 IOobject::NO_WRITE
27 )
28 );
29
30
31 Info<< "Reading diffusivity DT\n" << endl;
32
33 dimensionedScalar DT("DT", dimViscosity, transportProperties);
34
36 simple.dict().getOrDefault("oversetPatchErrOutput", false);
37
38 // Dummy phi for oversetPatchErrOutput
39 tmp<surfaceScalarField> tdummyPhi;
41 {
42 tdummyPhi = tmp<surfaceScalarField>::New
43 (
44 IOobject
45 (
46 "dummyPhi",
47 runTime.timeName(),
48 mesh,
49 IOobject::NO_READ,
50 IOobject::NO_WRITE
51 ),
52 mesh,
53 dimensionedScalar(dimless, Zero)
54 );
55 }
const volScalarField & T
dynamicFvMesh & mesh
engineTime & runTime
GeometricField< scalar, fvPatchField, volMesh > volScalarField
messageStream Info
Information stream (stdout output on master, null elsewhere).
Ostream & endl(Ostream &os)
Add newline and flush stream.
Definition Ostream.H:519
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
const dictionary & simple
oversetPatchErrOutput
Info<< "Reading field T\n"<< endl;volScalarField T(IOobject("T", runTime.timeName(), mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE), mesh);Info<< "Reading transportProperties\n"<< endl;IOdictionary transportProperties(IOobject("transportProperties", runTime.constant(), mesh, IOobject::MUST_READ_IF_MODIFIED, IOobject::NO_WRITE));Info<< "Reading diffusivity DT\n"<< endl;dimensionedScalar DT("DT", dimViscosity, transportProperties);bool oversetPatchErrOutput=simple.dict().getOrDefault("oversetPatchErrOutput", false);tmp< surfaceScalarField > tdummyPhi
IOdictionary transportProperties(IOobject("transportProperties", runTime.constant(), mesh, IOobject::MUST_READ, IOobject::NO_WRITE))