ASPECT
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Member Functions | List of all members
aspect::Utilities::VectorFunctionFromVelocityFunctionObject< dim > Class Template Reference
Inheritance diagram for aspect::Utilities::VectorFunctionFromVelocityFunctionObject< dim >:
Inheritance graph
[legend]

Public Member Functions

 VectorFunctionFromVelocityFunctionObject (const unsigned int n_components, const std::function< Tensor< 1, dim >(const Point< dim > &)> &function_object)
 
- Public Member Functions inherited from aspect::VectorFunctionFromTensorFunctionObject< dim >
 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
 

Detailed Description

template<int dim>
class aspect::Utilities::VectorFunctionFromVelocityFunctionObject< dim >

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.

Constructor & Destructor Documentation

§ VectorFunctionFromVelocityFunctionObject()

template<int dim>
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.

Parameters
n_componentstotal number of components of the finite element system.
function_objectThe function that will form the first dim components of the resulting Function object.

The documentation for this class was generated from the following file: