![]() |
ASPECT
|
Public Member Functions | |
VectorFunctionFromVelocityFunctionObject (const unsigned int n_components, const std::function< Tensor< 1, dim >(const Point< dim > &)> &function_object) | |
![]() | |
VectorFunctionFromTensorFunctionObject (const std::function< Tensor< 1, dim, double >(const Point< dim > &)> &tensor_function_object, const unsigned int selected_component=0, const unsigned int n_components=dim) | |
virtual | ~VectorFunctionFromTensorFunctionObject () override=default |
virtual double | value (const Point< dim > &p, const unsigned int component=0) const override |
virtual void | vector_value (const Point< dim > &p, Vector< double > &values) const override |
virtual void | vector_value_list (const std::vector< Point< dim >> &points, std::vector< Vector< double >> &value_list) const override |
Conversion object where one can provide a function that returns a tensor for the velocity at a given point and it returns something that matches the ::Function interface with a number of output components equal to the number of components of the finite element in use.
This function is a special case of the VectorFunctionFromTensorFunctionObject class.
Definition at line 1112 of file utilities.h.
aspect::Utilities::VectorFunctionFromVelocityFunctionObject< dim >::VectorFunctionFromVelocityFunctionObject | ( | const unsigned int | n_components, |
const std::function< Tensor< 1, dim >(const Point< dim > &)> & | function_object | ||
) |
Given a function object that takes a Point and returns a Tensor<1,dim>, convert this into an object that matches the Function<dim> interface.
n_components | total number of components of the finite element system. |
function_object | The function that will form the first dim components of the resulting Function object. |