![]() |
Reference documentation for deal.II version 9.4.1
|
#include <deal.II/base/tensor_function.h>
Public Types | |
| using | time_type = typename TensorFunction< rank, dim, Number >::time_type |
| using | value_type = Tensor< rank, dim, double > |
| using | gradient_type = Tensor< rank+1, dim, double > |
Public Member Functions | |
| ConstantTensorFunction (const ::Tensor< rank, dim, Number > &value, const time_type initial_time=0.0) | |
| virtual | ~ConstantTensorFunction () override=default |
| virtual typename::TensorFunction< rank, dim, Number >::value_type | value (const Point< dim > &p) const override |
| virtual void | value_list (const std::vector< Point< dim > > &points, std::vector< typename ::TensorFunction< rank, dim, Number >::value_type > &values) const override |
| virtual typename::TensorFunction< rank, dim, Number >::gradient_type | gradient (const Point< dim > &p) const override |
| virtual void | gradient_list (const std::vector< Point< dim > > &points, std::vector< typename ::TensorFunction< rank, dim, Number >::gradient_type > &gradients) const override |
| 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 |
| numbers::NumberTraits< double >::real_type | get_time () const |
| virtual void | set_time (const numbers::NumberTraits< double >::real_type new_time) |
| virtual void | advance_time (const numbers::NumberTraits< double >::real_type delta_t) |
Private Attributes | |
| const ::Tensor< rank, dim, Number > | _value |
| numbers::NumberTraits< double >::real_type | time |
Subscriptor functionality | |
Classes derived from Subscriptor provide a facility to subscribe to this object. This is mostly used by the SmartPointer class. | |
| std::atomic< unsigned int > | counter |
| std::map< std::string, unsigned int > | counter_map |
| std::vector< std::atomic< bool > * > | validity_pointers |
| const std::type_info * | object_info |
| void | subscribe (std::atomic< bool > *const validity, const std::string &identifier="") const |
| void | unsubscribe (std::atomic< bool > *const validity, const std::string &identifier="") const |
| unsigned int | n_subscriptions () const |
| template<typename StreamType > | |
| void | list_subscribers (StreamType &stream) const |
| void | list_subscribers () const |
| template<class Archive > | |
| void | serialize (Archive &ar, const unsigned int version) |
| using | map_value_type = decltype(counter_map)::value_type |
| using | map_iterator = decltype(counter_map)::iterator |
| static std::mutex | mutex |
| static ::ExceptionBase & | ExcInUse (int arg1, std::string arg2, std::string arg3) |
| static ::ExceptionBase & | ExcNoSubscriber (std::string arg1, std::string arg2) |
| void | check_no_subscribers () const noexcept |
Provide a tensor valued function which always returns a constant tensor value. Obviously, all derivates of this function are zero.
Definition at line 130 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 136 of file tensor_function.h.
|
inherited |
Alias for the return types of the value function.
Definition at line 64 of file tensor_function.h.
|
inherited |
Alias for the return types of the gradient functions.
Definition at line 69 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.
|
overridevirtualdefault |
|
overridevirtual |
Return the value of the function at the given point.
Reimplemented from TensorFunction< rank, dim, double >.
|
overridevirtual |
|
overridevirtual |
Return the gradient of the function at the given point.
Reimplemented from TensorFunction< rank, dim, double >.
|
overridevirtual |
|
virtualinherited |
Set values to the point values of the function at the points. It is assumed that values already has the right size, i.e. the same size as the points array.
|
virtualinherited |
Set gradients to the gradients of the function at the points. It is assumed that values already has the right size, i.e. the same size as the points array.
|
inherited |
Return the value of the time variable.
|
virtualinherited |
Set the time to new_time, overwriting the old value.
|
virtualinherited |
Advance the time by the given time step delta_t.
|
private |
Definition at line 170 of file tensor_function.h.
|
privateinherited |
Store the present time.
Definition at line 113 of file function_time.h.