Go to the documentation of this file.
41 searchableSurfaceToPoint,
47 searchableSurfaceToPoint,
53 searchableSurfaceToPoint,
62 searchableSurfaceToPoint::typeName,
63 "\n Usage: searchableSurfaceToPoint surface\n\n"
64 " Select points enclosed by the surface"
90 void Foam::searchableSurfaceToPoint::combine(
topoSet& set,
const bool add)
const
96 const searchableSurface&
s = *surf_;
100 List<volumeType> volTypes;
103 const label len = volTypes.size();
104 for (label
id=0;
id < len; ++id)
118 const word& surfaceType,
134 mesh.objectRegistry::db(),
143 if (surf_ && !surf_->hasVolumeType())
146 <<
nl <<
"The surface " << surf_->name() <<
" (type: "
147 << surf_->type() <<
") appears to be unclosed ... ignoring"
178 if (!surf_ || !surf_->hasVolumeType())
187 Info<<
" Adding points enclosed by surface '"
188 << surf_->name() <<
"' (type: " << surf_->type() <<
") ..."
198 Info<<
" Removing points enclosed by surface '"
199 << surf_->name() <<
"' (type: " << surf_->type() <<
") ..."
addToRunTimeSelectionTable(decompositionMethod, kahipDecomp, dictionary)
virtual const pointField & points() const
Return raw points.
Defines the attributes of an object for which implicit objectRegistry management is supported,...
A class for handling words, derived from Foam::string.
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))
Class with constructor to add usage string to table.
Ostream & endl(Ostream &os)
Add newline and flush stream.
setAction
Enumeration defining the valid actions.
T getCompat(const word &keyword, std::initializer_list< std::pair< const char *, int >> compat, enum keyType::option=keyType::REGEX) const
Create a new set and ADD elements to it.
A topoSetPointSource to select points which are centre enclosed by a given searchableSurface.
Mesh consisting of general polyhedral cells.
messageStream Info
Information stream (uses stdout - output is on the master only)
AccessType combine(const UList< T > &lists, AccessOp aop=accessOp< T >())
Combines sub-lists into a single list.
addNamedToRunTimeSelectionTable(topoSetCellSource, badQualityToCell, word, badQuality)
General set of labels of mesh quantity (points, cells, faces).
The topoSetPointSource is a intermediate class for handling topoSet sources for selecting points.
static const word defaultName("coeffs")
virtual void applyToSet(const topoSetSource::setAction action, topoSet &set) const
Apply specified action to the topoSet.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
void add(FieldField< Field1, typename typeOfSum< Type1, Type2 >::type > &f, const FieldField< Field1, Type1 > &f1, const FieldField< Field2, Type2 > &f2)
Macros for easy insertion into run-time selection tables.
Subtract elements from the set.
static autoPtr< searchableSurface > New(const word &surfaceType, const IOobject &io, const dictionary &dict)
Return a reference to the selected searchableSurface.
A location inside the volume.
void addOrDelete(topoSet &set, const label id, const bool add) const
Add or delete id from set. Add when 'add' is true.
const Time & time() const
Return the top-level database.
const polyMesh & mesh_
Reference to the mesh.
const word & constant() const
Return constant name.
defineTypeNameAndDebug(combustionModel, 0)
static word getSurfaceName(const dictionary &dict, const word &defaultName)
Retrieve surface name from dictionary entry.
#define WarningInFunction
Report a warning using Foam::Warning.
searchableSurfaceToPoint(const word &surfaceType, const polyMesh &mesh, const dictionary &dict)
Construct surface-type from dictionary.
const word & name() const
Return reference to name.