To unsure fvOptions are instantiated for post-processing createFvOptions.H must be included in createFields.H rather than in the solver directly. Resolves bug-report https://bugs.openfoam.org/view.php?id=2733 BUG: porousSimpleFoam: moved createFvOptions.H into createFields.H for -postProcess option Resolves bug-report https://bugs.openfoam.org/view.php?id=2733 BUG: solvers: Moved fvOption construction into createFields.H for post-processing This ensures that the fvOptions are constructed for the -postProcessing option so that functionObjects which process fvOption data operate correctly in this mode.
60 lines
852 B
C
60 lines
852 B
C
Info<< "Reading field T\n" << endl;
|
|
|
|
volScalarField T
|
|
(
|
|
IOobject
|
|
(
|
|
"T",
|
|
runTime.timeName(),
|
|
mesh,
|
|
IOobject::MUST_READ,
|
|
IOobject::AUTO_WRITE
|
|
),
|
|
mesh
|
|
);
|
|
|
|
|
|
Info<< "Reading field U\n" << endl;
|
|
|
|
volVectorField U
|
|
(
|
|
IOobject
|
|
(
|
|
"U",
|
|
runTime.timeName(),
|
|
mesh,
|
|
IOobject::MUST_READ,
|
|
IOobject::AUTO_WRITE
|
|
),
|
|
mesh
|
|
);
|
|
|
|
|
|
Info<< "Reading transportProperties\n" << endl;
|
|
|
|
IOdictionary transportProperties
|
|
(
|
|
IOobject
|
|
(
|
|
"transportProperties",
|
|
runTime.constant(),
|
|
mesh,
|
|
IOobject::MUST_READ_IF_MODIFIED,
|
|
IOobject::NO_WRITE
|
|
)
|
|
);
|
|
|
|
|
|
Info<< "Reading diffusivity DT\n" << endl;
|
|
|
|
dimensionedScalar DT
|
|
(
|
|
"DT",
|
|
dimArea/dimTime,
|
|
transportProperties
|
|
);
|
|
|
|
#include "createPhi.H"
|
|
|
|
#include "createFvOptions.H"
|