createFields.H
Go to the documentation of this file.
1 Info<< "Reading financial properties\n" << endl;
2 
3 IOdictionary financialProperties
4 (
5  IOobject
6  (
7  "financialProperties",
8  runTime.constant(),
9  mesh,
10  IOobject::MUST_READ_IF_MODIFIED,
11  IOobject::NO_WRITE
12  )
13 );
14 
15 dimensionedScalar strike
16 (
17  "strike",
18  dimLength,
19  financialProperties.lookup("strike")
20 );
21 
23 (
24  "r",
26  financialProperties.lookup("r")
27 );
28 
30 (
31  "sigma",
32  dimensionSet(0, 0, -0.5, 0, 0),
33  financialProperties.lookup("sigma")
34 );
35 
36 dimensionedScalar sigmaSqr = sqr(sigma);
37 
38 
39 Info<< nl << "Reading field V" << endl;
40 
42 (
43  IOobject
44  (
45  "V",
46  runTime.timeName(),
47  mesh,
48  IOobject::MUST_READ,
49  IOobject::AUTO_WRITE
50  ),
51  mesh
52 );
53 
54 
56 (
57  IOobject
58  (
59  "Pf",
60  runTime.timeName(),
61  mesh,
62  IOobject::NO_READ,
63  IOobject::NO_WRITE
64  ),
65  mesh.Cf()
66 );
67 
68 
70 (
71  IOobject
72  (
73  "P",
74  runTime.timeName(),
75  mesh,
76  IOobject::NO_READ,
77  IOobject::NO_WRITE
78  ),
79  mesh.C()
80 );
81 
82 V == max
83 (
84  P.component(Foam::vector::X) - strike,
85  dimensionedScalar("0", V.dimensions(), 0.0)
86 );
87 
89 (
90  IOobject
91  (
92  "delta",
93  runTime.timeName(),
94  mesh,
95  IOobject::NO_READ,
96  IOobject::AUTO_WRITE
97  ),
99 );
const dimensionedScalar sigma
Stefan-Boltzmann constant: default SI units: [W/m2/K4].
const dimensionSet dimTime(0, 0, 1, 0, 0, 0, 0)
Definition: dimensionSets.H:51
messageStream Info
dynamicFvMesh & mesh
const dimensionSet dimLength(0, 1, 0, 0, 0, 0, 0)
Definition: dimensionSets.H:50
static const char nl
Definition: Ostream.H:260
Ostream & endl(Ostream &os)
Add newline and flush stream.
Definition: Ostream.H:251
GeometricField< scalar, fvPatchField, volMesh > volScalarField
Definition: volFieldsFwd.H:52
void component(FieldField< Field, typename FieldField< Field, Type >::cmptType > &sf, const FieldField< Field, Type > &f, const direction d)
dimensioned< Type > max(const dimensioned< Type > &, const dimensioned< Type > &)
scalar delta
GeometricField< vector, fvPatchField, volMesh > volVectorField
Definition: volFieldsFwd.H:55
const dimensionSet dimless(0, 0, 0, 0, 0, 0, 0)
Definition: dimensionSets.H:47
tmp< GeometricField< typename outerProduct< vector, Type >::type, fvPatchField, volMesh >> grad(const GeometricField< Type, fvsPatchField, surfaceMesh > &ssf)
Definition: fvcGrad.C:52
GeometricField< vector, fvsPatchField, surfaceMesh > surfaceVectorField
dimensionedSymmTensor sqr(const dimensionedVector &dv)
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.