mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
BUG: Making surfaceFilmProperties optional for postProcessing. Fixes #2372
This commit is contained in:
@ -1,18 +1,23 @@
|
|||||||
#include "createMesh.H"
|
#include "createMesh.H"
|
||||||
|
|
||||||
IOdictionary filmDict
|
dictionary filmDict;
|
||||||
(
|
|
||||||
IOobject
|
IOobject io
|
||||||
(
|
(
|
||||||
"surfaceFilmProperties",
|
"surfaceFilmProperties",
|
||||||
runTime.constant(),
|
mesh.time().constant(),
|
||||||
runTime,
|
mesh,
|
||||||
IOobject::MUST_READ,
|
IOobject::READ_IF_PRESENT,
|
||||||
IOobject::NO_WRITE,
|
IOobject::NO_WRITE,
|
||||||
false
|
false
|
||||||
)
|
|
||||||
);
|
);
|
||||||
|
|
||||||
|
if (io.typeHeaderOk<IOdictionary>())
|
||||||
|
{
|
||||||
|
IOdictionary propDict(io);
|
||||||
|
|
||||||
|
filmDict = std::move(propDict);
|
||||||
|
|
||||||
const word filmRegionName = filmDict.get<word>("region");
|
const word filmRegionName = filmDict.get<word>("region");
|
||||||
|
|
||||||
fvMesh filmMesh
|
fvMesh filmMesh
|
||||||
@ -25,3 +30,6 @@ fvMesh filmMesh
|
|||||||
IOobject::MUST_READ
|
IOobject::MUST_READ
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user