Go to the source code of this file.
Functions | |
label | sizeCoeffToRefinement (const scalar level0Coeff, const scalar sizeCoeff) |
autoPtr< refinementSurfaces > | createRefinementSurfaces (const searchableSurfaces &allGeometry, const dictionary &surfacesDict, const dictionary &shapeControlDict, const label gapLevelIncrement, const scalar level0Coeff) |
void | extractSurface (const polyMesh &mesh, const Time &runTime, const labelHashSet &includePatches, const fileName &outFileName) |
scalar | getMergeDistance (const polyMesh &mesh, const scalar mergeTol) |
void | writeMesh (const string &msg, const meshRefinement &meshRefiner, const meshRefinement::debugType debugLevel, const meshRefinement::writeType writeLevel) |
int | main (int argc, char *argv[]) |
label sizeCoeffToRefinement | ( | const scalar | level0Coeff, |
const scalar | sizeCoeff | ||
) |
Definition at line 69 of file snappyHexMesh.C.
References Foam::log().
Referenced by createRefinementSurfaces().
autoPtr<refinementSurfaces> createRefinementSurfaces | ( | const searchableSurfaces & | allGeometry, |
const dictionary & | surfacesDict, | ||
const dictionary & | shapeControlDict, | ||
const label | gapLevelIncrement, | ||
const scalar | level0Coeff | ||
) |
Definition at line 79 of file snappyHexMesh.C.
References dictionary::clone(), entry::dict(), Foam::endl(), HashTable< nil, word, string::hash >::erase(), forAll, forAllConstIter(), dictionary::found(), refinementSurfaces::gapLevel(), refinementSurfaces::globalRegion(), Foam::Info, entry::keyword(), dictionary::lookup(), dictionary::lookupEntryPtr(), Foam::max(), refinementSurfaces::maxLevel(), refinementSurfaces::minLevel(), searchableSurfaces::names(), refinementSurfaces::names(), Foam::nl, Foam::readScalar(), searchableSurfaces::regionNames(), autoPtr::set(), PtrList::set(), Foam::setw(), PtrList::size(), sizeCoeffToRefinement(), dictionary::subDict(), refinementSurfaces::surfaces(), and dictionary::toc().
Referenced by main().
void extractSurface | ( | const polyMesh & | mesh, |
const Time & | runTime, | ||
const labelHashSet & | includePatches, | ||
const fileName & | outFileName | ||
) |
Definition at line 382 of file snappyHexMesh.C.
References Foam::DelaunayMeshTools::allPoints(), DynamicList::append(), polyMesh::boundaryMesh(), List::clear(), Foam::endl(), polyMesh::faces(), forAll, forAllConstIter(), Pstream::gatherList(), polyMesh::globalData(), patchIdentifier::index(), Foam::Info, Foam::inplaceRenumber(), HashTable::insert(), PrimitivePatch< Face, FaceList, PointField, PointType >::localFaces(), Pstream::mapCombineGather(), Pstream::mapCombineScatter(), UPstream::master(), globalMeshData::mergePoints(), mesh, PrimitivePatch< Face, FaceList, PointField, PointType >::meshPointMap(), PrimitivePatch< Face, FaceList, PointField, PointType >::meshPoints(), UPstream::myProcNo(), patchIdentifier::name(), UPstream::nProcs(), Time::path(), polyMesh::points(), TimePaths::processorCase(), HashTable::size(), polyPatch::start(), MeshedSurface::write(), DynamicList::xfer(), and Foam::xferMove().
Referenced by main().
scalar getMergeDistance | ( | const polyMesh & | mesh, |
const scalar | mergeTol | ||
) |
Definition at line 540 of file snappyHexMesh.C.
References IOstream::ASCII, polyMesh::bounds(), IOstream::defaultPrecision(), Foam::endl(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, Foam::Info, mesh, meshBb, Foam::nl, Foam::pow(), fvMesh::time(), and Time::writeFormat().
Referenced by main().
void writeMesh | ( | const string & | msg, |
const meshRefinement & | meshRefiner, | ||
const meshRefinement::debugType | debugLevel, | ||
const meshRefinement::writeType | writeLevel | ||
) |
Definition at line 580 of file snappyHexMesh.C.
References cpuTime::cpuTimeIncrement(), Foam::endl(), Foam::Info, mesh, meshRefinement::mesh(), Time::path(), meshRefinement::printMeshInfo(), fvMesh::time(), meshRefinement::timeName(), meshRefinement::write(), and meshRefinement::WRITEMESH.
Referenced by main(), multiDirRefinement::multiDirRefinement(), multiDirRefinement::refineAllDirs(), multiDirRefinement::refineFromDict(), and multiDirRefinement::refineHex8().
int main | ( | int | argc, |
char * | argv[] | ||
) |
Global surface region to patch (non faceZone surface) or patches
(faceZone surfaces)
Definition at line 612 of file snappyHexMesh.C.
References dictionary::add(), argList::addBoolOption(), refinementParameters::addCellZonesToMesh(), surfaceZonesInfo::addCellZonesToMesh(), meshRefinement::addFaceZone(), autoRefineDriver::addFaceZones(), meshRefinement::addMeshedPatch(), argList::addOption(), args, IOobject::AUTO_WRITE, polyMesh::boundaryMesh(), primitiveMesh::cellCentres(), meshRefinement::checkCoupledFaceZones(), Foam::checkGeometry(), searchableSurfaces::checkGeometry(), motionSmootherAlgo::checkMesh(), polyBoundaryMesh::checkParallelSync(), searchableSurfaces::checkTopology(), TimePaths::constant(), cpuTime::cpuTimeIncrement(), createRefinementSurfaces(), refinementParameters::curvature(), polyMesh::defaultRegion, dictIO(), dictName(), autoLayerDriver::doLayers(), autoRefineDriver::doRefine(), autoSnapDriver::doSnap(), Foam::e, cpuTime::elapsedCpuTime(), Foam::endl(), Foam::exit(), extractSurface(), polyMesh::faceZones(), Foam::FatalError, FatalErrorInFunction, forAll, Time::functionObjects(), meshRefinement::getFaceZoneInfo(), getMergeDistance(), surfaceZonesInfo::getNamedSurfaces(), refinementSurfaces::globalRegion(), refinementParameters::handleSnapProblems(), Foam::Info, HashSet< Key, Hash >::insert(), HashTable::insert(), meshRefinement::IOdebugTypeNames, meshRefinement::IOoutputTypeNames, meshRefinement::IOwriteTypeNames, Foam::isDir(), lookup(), dictionary::lookup(), dictionary::lookupOrDefault(), refinementParameters::maxLocalCells(), Foam::help::mergePatchFaces(), mesh, meshRefinement::meshedPatches(), meshPtr, IOobject::MUST_READ, IOobject::MUST_READ_IF_MODIFIED, Foam::name(), refinementSurfaces::names(), primitiveMesh::nCells(), decompositionMethod::New(), primitiveMesh::nFaces(), Foam::nl, IOobject::NO_READ, IOobject::NO_WRITE, refinementSurfaces::nRegions(), meshRefinement::OBJINTERSECTIONS, functionObjectList::off(), argList::optionFound(), argList::optionLookup(), argList::optionLookupOrDefault(), argList::optionReadIfPresent(), meshRefinement::outputLevel(), decompositionMethod::parallelAware(), UPstream::parRun(), refinementSurfaces::patchInfo(), patchTypes(), Time::path(), refinementParameters::planarAngle(), Foam::pow(), meshRefinement::printMeshInfo(), meshRefinement::readFlags(), dictionary::readIfPresent(), Foam::readScalar(), searchableSurfaces::regionNames(), fvMeshTools::removeEmptyPatches(), Foam::returnReduce(), decompositionModel::selectIO(), autoPtr::set(), HashTable::set(), PtrList::set(), dictionary::set(), Foam::setf(), refinementSurfaces::setMinLevelFields(), List::setSize(), Foam::setw(), List::size(), PtrList::size(), HashTable::size(), polyPatch::start(), dictionary::subDict(), dictionary::subOrEmptyDict(), refinementSurfaces::surfaces(), refinementSurfaces::surfZones(), TimePaths::system(), fvMesh::time(), Time::timeName(), meshRefinement::timeName(), meshRefinement::updateIntersections(), regIOobject::write(), meshRefinement::write(), meshRefinement::writeLevel(), writeMesh(), and searchableSurfaces::writeStats().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.