Functions
snappyHexMesh.C File Reference
Include dependency graph for snappyHexMesh.C:

Go to the source code of this file.

Functions

label sizeCoeffToRefinement (const scalar level0Coeff, const scalar sizeCoeff)
 
autoPtr< refinementSurfacescreateRefinementSurfaces (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[])
 

Function Documentation

◆ sizeCoeffToRefinement()

label sizeCoeffToRefinement ( const scalar  level0Coeff,
const scalar  sizeCoeff 
)

Definition at line 69 of file snappyHexMesh.C.

References Foam::log().

Referenced by createRefinementSurfaces().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ createRefinementSurfaces()

autoPtr<refinementSurfaces> createRefinementSurfaces ( const searchableSurfaces allGeometry,
const dictionary surfacesDict,
const dictionary shapeControlDict,
const label  gapLevelIncrement,
const scalar  level0Coeff 
)

◆ extractSurface()

void extractSurface ( const polyMesh mesh,
const Time runTime,
const labelHashSet includePatches,
const fileName outFileName 
)

◆ getMergeDistance()

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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ writeMesh()

void writeMesh ( const string msg,
const meshRefinement meshRefiner,
const meshRefinement::debugType  debugLevel,
const meshRefinement::writeType  writeLevel 
)

◆ main()

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().