62 searchableSurfaceToFace::typeName,
63 "\n Usage: searchableSurfaceToFace surface\n\n"
64 " Select faces with centres enclosed by the surface"
89 if (surfaceName.empty()) surfaceName =
"surface";
106 const searchableSurface&
s = *surf_;
110 List<volumeType> volTypes;
111 s.getVolumeType(ctrs, volTypes);
113 const label len = volTypes.size();
114 for (label elemi = 0; elemi < len; ++elemi)
128 const word& surfaceType,
153 if (surf_ && !surf_->hasVolumeType())
156 <<
nl <<
"The surface " << surf_->name() <<
" (type: "
157 << surf_->type() <<
") appears to be unclosed ... ignoring"
173 dict.getCompat<
word>(
"surfaceType", {{
"surface", 0}}),
188 if (!surf_ || !surf_->hasVolumeType())
197 Info<<
" Adding faces enclosed by surface '"
198 << surf_->name() <<
"' (type: " << surf_->type() <<
") ..."
208 Info<<
" Removing faces enclosed by surface '"
209 << surf_->name() <<
"' (type: " << surf_->type() <<
") ..."
Macros for easy insertion into run-time selection tables.
#define addNamedToRunTimeSelectionTable(baseType, thisType, argNames, lookupName)
Add to construction table with 'lookupName' as the key.
#define addToRunTimeSelectionTable(baseType, thisType, argNames)
Add to construction table with typeName as the key.
Defines the attributes of an object for which implicit objectRegistry management is supported,...
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
bool readIfPresent(const word &keyword, T &val, enum keyType::option matchOpt=keyType::REGEX) const
Registry of regIOobjects.
constant condensation/saturation model.
Mesh consisting of general polyhedral cells.
const vectorField & faceCentres() const
A topoSetFaceSource to select faces whose face centre enclosed by a given searchableSurface.
virtual void applyToSet(const topoSetSource::setAction action, topoSet &set) const
Apply specified action to the topoSet.
Base class of (analytical or triangulated) surface. Encapsulates all the search routines....
The topoSetFaceSource is a intermediate class for handling topoSet sources for selecting faces.
Class with constructor to add usage string to table.
Base class of a source for a topoSet.
void addOrDelete(topoSet &set, const label id, const bool add) const
Add or delete id from set. Add when 'add' is true.
setAction
Enumeration defining various actions.
@ SUBTRACT
Subtract elements from current set.
@ ADD
Add elements to current set.
@ NEW
Create a new set and ADD elements to it.
const polyMesh & mesh_
Reference to the mesh.
General set of labels of mesh quantity (points, cells, faces).
@ INSIDE
A location inside the volume.
A class for handling words, derived from Foam::string.
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
gmvFile<< "tracers "<< particles.size()<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().x()<< " ";}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().y()<< " ";}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().z()<< " ";}gmvFile<< nl;forAll(lagrangianScalarNames, i){ word name=lagrangianScalarNames[i];IOField< scalar > s(IOobject(name, runTime.timeName(), cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
#define WarningInFunction
Report a warning using Foam::Warning.
messageStream Info
Information stream (stdout output on master, null elsewhere)
vectorField pointField
pointField is a vectorField.
Ostream & endl(Ostream &os)
Add newline and flush stream.
void add(FieldField< Field1, typename typeOfSum< Type1, Type2 >::type > &f, const FieldField< Field1, Type1 > &f1, const FieldField< Field2, Type2 > &f2)
static word getSurfaceName(const dictionary &dict, word surfaceName)
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh > > &tdf1, const word &name, const dimensionSet &dimensions)
Global function forwards to reuseTmpDimensionedField::New.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
constexpr char nl
The newline '\n' character (0x0a)
dict add("bounds", meshBb)