ASPECT
|
Public Member Functions | |
VectorFunctionFromVelocityFunctionObject (const unsigned int n_components, const std::function< Tensor< 1, dim >(const Point< dim > &)> &function_object) | |
double | value (const Point< dim > &p, const unsigned int component=0) const override |
void | vector_value (const Point< dim > &p, Vector< double > &values) const override |
Private Attributes | |
const std::function< Tensor< 1, dim >const Point< dim > &)> | function_object |
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.
Definition at line 1085 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 one component of the resulting Function object. |
|
override |
Return the value of the function at the given point. Returns the value the function given to the constructor produces for this point.
|
override |
Return all components of a vector-valued function at a given point.
values
shall have the right size beforehand, i.e. #n_components.
|
private |
The function object which we call when this class's value() or value_list() functions are called.
Definition at line 1127 of file utilities.h.