#include <triangulator_interface.h>
|
| | 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.
|
| |
| virtual std::unique_ptr< FunctionBase< Real > > | clone () const override |
| |
| virtual void | init () |
| | The actual initialization process.
|
| |
| virtual void | clear () |
| | Clears the function.
|
| |
| void | operator() (const Point &p, DenseVector< Real > &output) |
| | Evaluation function for time-independent vector-valued functions.
|
| |
| 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.
|
| |
| bool | is_time_dependent () const |
| |
|
| const FunctionBase * | _master |
| | Const pointer to our master, initialized to nullptr.
|
| |
| bool | _initialized |
| | When init() was called so that everything is ready for calls to operator() (...), then this bool is true.
|
| |
| bool | _is_time_dependent |
| | Cache whether or not this function is actually time-dependent.
|
| |
Definition at line 45 of file triangulator_interface.h.
◆ AutoAreaFunction() [1/3]
| 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 54 of file triangulator_interface.C.
58 :
65{
68}
std::unique_ptr< InverseDistanceInterpolation< 3 > > _auto_area_mfi
const Parallel::Communicator & _comm
const Real _background_eff_dist
const Real _background_value
const unsigned int _power
const unsigned int _num_nearest_pts
bool _initialized
When init() was called so that everything is ready for calls to operator() (...), then this bool is t...
bool _is_time_dependent
Cache whether or not this function is actually time-dependent.
template class LIBMESH_EXPORT InverseDistanceInterpolation< 3 >
References libMesh::FunctionBase< Real >::_initialized, and libMesh::FunctionBase< Real >::_is_time_dependent.
◆ AutoAreaFunction() [2/3]
◆ AutoAreaFunction() [3/3]
◆ ~AutoAreaFunction()
| libMesh::AutoAreaFunction::~AutoAreaFunction |
( |
| ) |
|
|
virtualdefault |
◆ clear()
◆ clone()
| virtual std::unique_ptr< FunctionBase< Real > > libMesh::AutoAreaFunction::clone |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ component()
- Returns
- The vector component
i at coordinate p and time time.
- Note
- Subclasses aren't required to override this, since the default implementation is based on the full vector evaluation, which is often correct.
-
Subclasses are recommended to override this, since the default implementation is based on a vector evaluation, which is usually unnecessarily inefficient.
-
The default implementation calls operator() with a DenseVector of size
i+1 which will result in unexpected behaviour if operator() makes any access beyond that limit.
Definition at line 145 of file function_base.h.
235{
236 DenseVector<Output> outvec(i+1);
237 (*this)(p, time, outvec);
238 return outvec(i);
239}
◆ init()
◆ init_mfi()
| void libMesh::AutoAreaFunction::init_mfi |
( |
const std::vector< Point > & |
input_pts, |
|
|
const std::vector< Real > & |
input_vals |
|
) |
| |
◆ initialized()
- Returns
true when this object is properly initialized and ready for use, false otherwise.
Definition at line 154 of file function_base.h.
211{
212 return (this->_initialized);
213}
◆ is_time_dependent()
- Returns
true when the function this object represents is actually time-dependent, false otherwise.
Definition at line 168 of file function_base.h.
225{
226 return (this->_is_time_dependent);
227}
◆ operator()() [1/3]
◆ operator()() [2/3]
| Real libMesh::AutoAreaFunction::operator() |
( |
const Point & |
p, |
|
|
const Real |
time |
|
) |
| |
|
overridevirtual |
◆ operator()() [3/3]
Evaluation function for time-independent vector-valued functions.
Sets output values in the passed-in output DenseVector.
Definition at line 116 of file function_base.h.
247{
248
250}
virtual Real operator()(const Point &p, const Real time=0.)=0
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ set_is_time_dependent()
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 162 of file function_base.h.
218{
220}
bool is_time_dependent() const
◆ _auto_area_mfi
◆ _background_eff_dist
| const Real libMesh::AutoAreaFunction::_background_eff_dist |
|
private |
◆ _background_value
| const Real libMesh::AutoAreaFunction::_background_value |
|
private |
◆ _comm
◆ _initialized
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.
◆ _is_time_dependent
Cache whether or not this function is actually time-dependent.
Definition at line 189 of file function_base.h.
◆ _master
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.
◆ _num_nearest_pts
| const unsigned int libMesh::AutoAreaFunction::_num_nearest_pts |
|
private |
◆ _power
| const unsigned int libMesh::AutoAreaFunction::_power |
|
private |
The documentation for this class was generated from the following files: