libMesh
|
#include <triangulator_interface.h>
Public Member Functions | |
AutoAreaFunction (const Parallel::Communicator &comm, const unsigned int num_nearest_pts, const unsigned int power, const Real background_value, const Real background_eff_dist) | |
AutoAreaFunction (const AutoAreaFunction &) | |
AutoAreaFunction & | operator= (const AutoAreaFunction &) |
AutoAreaFunction (AutoAreaFunction &&)=delete | |
AutoAreaFunction & | operator= (AutoAreaFunction &&)=delete |
virtual | ~AutoAreaFunction () |
void | init_mfi (const std::vector< Point > &input_pts, const std::vector< Real > &input_vals) |
virtual Real | operator() (const Point &p, const Real) override |
virtual void | operator() (const Point &p, const Real time, DenseVector< Real > &output) override |
Evaluation function for time-dependent vector-valued functions. More... | |
virtual std::unique_ptr< FunctionBase< Real > > | clone () const override |
virtual void | init () |
The actual initialization process. More... | |
virtual void | clear () |
Clears the function. More... | |
void | operator() (const Point &p, DenseVector< Real > &output) |
Evaluation function for time-independent vector-valued functions. More... | |
virtual Real | component (unsigned int i, const Point &p, Real time=0.) |
bool | initialized () const |
void | set_is_time_dependent (bool is_time_dependent) |
Function to set whether this is a time-dependent function or not. More... | |
bool | is_time_dependent () const |
Protected Attributes | |
const FunctionBase * | _master |
Const pointer to our master, initialized to nullptr . More... | |
bool | _initialized |
When init() was called so that everything is ready for calls to operator() (...), then this bool is true. More... | |
bool | _is_time_dependent |
Cache whether or not this function is actually time-dependent. More... | |
Private Attributes | |
const Parallel::Communicator & | _comm |
const unsigned int | _num_nearest_pts |
const unsigned int | _power |
const Real | _background_value |
const Real | _background_eff_dist |
std::unique_ptr< InverseDistanceInterpolation< 3 > > | _auto_area_mfi |
Definition at line 45 of file triangulator_interface.h.
libMesh::AutoAreaFunction::AutoAreaFunction | ( | const Parallel::Communicator & | comm, |
const unsigned int | num_nearest_pts, | ||
const unsigned int | power, | ||
const Real | background_value, | ||
const Real | background_eff_dist | ||
) |
Definition at line 49 of file triangulator_interface.C.
References libMesh::FunctionBase< Real >::_initialized, and libMesh::FunctionBase< Real >::_is_time_dependent.
libMesh::AutoAreaFunction::AutoAreaFunction | ( | const AutoAreaFunction & | ) |
|
delete |
|
virtualdefault |
|
inlinevirtualinherited |
|
inlineoverridevirtual |
The new copy should be as "deep" as necessary to allow independent destruction and simultaneous evaluations of the copies in different threads.
Implements libMesh::FunctionBase< Real >.
Definition at line 76 of file triangulator_interface.h.
References _background_eff_dist, _background_value, _comm, _num_nearest_pts, and _power.
|
inlinevirtualinherited |
i
at coordinate p
and time time
.i+1
which will result in unexpected behaviour if operator() makes any access beyond that limit. Definition at line 232 of file function_base.h.
|
inlinevirtualinherited |
void libMesh::AutoAreaFunction::init_mfi | ( | const std::vector< Point > & | input_pts, |
const std::vector< Real > & | input_vals | ||
) |
Definition at line 68 of file triangulator_interface.C.
References _auto_area_mfi, and libMesh::FunctionBase< Real >::_initialized.
|
inlineinherited |
true
when this object is properly initialized and ready for use, false
otherwise. Definition at line 210 of file function_base.h.
|
inlineinherited |
true
when the function this object represents is actually time-dependent, false
otherwise. Definition at line 224 of file function_base.h.
p
and time time
, which defaults to zero.Pure virtual, so you have to override it.
Implements libMesh::FunctionBase< Real >.
Definition at line 86 of file triangulator_interface.C.
References _auto_area_mfi, libMesh::FunctionBase< Real >::_initialized, libMesh::libmesh_assert(), and libMesh::libmesh_real().
|
inlineoverridevirtual |
Evaluation function for time-dependent vector-valued functions.
Sets output values in the passed-in output
DenseVector.
Pure virtual, so you have to override it.
Implements libMesh::FunctionBase< Real >.
Definition at line 67 of file triangulator_interface.h.
References libMesh::DenseVector< T >::resize().
|
inlineinherited |
Evaluation function for time-independent vector-valued functions.
Sets output values in the passed-in output
DenseVector.
Definition at line 245 of file function_base.h.
AutoAreaFunction& libMesh::AutoAreaFunction::operator= | ( | const AutoAreaFunction & | ) |
|
delete |
|
inlineinherited |
Function to set whether this is a time-dependent function or not.
This is intended to be only used by subclasses who cannot natively determine time-dependence. In such a case, this function should be used immediately following construction.
Definition at line 217 of file function_base.h.
|
private |
Definition at line 87 of file triangulator_interface.h.
Referenced by init_mfi(), and operator()().
|
private |
Definition at line 86 of file triangulator_interface.h.
Referenced by clone().
|
private |
Definition at line 85 of file triangulator_interface.h.
Referenced by clone().
|
private |
Definition at line 82 of file triangulator_interface.h.
Referenced by clone().
|
protectedinherited |
When init()
was called so that everything is ready for calls to operator()
(...), then this bool
is true.
Definition at line 184 of file function_base.h.
Referenced by AutoAreaFunction(), init_mfi(), and operator()().
|
protectedinherited |
Cache whether or not this function is actually time-dependent.
Definition at line 189 of file function_base.h.
Referenced by AutoAreaFunction().
|
protectedinherited |
Const pointer to our master, initialized to nullptr
.
There may be cases where multiple functions are required, but to save memory, one master handles some centralized data.
Definition at line 178 of file function_base.h.
|
private |
Definition at line 83 of file triangulator_interface.h.
Referenced by clone().
|
private |
Definition at line 84 of file triangulator_interface.h.
Referenced by clone().