41 searchableSurfaceToPoint,
47 searchableSurfaceToPoint,
53 searchableSurfaceToPoint,
62 searchableSurfaceToPoint::typeName,
63 "\n Usage: searchableSurfaceToPoint surface\n\n" 64 " Select points enclosed by the surface" 89 if (surfaceName.empty()) surfaceName =
"surface";
99 void Foam::searchableSurfaceToPoint::combine(topoSet&
set,
const bool add)
const 108 const searchableSurface&
s = *surf_;
112 List<volumeType> volTypes;
113 s.getVolumeType(ctrs, volTypes);
115 const label len = volTypes.size();
116 for (label
id=0;
id < len; ++id)
130 const word& surfaceType,
131 const polyMesh&
mesh,
132 const dictionary&
dict 138 searchableSurface::
New 144 mesh.time().constant(),
146 mesh.objectRegistry::db(),
155 if (surf_ && !surf_->hasVolumeType())
158 <<
nl <<
"The surface " << surf_->name() <<
" (type: " 159 << surf_->type() <<
") appears to be unclosed ... ignoring" 169 const polyMesh&
mesh,
170 const dictionary&
dict 173 searchableSurfaceToPoint
175 dict.getCompat<word>(
"surfaceType", {{
"surface", 0}}),
190 if (!surf_ || !surf_->hasVolumeType())
199 Info<<
" Adding points enclosed by surface '" 200 << surf_->name() <<
"' (type: " << surf_->type() <<
") ..." 210 Info<<
" Removing points enclosed by surface '" 211 << surf_->name() <<
"' (type: " << surf_->type() <<
") ..."
A list of keyword definitions, which are a keyword followed by a number of values (eg...
Create a new set and ADD elements to it.
Add elements to current set.
constexpr char nl
The newline '\n' character (0x0a)
Ostream & endl(Ostream &os)
Add newline and flush stream.
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tf1, const word &name, const dimensionSet &dimensions, const bool initCopy=false)
Global function forwards to reuseTmpDimensionedField::New.
void addOrDelete(topoSet &set, const label id, const bool add) const
Add or delete id from set. Add when 'add' is true.
Macros for easy insertion into run-time selection tables.
addNamedToRunTimeSelectionTable(topoSetCellSource, badQualityToCell, word, badQuality)
virtual const pointField & points() const
Return raw points.
AccessType combine(const UList< T > &lists, AccessOp aop=accessOp< T >())
Combines sub-lists into a single list.
vectorField pointField
pointField is a vectorField.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.
virtual void applyToSet(const topoSetSource::setAction action, topoSet &set) const
Apply specified action to the topoSet.
A class for handling words, derived from Foam::string.
setAction
Enumeration defining various actions.
A location inside the volume.
static word getSurfaceName(const dictionary &dict, word surfaceName)
const polyMesh & mesh_
Reference to the mesh.
const wordList surface
Standard surface field types (scalar, vector, tensor, etc)
void add(FieldField< Field1, typename typeOfSum< Type1, Type2 >::type > &f, const FieldField< Field1, Type1 > &f1, const FieldField< Field2, Type2 > &f2)
bool readIfPresent(const word &keyword, T &val, enum keyType::option matchOpt=keyType::REGEX) const
Find an entry if present, and assign to T val. FatalIOError if it is found and the number of tokens i...
defineTypeNameAndDebug(combustionModel, 0)
General set of labels of mesh quantity (points, cells, faces).
Subtract elements from current set.
#define WarningInFunction
Report a warning using Foam::Warning.
Class with constructor to add usage string to table.
tmp< pointField > transform(const pointField &points) const
Coordinate transform (optionally) coordinates. Returns reference to input data if no transform is act...
messageStream Info
Information stream (stdout output on master, null elsewhere)
searchableSurfaceToPoint(const word &surfaceType, const polyMesh &mesh, const dictionary &dict)
Construct surface-type from dictionary.
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))
addToRunTimeSelectionTable(functionObject, pointHistory, dictionary)