mirrorMesh: Added "-dict" option

Updated and simplified tutorials/incompressible/pimpleFoam/RAS/elipsekkLOmega
case to use mirrorMesh -dict
This commit is contained in:
Henry Weller
2018-05-30 18:38:50 +01:00
parent e7d68ad8a4
commit d0609cd6ae
8 changed files with 16 additions and 120 deletions

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-2017 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -29,17 +29,17 @@ License
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
Foam::mirrorFvMesh::mirrorFvMesh(const IOobject& io)
Foam::mirrorFvMesh::mirrorFvMesh(const IOobject& io, const word& dictName)
:
fvMesh(io),
mirrorMeshDict_
(
IOobject
(
"mirrorMeshDict",
dictName,
time().system(),
*this,
IOobject::MUST_READ_IF_MODIFIED,
IOobject::MUST_READ,
IOobject::NO_WRITE
)
)

View File

@ -79,7 +79,7 @@ public:
// Constructors
//- Construct from IOobject
mirrorFvMesh(const IOobject& io);
mirrorFvMesh(const IOobject& io, const word& dictName);
//- Destructor

View File

@ -42,10 +42,16 @@ using namespace Foam;
int main(int argc, char *argv[])
{
#include "addOverwriteOption.H"
#include "addDictOption.H"
#include "setRootCase.H"
#include "createTime.H"
const bool overwrite = args.optionFound("overwrite");
const word dictName
(
args.optionLookupOrDefault<word>("dict", "mirrorMeshDict")
);
mirrorFvMesh mesh
(
@ -54,7 +60,8 @@ int main(int argc, char *argv[])
mirrorFvMesh::defaultRegion,
runTime.constant(),
runTime
)
),
dictName
);
hexRef8Data refData