buildPatch.H File Reference
Go to the source code of this file.
|
Functions |
| IOdictionary | planeToPatchDict (IOobject("planeToPatchDict", runTime.system(), runTime, IOobject::MUST_READ, IOobject::NO_WRITE)) |
| Switch | planeMapping (planeToPatchDict.lookup("mappingPlane")) |
Info<< "Constructing
planePatch"<< endl;cuttingPlane
cut(plane(planeToPatchDict),
mesh);primitiveFacePatch
planePatch(cut.faces(),
cut.points());Info<< "Finding
target patch"<< endl;word
toPatchName(planeToPatchDict.lookup("targetPatchName"));const
fvPatchList &patches=mesh.boundary();bool
targetPatchNamePresent(false);label
targetPatchNumber=-1;forAll(patches,
patchI){if(patches[patchI].name()==toPatchName){targetPatchNamePresent=true;targetPatchNumber=patchI;}}const
labelList &cutCells(cut.cells());if(!targetPatchNamePresent){targetPatchNumber=1;Serr
<< "Target patch not present. "
<< endl;}else{Serr<< "Target
patch name: "<< patches[targetPatchNumber].name()
<< endl;}patchToPatchInterpolation
interPatch(planePatch, patches[targetPatchNumber].patch());PrimitivePatchInterpolation
< PrimitivePatch< face, List,
const pointField & >> | planePatchInter (planePatch) |
PrimitivePatchInterpolation
< PrimitivePatch< face, List,
const pointField & >> | toPatchInter (patches[targetPatchNumber].patch()) |
Function Documentation
| IOdictionary planeToPatchDict |
( |
IOobject("planeToPatchDict", runTime.system(), runTime, IOobject::MUST_READ, IOobject::NO_WRITE) |
|
) |
|
| Switch planeMapping |
( |
planeToPatchDict. |
lookup"mappingPlane" |
) |
|
| Info<< "Constructing planePatch" << endl;cuttingPlane cut(plane(planeToPatchDict), mesh);primitiveFacePatch planePatch( cut.faces(), cut.points());Info << "Finding target patch" << endl;word toPatchName( planeToPatchDict.lookup("targetPatchName"));const fvPatchList& patches = mesh.boundary();bool targetPatchNamePresent(false);label targetPatchNumber = -1;forAll(patches, patchI){ if (patches[patchI].name() == toPatchName) { targetPatchNamePresent = true; targetPatchNumber = patchI; }}const labelList& cutCells(cut.cells());if (!targetPatchNamePresent){ targetPatchNumber = 1; Serr<< "Target patch not present. " << endl;}else{ Serr<< "Target patch name: " << patches[targetPatchNumber].name() << endl;}patchToPatchInterpolation interPatch( planePatch, patches[targetPatchNumber].patch());PrimitivePatchInterpolation< PrimitivePatch<face, List, const pointField&>> planePatchInter |
( |
planePatch |
|
) |
|
| PrimitivePatchInterpolation< PrimitivePatch<face, List, const pointField&>> toPatchInter |
( |
patches. |
patch()[targetPatchNumber] |
) |
|
Copyright © 2000-2009 OpenCFD Ltd