116#ifndef sampledMeshedSurface_H
117#define sampledMeshedSurface_H
134class sampledMeshedSurface
136 public sampledSurface,
157 static const Enum<samplingSource> samplingSourceNames_;
169 mutable bool needsUpdate_;
184 scalar maxDistanceSqr_;
187 dictionary defaultValues_;
224 const word& surfaceName,
Enum is a wrapper around a list of names/values that represent particular enumeration (or int) values...
Minimal example by using system/controlDict.functions:
const vectorField & Sf() const
Face area vectors (normals)
const scalarField & magSf() const
Face area magnitudes.
const vectorField & Cf() const
Face centres.
const labelList & faceIds() const
Return const access to faces ids.
const List< face > & surfFaces() const
Return const access to the faces.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
bool empty() const noexcept
True if the UList is empty (ie, size() is zero)
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Abstract base class for volume field interpolation.
Various (local, not parallel) searches on polyMesh; uses (demand driven) octree to search.
Mesh consisting of general polyhedral cells.
A sampledSurface from a meshed surface. It samples on the points/faces of the meshed surface.
virtual const pointField & points() const
Points of surface.
bool onBoundary() const
Sampling boundary values instead of cell values.
virtual void print(Ostream &os, int level=0) const
Print information.
virtual const labelList & faceIds() const
Per-face identifier (eg, element Id)
virtual const faceList & faces() const
Faces of surface.
virtual const vectorField & Cf() const
Face centres.
virtual const labelList & zoneIds() const
Per-face zone/region information.
virtual bool hasFaceIds() const
If element ids/order of the original surface are kept.
virtual const scalarField & magSf() const
Face area magnitudes.
virtual bool expire()
Mark the surface as needing an update.
virtual bool needsUpdate() const
Does the surface need an update?
virtual bool update()
Update the surface as required.
virtual const vectorField & Sf() const
Face area vectors.
samplingSource
Types of sampling regions.
@ boundaryFaces
Use nearest boundary face values.
@ cells
Use nearest cell value.
@ insideCells
Surface face within a cell, or trim.
virtual ~sampledMeshedSurface()=default
Destructor.
TypeName("sampledMeshedSurface")
Declare type-name, virtual type (with debug switch)
An abstract class for surfaces with sampling.
const word & name() const noexcept
Name of surface.
const polyMesh & mesh() const noexcept
Access to the underlying mesh.
bool interpolate() const noexcept
Same as isPointData()
A class for managing temporary objects.
Standard boundBox with extra functionality for use in octree.
A class for handling words, derived from Foam::string.
OBJstream os(runTime.globalPath()/outputName)
List< label > labelList
A List of labels.
vectorField pointField
pointField is a vectorField.
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
MeshedSurface< face > meshedSurface
Field< vector > vectorField
Specialisation of Field<T> for vector.
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.