Go to the documentation of this file.
42 immersedBoundaryPolyPatch,
54 Info<<
"void immersedBoundaryPolyPatch::makeTriSurfSearch() const : "
55 <<
"creating triSurface search algorithm"
63 FatalErrorIn(
"immersedBoundaryPolyPatch::makeTriSurfSearch() const")
64 <<
"triSurface search algorithm already exist"
113 internalFlow_(
false),
114 triSurfSearchPtr_(NULL),
141 triSurfSearchPtr_(NULL),
148 "immersedBoundaryPolyPatch::immersedBoundaryPolyPatch\n"
150 " const word& name,\n"
151 " const dictionary& dict,\n"
152 " const label index,\n"
153 " const polyBoundaryMesh& bm\n"
156 ) <<
"Faces detected in the immersedBoundaryPolyPatch. "
157 <<
"This is not allowed: please make sure that the patch size "
184 triSurfSearchPtr_(NULL),
198 polyPatch(pp, bm, index, newSize, newStart),
212 triSurfSearchPtr_(NULL),
230 if (!triSurfSearchPtr_)
235 return *triSurfSearchPtr_;
248 const pointField& oldPoints = ibMesh_.points();
250 if (oldPoints.size() !=
p.size())
254 "void immersedBoundaryPolyPatch::moveTriSurfacePoints\n"
256 " const pointField& p\n"
258 ) <<
"Incorrect size of motion points for patch " <<
name()
260 << oldPoints.size() <<
" p = " <<
p.size()
264 Info<<
"Moving immersed boundary points for patch " <<
name()
267 ibMesh_.movePoints(
p);
272 ibMesh_.triSurface::write
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
A class for handling words, derived from string.
void makeTriSurfSearch() const
Make triSurface search algorithm.
A class for handling file names.
const triSurfaceSearch & triSurfSearch() const
Return triSurface search object.
addToRunTimeSelectionTable(ensightPart, ensightPartCells, istream)
const Time & time() const
Return time.
virtual void write(Ostream &) const
Write the polyPatch data as a dictionary.
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.
virtual void write(Ostream &) const
Write.
Ostream & endl(Ostream &os)
Add newline and flush stream.
triSurfaceMesh ibMesh_
Triangular surface representing immersed boundary.
Helper class to search on triSurface.
Switch internalFlow_
Internal or external flow calculation.
immersedBoundaryPolyPatch(const word &name, const label size, const label start, const label index, const polyBoundaryMesh &bm)
Construct from components.
void deleteDemandDrivenData(DataPtr &dataPtr)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Pre-declare SubField and related Field type.
A patch is a list of labels that address the faces in the global face list.
#define FatalIOErrorIn(functionName, ios)
Report an error message using Foam::FatalIOError.
virtual void movePoints(const Field< PointType > &)
Correct patch after moving points.
const polyMesh & mesh() const
Return the mesh reference.
A list of keyword definitions, which are a keyword followed by any number of values (e....
virtual ~immersedBoundaryPolyPatch()
Destructor.
Macros for easy insertion into run-time selection tables.
errorManip< error > abort(error &err)
triSurfaceSearch * triSurfSearchPtr_
Triangular surface search algorithm.
const word & constant() const
Return constant name.
Ostream & writeKeyword(const keyType &)
Write the keyword followed by an appropriate indentation.
void clearOut()
Clear all demand-driven data.
void moveTriSurfacePoints(const pointField &p)
Correct patches after moving points.
fileName path(UMean.rootPath()/UMean.caseName()/"graphs"/UMean.instance())
Addressing for all faces on surface of mesh. Can either be read from polyMesh or from triSurface....
#define FatalErrorIn(functionName)
Report an error message using Foam::FatalError.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
bool mkDir(const fileName &, mode_t=0777)
Make a directory and return an error if it could not be created.
virtual void movePoints(const pointField &p)
Correct patches after moving points.
defineTypeNameAndDebug(combustionModel, 0)
const word & name() const
Return name.
word name(const complex &)
Return a string representation of a complex.