Reference documentation for deal.II version 9.0.0
|
#include <deal.II/base/tensor_function.h>
Public Member Functions | |
ConstantTensorFunction (const ::Tensor< rank, dim, Number > &value, const Number initial_time=0.0) | |
virtual typename ::TensorFunction< rank, dim, Number >::value_type | value (const Point< dim > &p) const |
virtual typename ::TensorFunction< rank, dim, Number >::gradient_type | gradient (const Point< dim > &p) const |
Public Member Functions inherited from TensorFunction< rank, dim, Number > | |
TensorFunction (const Number initial_time=Number(0.0)) | |
virtual | ~TensorFunction ()=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 |
Public Member Functions inherited from FunctionTime< Number > | |
FunctionTime (const Number initial_time=Number(0.0)) | |
virtual | ~FunctionTime ()=default |
Number | get_time () const |
virtual void | set_time (const Number new_time) |
virtual void | advance_time (const Number delta_t) |
Public Member Functions inherited from Subscriptor | |
Subscriptor () | |
Subscriptor (const Subscriptor &) | |
Subscriptor (Subscriptor &&) noexcept | |
virtual | ~Subscriptor () |
Subscriptor & | operator= (const Subscriptor &) |
Subscriptor & | operator= (Subscriptor &&) noexcept |
void | subscribe (const char *identifier=nullptr) const |
void | unsubscribe (const char *identifier=nullptr) const |
unsigned int | n_subscriptions () const |
void | list_subscribers () const |
template<class Archive > | |
void | serialize (Archive &ar, const unsigned int version) |
Additional Inherited Members | |
Public Types inherited from TensorFunction< rank, dim, Number > | |
typedef Tensor< rank, dim, Number > | value_type |
Static Public Member Functions inherited from Subscriptor | |
static ::ExceptionBase & | ExcInUse (int arg1, std::string arg2, std::string arg3) |
static ::ExceptionBase & | ExcNoSubscriber (std::string arg1, std::string arg2) |
Provide a tensor valued function which always returns a constant tensor value. Obviously, all derivates of this function are zero.
Definition at line 117 of file tensor_function.h.
ConstantTensorFunction< rank, dim, Number >::ConstantTensorFunction | ( | const ::Tensor< rank, dim, Number > & | value, |
const Number | 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.
|
virtual |
Return the value of the function at the given point.
Reimplemented from TensorFunction< rank, dim, Number >.
|
virtual |
Return the gradient of the function at the given point.
Reimplemented from TensorFunction< rank, dim, Number >.