64 lines
943 B
C
64 lines
943 B
C
|
Info << "Reading field Cs" << endl;
|
||
|
areaScalarField Cs
|
||
|
(
|
||
|
IOobject
|
||
|
(
|
||
|
"Cs",
|
||
|
runTime.timeName(),
|
||
|
mesh,
|
||
|
IOobject::MUST_READ,
|
||
|
IOobject::AUTO_WRITE
|
||
|
),
|
||
|
aMesh
|
||
|
);
|
||
|
|
||
|
Info<< "Reading transportProperties\n" << endl;
|
||
|
|
||
|
IOdictionary transportProperties
|
||
|
(
|
||
|
IOobject
|
||
|
(
|
||
|
"transportProperties",
|
||
|
runTime.constant(),
|
||
|
mesh,
|
||
|
IOobject::MUST_READ,
|
||
|
IOobject::NO_WRITE
|
||
|
)
|
||
|
);
|
||
|
|
||
|
|
||
|
Info<< "Reading diffusivity D\n" << endl;
|
||
|
|
||
|
dimensionedScalar Ds
|
||
|
(
|
||
|
transportProperties.lookup("Ds")
|
||
|
);
|
||
|
|
||
|
areaVectorField Us
|
||
|
(
|
||
|
IOobject
|
||
|
(
|
||
|
"Us",
|
||
|
runTime.timeName(),
|
||
|
mesh,
|
||
|
IOobject::MUST_READ,
|
||
|
IOobject::NO_WRITE
|
||
|
),
|
||
|
aMesh
|
||
|
);
|
||
|
|
||
|
|
||
|
edgeScalarField phis
|
||
|
(
|
||
|
IOobject
|
||
|
(
|
||
|
"phis",
|
||
|
runTime.timeName(),
|
||
|
mesh,
|
||
|
IOobject::NO_READ,
|
||
|
IOobject::NO_WRITE
|
||
|
),
|
||
|
linearEdgeInterpolate(Us) & aMesh.Le()
|
||
|
);
|
||
|
|