94#ifndef functionObjects_surfaceDistance_H
95#define functionObjects_surfaceDistance_H
111namespace functionObjects
120 public fvMeshFunctionObject
130 autoPtr<searchableSurfaces>
geomPtr_;
147 const dictionary&
dict
154 void operator=(
const surfaceDistance&) =
delete;
170 virtual bool write();
A simple wrapper around bool so that it can be read as a word: true/false, on/off,...
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
const word & name() const noexcept
Return the name of this functionObject.
Specialization of Foam::functionObject for an Foam::fvMesh, providing a reference to the Foam::fvMesh...
Computes the distance to the nearest surface from a given geometry.
autoPtr< searchableSurfaces > geomPtr_
Geometry.
TypeName("surfaceDistance")
Runtime type information.
surfaceDistance(const word &name, const Time &runTime, const dictionary &dict)
Construct for given objectRegistry and dictionary.
virtual ~surfaceDistance()=default
Destructor.
void operator=(const surfaceDistance &)=delete
No copy assignment.
surfaceDistance(const surfaceDistance &)=delete
No copy construct.
Switch doCells_
Switch to calculate distance-to-cells.
virtual bool execute()
Calculate the interpolated fields.
virtual bool write()
Write the interpolated fields.
virtual bool read(const dictionary &)
Read the controls.
A class for handling words, derived from Foam::string.
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.