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.name(),
47  mesh,
48  IOobject::MUST_READ,
49  IOobject::AUTO_WRITE
50  ),
51  mesh
52 );
53 
54 
56 (
57  IOobject
58  (
59  "Pf",
60  runTime.name(),
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.name(),
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(V.dimensions(), 0)
86 );
87 
89 (
90  IOobject
91  (
92  "delta",
93  runTime.name(),
94  mesh,
95  IOobject::NO_READ,
96  IOobject::AUTO_WRITE
97  ),
98  fvc::grad(V)().component(Foam::vector::X)
99 );
scalar delta
const dimensionedScalar sigma
Stefan-Boltzmann constant: default SI units: [W/m^2/K^4].
tmp< VolField< typename outerProduct< vector, Type >::type > > grad(const SurfaceField< Type > &ssf)
Definition: fvcGrad.C:46
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
VolField< vector > volVectorField
Definition: volFieldsFwd.H:62
dimensionedSymmTensor sqr(const dimensionedVector &dv)
Ostream & endl(Ostream &os)
Add newline and flush stream.
Definition: Ostream.H:251
const dimensionSet dimless
messageStream Info
const dimensionSet dimLength
const dimensionSet dimTime
VolField< scalar > volScalarField
Definition: volFieldsFwd.H:61
layerAndWeight max(const layerAndWeight &a, const layerAndWeight &b)
SurfaceField< vector > surfaceVectorField
static const char nl
Definition: Ostream.H:260