|
| | IdentityFunction () |
| |
| virtual RangeNumberType | value (const Point< dim > &p, const unsigned int component=0) const override |
| |
| virtual Tensor< 1, dim, RangeNumberType > | gradient (const Point< dim > &p, const unsigned int component=0) const override |
| |
| virtual RangeNumberType | laplacian (const Point< dim > &p, const unsigned int component=0) const override |
| |
| virtual SymmetricTensor< 2, dim, RangeNumberType > | hessian (const Point< dim > &p, const unsigned int component=0) const override |
| |
| virtual void | vector_value (const Point< dim > &p, Vector< double > &values) const |
| |
| virtual void | value_list (const std::vector< Point< dim > > &points, std::vector< double > &values, const unsigned int component=0) const |
| |
| virtual void | vector_value_list (const std::vector< Point< dim > > &points, std::vector< Vector< double > > &values) const |
| |
| virtual void | vector_values (const std::vector< Point< dim > > &points, std::vector< std::vector< double > > &values) const |
| |
| virtual void | vector_gradient (const Point< dim > &p, std::vector< Tensor< 1, dim, double > > &gradients) const |
| |
| virtual void | gradient_list (const std::vector< Point< dim > > &points, std::vector< Tensor< 1, dim, double > > &gradients, const unsigned int component=0) const |
| |
| virtual void | vector_gradients (const std::vector< Point< dim > > &points, std::vector< std::vector< Tensor< 1, dim, double > > > &gradients) const |
| |
| virtual void | vector_gradient_list (const std::vector< Point< dim > > &points, std::vector< std::vector< Tensor< 1, dim, double > > > &gradients) const |
| |
| virtual void | vector_laplacian (const Point< dim > &p, Vector< double > &values) const |
| |
| virtual void | laplacian_list (const std::vector< Point< dim > > &points, std::vector< double > &values, const unsigned int component=0) const |
| |
| virtual void | vector_laplacian_list (const std::vector< Point< dim > > &points, std::vector< Vector< double > > &values) const |
| |
| virtual void | vector_hessian (const Point< dim > &p, std::vector< SymmetricTensor< 2, dim, double > > &values) const |
| |
| virtual void | hessian_list (const std::vector< Point< dim > > &points, std::vector< SymmetricTensor< 2, dim, double > > &values, const unsigned int component=0) const |
| |
| virtual void | vector_hessian_list (const std::vector< Point< dim > > &points, std::vector< std::vector< SymmetricTensor< 2, dim, double > > > &values) const |
| |
| virtual std::size_t | memory_consumption () const |
| |
| numbers::NumberTraits< double >::real_type | get_time () const |
| |
| virtual void | set_time (const numbers::NumberTraits< double >::real_type new_time) |
| |
| virtual void | advance_time (const numbers::NumberTraits< double >::real_type delta_t) |
| |
template<
int dim, typename RangeNumberType = double>
class Functions::IdentityFunction< dim, RangeNumberType >
A function whose output is also its input. One possible application of this function is interpolating or projecting a finite element field that represents spatial coordinates: e.g., one can set up a finite element field to interpolate the positions of a Triangulation's cells with this function (via VectorTools::interpolate()), which is useful when doing calculations in a Lagrangian reference frame.
Definition at line 530 of file function.h.
| virtual void Function< dim, double >::value_list |
( |
const std::vector< Point< dim > > & |
points, |
|
|
std::vector< double > & |
values, |
|
|
const unsigned int |
component = 0 |
|
) |
| const |
|
virtualinherited |
Set values to the point values of the specified component of the function at the points. It is assumed that values already has the right size, i.e. the same size as the points array.
By default, this function repeatedly calls value() for each point separately, to fill the output array.
Reimplemented in Functions::ConstantFunction< dim, double >.
| virtual void Function< dim, double >::vector_value_list |
( |
const std::vector< Point< dim > > & |
points, |
|
|
std::vector< Vector< double > > & |
values |
|
) |
| const |
|
virtualinherited |
Set values to the point values of the function at the points. It is assumed that values already has the right size, i.e. the same size as the points array, and that all elements be vectors with the same number of components as this function has.
By default, this function repeatedly calls vector_value() for each point separately, to fill the output array.
Reimplemented in Functions::ConstantFunction< dim, double >.
| virtual void Function< dim, double >::vector_gradient_list |
( |
const std::vector< Point< dim > > & |
points, |
|
|
std::vector< std::vector< Tensor< 1, dim, double > > > & |
gradients |
|
) |
| const |
|
virtualinherited |
Set gradients to the gradients of the function at the points, for all components. It is assumed that gradients already has the right size, i.e. the same size as the points array.
The outer loop over gradients is over the points in the list, the inner loop over the different components of the function.
Reimplemented in Functions::ConstantFunction< dim, double >.