mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: Added AMI option to extrudeToRegionMesh
This commit is contained in:
@ -920,13 +920,12 @@ tmp<pointField> calcOffset
|
|||||||
int main(int argc, char *argv[])
|
int main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
argList::noParallel();
|
argList::noParallel();
|
||||||
argList::addNote
|
argList::addNote("Create region mesh by extruding a faceZone");
|
||||||
(
|
|
||||||
"Create region mesh by extruding a faceZone"
|
|
||||||
);
|
|
||||||
|
|
||||||
#include "addRegionOption.H"
|
#include "addRegionOption.H"
|
||||||
#include "addOverwriteOption.H"
|
#include "addOverwriteOption.H"
|
||||||
|
argList::addBoolOption("AMI", "apply mapped AMI boundary type");
|
||||||
|
|
||||||
#include "setRootCase.H"
|
#include "setRootCase.H"
|
||||||
#include "createTime.H"
|
#include "createTime.H"
|
||||||
#include "createNamedMesh.H"
|
#include "createNamedMesh.H"
|
||||||
@ -934,6 +933,12 @@ int main(int argc, char *argv[])
|
|||||||
const word oldInstance = mesh.pointsInstance();
|
const word oldInstance = mesh.pointsInstance();
|
||||||
bool overwrite = args.optionFound("overwrite");
|
bool overwrite = args.optionFound("overwrite");
|
||||||
|
|
||||||
|
mappedPatchBase::sampleMode sampleMode = mappedPatchBase::NEARESTPATCHFACE;
|
||||||
|
if (args.optionFound("AMI"))
|
||||||
|
{
|
||||||
|
sampleMode = mappedPatchBase::NEARESTPATCHFACEAMI;
|
||||||
|
}
|
||||||
|
|
||||||
IOdictionary dict
|
IOdictionary dict
|
||||||
(
|
(
|
||||||
IOobject
|
IOobject
|
||||||
@ -1676,7 +1681,7 @@ int main(int argc, char *argv[])
|
|||||||
pp.start(),
|
pp.start(),
|
||||||
patchI,
|
patchI,
|
||||||
regionName, // sampleRegion
|
regionName, // sampleRegion
|
||||||
mappedPatchBase::NEARESTPATCHFACE,// sampleMode
|
sampleMode, // sampleMode
|
||||||
pp.name(), // samplePatch
|
pp.name(), // samplePatch
|
||||||
topOffsets[index], // offset
|
topOffsets[index], // offset
|
||||||
patches
|
patches
|
||||||
@ -1699,7 +1704,7 @@ int main(int argc, char *argv[])
|
|||||||
pp.start(),
|
pp.start(),
|
||||||
patchI,
|
patchI,
|
||||||
regionName, // sampleRegion
|
regionName, // sampleRegion
|
||||||
mappedPatchBase::NEARESTPATCHFACE,// sampleMode
|
sampleMode, // sampleMode
|
||||||
pp.name(), // samplePatch
|
pp.name(), // samplePatch
|
||||||
bottomOffsets[index], // offset
|
bottomOffsets[index], // offset
|
||||||
patches
|
patches
|
||||||
@ -1997,7 +2002,7 @@ int main(int argc, char *argv[])
|
|||||||
pp.start(),
|
pp.start(),
|
||||||
patchI,
|
patchI,
|
||||||
shellRegionName, // sampleRegion
|
shellRegionName, // sampleRegion
|
||||||
mappedPatchBase::NEARESTPATCHFACE,// sampleMode
|
sampleMode, // sampleMode
|
||||||
pp.name(), // samplePatch
|
pp.name(), // samplePatch
|
||||||
-topOffsets[index], // offset
|
-topOffsets[index], // offset
|
||||||
patches
|
patches
|
||||||
@ -2018,7 +2023,7 @@ int main(int argc, char *argv[])
|
|||||||
pp.start(),
|
pp.start(),
|
||||||
patchI,
|
patchI,
|
||||||
shellRegionName, // sampleRegion
|
shellRegionName, // sampleRegion
|
||||||
mappedPatchBase::NEARESTPATCHFACE,// sampleMode
|
sampleMode, // sampleMode
|
||||||
pp.name(), // samplePatch
|
pp.name(), // samplePatch
|
||||||
-bottomOffsets[index], // offset
|
-bottomOffsets[index], // offset
|
||||||
patches
|
patches
|
||||||
|
|||||||
Reference in New Issue
Block a user