ENH: Added sampleMode to extrudeToRegionMesh utility

This commit is contained in:
andy
2011-10-03 10:20:27 +01:00
parent 542301e67f
commit 0fc6fc3e3d
2 changed files with 17 additions and 17 deletions

View File

@ -936,12 +936,6 @@ int main(int argc, char *argv[])
const word dictName const word dictName
(args.optionLookupOrDefault<word>("dict", "extrudeToRegionMeshDict")); (args.optionLookupOrDefault<word>("dict", "extrudeToRegionMeshDict"));
mappedPatchBase::sampleMode sampleMode = mappedPatchBase::NEARESTPATCHFACE;
if (args.optionFound("AMI"))
{
sampleMode = mappedPatchBase::NEARESTPATCHFACEAMI;
}
IOdictionary dict IOdictionary dict
( (
IOobject IOobject
@ -966,6 +960,9 @@ int main(int argc, char *argv[])
dict.lookup("faceZonesShadow") >> zoneShadowNames; dict.lookup("faceZonesShadow") >> zoneShadowNames;
} }
mappedPatchBase::sampleMode sampleMode =
mappedPatchBase::sampleModeNames_[dict.lookup("sampleMode")];
const Switch oneD(dict.lookup("oneD")); const Switch oneD(dict.lookup("oneD"));
const Switch adaptMesh(dict.lookup("adaptMesh")); const Switch adaptMesh(dict.lookup("adaptMesh"));

View File

@ -32,6 +32,9 @@ faceZones (f0);
// mapped patch which might need to be adapted. // mapped patch which might need to be adapted.
adaptMesh true; adaptMesh true;
// Sample mode for inter-region communication
sampleMode nearestPatchFace;
// Extrude 1D-columns of cells? // Extrude 1D-columns of cells?
oneD false; oneD false;