ASPECT
Public Member Functions | Private Attributes | List of all members
aspect::internal::DynamicFEPointEvaluation< dim > Class Template Referenceabstract

Public Member Functions

 DynamicFEPointEvaluation (const unsigned int first_component, const unsigned int n_components)
 
virtual ~DynamicFEPointEvaluation ()=default
 
virtual void evaluate (const ArrayView< double > &solution_values, const EvaluationFlags::EvaluationFlags flags)=0
 
virtual small_vector< Tensor< 1, dim > > get_gradient (const unsigned int evaluation_point) const =0
 
virtual void get_gradient (const unsigned int evaluation_point, const ArrayView< Tensor< 1, dim >> &gradients) const =0
 
virtual small_vector< double > get_value (const unsigned int evaluation_point) const =0
 
virtual void get_value (const unsigned int evaluation_point, const ArrayView< double > &solution) const =0
 
virtual unsigned int get_first_component () const final
 
virtual unsigned int get_n_components () const final
 

Private Attributes

unsigned int first_component
 
unsigned int n_components
 

Detailed Description

template<int dim>
class aspect::internal::DynamicFEPointEvaluation< dim >

Wrapper around FEPointEvaluation to choose number of components dynamically. This class is only an abstract base class that can be used to implement derived classes.

Definition at line 43 of file solution_evaluator.h.

Constructor & Destructor Documentation

◆ DynamicFEPointEvaluation()

template<int dim>
aspect::internal::DynamicFEPointEvaluation< dim >::DynamicFEPointEvaluation ( const unsigned int  first_component,
const unsigned int  n_components 
)
inline

Constructor which allows to select at run time the first_component and the n_components.

Definition at line 49 of file solution_evaluator.h.

◆ ~DynamicFEPointEvaluation()

template<int dim>
virtual aspect::internal::DynamicFEPointEvaluation< dim >::~DynamicFEPointEvaluation ( )
virtualdefault

Destructor.

Member Function Documentation

◆ evaluate()

template<int dim>
virtual void aspect::internal::DynamicFEPointEvaluation< dim >::evaluate ( const ArrayView< double > &  solution_values,
const EvaluationFlags::EvaluationFlags  flags 
)
pure virtual

Evaluate the solution at the given positions.

solution_values contains the values of the degrees of freedom. flags controls which values should be computed.

◆ get_gradient() [1/2]

template<int dim>
virtual small_vector<Tensor<1,dim> > aspect::internal::DynamicFEPointEvaluation< dim >::get_gradient ( const unsigned int  evaluation_point) const
pure virtual

Return the gradient of the solution at the given evaluation_point.

◆ get_gradient() [2/2]

template<int dim>
virtual void aspect::internal::DynamicFEPointEvaluation< dim >::get_gradient ( const unsigned int  evaluation_point,
const ArrayView< Tensor< 1, dim >> &  gradients 
) const
pure virtual

Copy the gradient of the solution at the given evaluation_point into the array gradients.

◆ get_value() [1/2]

template<int dim>
virtual small_vector<double> aspect::internal::DynamicFEPointEvaluation< dim >::get_value ( const unsigned int  evaluation_point) const
pure virtual

Return the value of the solution at the given evaluation_point.

◆ get_value() [2/2]

template<int dim>
virtual void aspect::internal::DynamicFEPointEvaluation< dim >::get_value ( const unsigned int  evaluation_point,
const ArrayView< double > &  solution 
) const
pure virtual

Copy the value of the solution at the given evaluation_point. into the array solution.

◆ get_first_component()

template<int dim>
virtual unsigned int aspect::internal::DynamicFEPointEvaluation< dim >::get_first_component ( ) const
inlinefinalvirtual

Return the first component of the solution vector.

Definition at line 105 of file solution_evaluator.h.

References aspect::internal::DynamicFEPointEvaluation< dim >::first_component.

◆ get_n_components()

template<int dim>
virtual unsigned int aspect::internal::DynamicFEPointEvaluation< dim >::get_n_components ( ) const
inlinefinalvirtual

Return the number of components of the solution vector.

Definition at line 115 of file solution_evaluator.h.

References aspect::internal::DynamicFEPointEvaluation< dim >::n_components.

Member Data Documentation

◆ first_component

template<int dim>
unsigned int aspect::internal::DynamicFEPointEvaluation< dim >::first_component
private

The first component of the solution vector.

Definition at line 124 of file solution_evaluator.h.

Referenced by aspect::internal::DynamicFEPointEvaluation< dim >::get_first_component().

◆ n_components

template<int dim>
unsigned int aspect::internal::DynamicFEPointEvaluation< dim >::n_components
private

The number of components of the solution vector.

Definition at line 129 of file solution_evaluator.h.

Referenced by aspect::internal::DynamicFEPointEvaluation< dim >::get_n_components().


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