mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-12-28 03:37:59 +00:00
36 lines
650 B
C++
36 lines
650 B
C++
#include "createMesh.H"
|
|
|
|
dictionary filmDict;
|
|
|
|
IOobject io
|
|
(
|
|
"surfaceFilmProperties",
|
|
mesh.time().constant(),
|
|
mesh,
|
|
IOobject::READ_IF_PRESENT,
|
|
IOobject::NO_WRITE,
|
|
IOobject::NO_REGISTER
|
|
);
|
|
|
|
if (io.typeHeaderOk<IOdictionary>())
|
|
{
|
|
IOdictionary propDict(io);
|
|
|
|
filmDict = std::move(propDict);
|
|
|
|
const word filmRegionName = filmDict.get<word>("region");
|
|
|
|
fvMesh filmMesh
|
|
(
|
|
IOobject
|
|
(
|
|
filmRegionName,
|
|
runTime.timeName(),
|
|
runTime,
|
|
IOobject::MUST_READ
|
|
)
|
|
);
|
|
}
|
|
|
|
// ************************************************************************* //
|