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  ),
98  fvc::grad(V)().component(Foam::vector::X)
99 );
Foam::dimless
const dimensionSet dimless(0, 0, 0, 0, 0, 0, 0)
Definition: dimensionSets.H:47
Foam::fvc::grad
tmp< GeometricField< typename outerProduct< vector, Type >::type, fvPatchField, volMesh >> grad(const GeometricField< Type, fvsPatchField, surfaceMesh > &ssf)
Definition: fvcGrad.C:52
Foam::dimLength
const dimensionSet dimLength(0, 1, 0, 0, 0, 0, 0)
Definition: dimensionSets.H:50
Foam::endl
Ostream & endl(Ostream &os)
Add newline and flush stream.
Definition: Ostream.H:251
Foam::dimTime
const dimensionSet dimTime(0, 0, 1, 0, 0, 0, 0)
Definition: dimensionSets.H:51
Foam::nl
static const char nl
Definition: Ostream.H:260
Foam::Info
messageStream Info
Foam::Vector< scalar >::X
@ X
Definition: Vector.H:89
delta
scalar delta
Definition: LISASMDCalcMethod2.H:8
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::max
dimensioned< Type > max(const dimensioned< Type > &, const dimensioned< Type > &)
Foam::sqr
dimensionedSymmTensor sqr(const dimensionedVector &dv)
Definition: dimensionedSymmTensor.C:49
Foam::constant::physicoChemical::sigma
const dimensionedScalar sigma
Stefan-Boltzmann constant: default SI units: [W/m2/K4].
Foam::surfaceVectorField
GeometricField< vector, fvsPatchField, surfaceMesh > surfaceVectorField
Definition: surfaceFieldsFwd.H:55