![]() |
Reference documentation for deal.II version 9.1.1
|
#include <deal.II/base/tensor_function.h>
Public Types | |
| using | time_type = typename TensorFunction< rank, dim, Number >::time_type |
Public Types inherited from TensorFunction< rank, dim, double > | |
| using | value_type = Tensor< rank, dim, double > |
| using | gradient_type = Tensor< rank+1, dim, double > |
| using | time_type = typename FunctionTime< typename numbers::NumberTraits< double >::real_type >::time_type |
Public Member Functions | |
| ConstantTensorFunction (const ::Tensor< rank, dim, Number > &value, const time_type initial_time=0.0) | |
| virtual typename ::TensorFunction< rank, dim, Number >::value_type | value (const Point< dim > &p) const override |
| virtual typename ::TensorFunction< rank, dim, Number >::gradient_type | gradient (const Point< dim > &p) const override |
Public Member Functions inherited from TensorFunction< rank, dim, double > | |
| TensorFunction (const time_type initial_time=time_type(0.0)) | |
| virtual | ~TensorFunction () override=default |
| virtual void | value_list (const std::vector< Point< dim >> &points, std::vector< value_type > &values) const |
| virtual void | gradient_list (const std::vector< Point< dim >> &points, std::vector< gradient_type > &gradients) const |
Provide a tensor valued function which always returns a constant tensor value. Obviously, all derivates of this function are zero.
Definition at line 132 of file tensor_function.h.
| using ConstantTensorFunction< rank, dim, Number >::time_type = typename TensorFunction<rank, dim, Number>::time_type |
The scalar-valued real type used for representing time.
Definition at line 138 of file tensor_function.h.
| ConstantTensorFunction< rank, dim, Number >::ConstantTensorFunction | ( | const ::Tensor< rank, dim, Number > & | value, |
| const time_type | initial_time = 0.0 |
||
| ) |
Constructor; takes the constant tensor value as an argument. The reference value is copied internally.
An initial value for the time variable may be specified, otherwise it defaults to zero.
|
overridevirtual |
Return the value of the function at the given point.
Reimplemented from TensorFunction< rank, dim, double >.
|
overridevirtual |
Return the gradient of the function at the given point.
Reimplemented from TensorFunction< rank, dim, double >.
1.8.17