Reference documentation for deal.II version 8.4.1
Public Member Functions | List of all members
ConstantTensorFunction< rank, dim, Number > Class Template Reference

#include <deal.II/base/tensor_function.h>

Inheritance diagram for ConstantTensorFunction< rank, dim, Number >:
[legend]

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 ()
 
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 ()
 
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 &)
 
virtual ~Subscriptor ()
 
Subscriptoroperator= (const Subscriptor &)
 
void subscribe (const char *identifier=0) const
 
void unsubscribe (const char *identifier=0) const
 
unsigned int n_subscriptions () const
 
void list_subscribers () const
 
 DeclException3 (ExcInUse, int, char *, std::string &,<< "Object of class "<< arg2<< " is still used by "<< arg1<< " other objects."<< "\n\n"<< "(Additional information: "<< arg3<< ")\n\n"<< "See the entry in the Frequently Asked Questions of "<< "deal.II (linked to from http://www.dealii.org/) for "<< "a lot more information on what this error means and "<< "how to fix programs in which it happens.")
 
 DeclException2 (ExcNoSubscriber, char *, char *,<< "No subscriber with identifier <"<< arg2<< "> subscribes to this object of class "<< arg1<< ". Consequently, it cannot be unsubscribed.")
 
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
 

Detailed Description

template<int rank, int dim, typename Number = double>
class ConstantTensorFunction< rank, dim, Number >

Provide a tensor valued function which always returns a constant tensor value. Obviously, all derivates of this function are zero.

Author
Matthias Maier, 2013

Definition at line 117 of file tensor_function.h.

Constructor & Destructor Documentation

template<int rank, int dim, typename Number = double>
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.

Member Function Documentation

template<int rank, int dim, typename Number = double>
virtual typename ::TensorFunction<rank, dim, Number>::value_type ConstantTensorFunction< rank, dim, Number >::value ( const Point< dim > &  p) const
virtual

Return the value of the function at the given point.

Reimplemented from TensorFunction< rank, dim, Number >.

template<int rank, int dim, typename Number = double>
virtual typename ::TensorFunction<rank, dim, Number>::gradient_type ConstantTensorFunction< rank, dim, Number >::gradient ( const Point< dim > &  p) const
virtual

Return the gradient of the function at the given point.

Reimplemented from TensorFunction< rank, dim, Number >.


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