Info<< "Reading financial properties\n" << endl;
IOdictionary financialProperties
(
IOobject
"financialProperties",
runTime.constant(),
mesh,
IOobject::MUST_READ_IF_MODIFIED,
IOobject::NO_WRITE
)
);
dimensionedScalar strike
financialProperties.lookup("strike")
dimensionedScalar r
financialProperties.lookup("r")
dimensionedScalar sigma
financialProperties.lookup("sigma")
dimensionedScalar sigmaSqr = sqr(sigma);
Info<< nl << "Reading field V" << endl;
volScalarField V
"V",
runTime.timeName(),
IOobject::MUST_READ,
IOobject::AUTO_WRITE
),
mesh
surfaceVectorField Pf
"Pf",
IOobject::NO_READ,
mesh.Cf()
volVectorField P
"P",
mesh.C()
//- V == max(strike - P.x(), dimensionedScalar("0", V.dimensions(), 0.0));
V == max
P.component(Foam::vector::X) - strike,
dimensionedScalar("0", V.dimensions(), 0.0)
volScalarField delta
"delta",
fvc::grad(V)().component(Foam::vector::X)