Reference documentation for deal.II version Git 3e8fd02 2017-09-22 11:37:14 +0200
Public Member Functions | List of all members
Functions::ZeroFunction< dim, Number > Class Template Reference

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

Inheritance diagram for Functions::ZeroFunction< dim, Number >:
[legend]

Public Member Functions

 ZeroFunction (const unsigned int n_components=1)
 
- Public Member Functions inherited from Functions::ConstantFunction< dim, Number >
 ConstantFunction (const Number value, const unsigned int n_components=1)
 
 ConstantFunction (const std::vector< Number > &values)
 
 ConstantFunction (const Vector< Number > &values)
 
 ConstantFunction (const Number *begin_ptr, const unsigned int n_components)
 
virtual Number value (const Point< dim > &p, const unsigned int component=0) const
 
virtual void vector_value (const Point< dim > &p, Vector< Number > &return_value) const
 
virtual void value_list (const std::vector< Point< dim > > &points, std::vector< Number > &return_values, const unsigned int component=0) const
 
virtual void vector_value_list (const std::vector< Point< dim > > &points, std::vector< Vector< Number > > &return_values) const
 
virtual Tensor< 1, dim, Number > gradient (const Point< dim > &p, const unsigned int component=0) const
 
virtual void vector_gradient (const Point< dim > &p, std::vector< Tensor< 1, dim, Number > > &gradients) const
 
virtual void gradient_list (const std::vector< Point< dim > > &points, std::vector< Tensor< 1, dim, Number > > &gradients, const unsigned int component=0) const
 
virtual void vector_gradient_list (const std::vector< Point< dim > > &points, std::vector< std::vector< Tensor< 1, dim, Number > > > &gradients) const
 
- Public Member Functions inherited from Function< dim, Number >
 Function (const unsigned int n_components=1, const Number initial_time=0.0)
 
virtual ~Function ()=0
 
Functionoperator= (const Function &f)
 
virtual void vector_values (const std::vector< Point< dim > > &points, std::vector< std::vector< Number > > &values) const
 
virtual void vector_gradients (const std::vector< Point< dim > > &points, std::vector< std::vector< Tensor< 1, dim, Number > > > &gradients) const
 
virtual Number laplacian (const Point< dim > &p, const unsigned int component=0) const
 
virtual void vector_laplacian (const Point< dim > &p, Vector< Number > &values) const
 
virtual void laplacian_list (const std::vector< Point< dim > > &points, std::vector< Number > &values, const unsigned int component=0) const
 
virtual void vector_laplacian_list (const std::vector< Point< dim > > &points, std::vector< Vector< Number > > &values) const
 
virtual SymmetricTensor< 2, dim, Number > hessian (const Point< dim > &p, const unsigned int component=0) const
 
virtual void vector_hessian (const Point< dim > &p, std::vector< SymmetricTensor< 2, dim, Number > > &values) const
 
virtual void hessian_list (const std::vector< Point< dim > > &points, std::vector< SymmetricTensor< 2, dim, Number > > &values, const unsigned int component=0) const
 
virtual void vector_hessian_list (const std::vector< Point< dim > > &points, std::vector< std::vector< SymmetricTensor< 2, dim, Number > > > &values) const
 
std::size_t memory_consumption () 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 &&)
 
virtual ~Subscriptor ()
 
Subscriptoroperator= (const Subscriptor &)
 
Subscriptoroperator= (Subscriptor &&)
 
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

- Static Public Member Functions inherited from Subscriptor
static::ExceptionBase & ExcInUse (int arg1, char *arg2, std::string &arg3)
 
static::ExceptionBase & ExcNoSubscriber (char *arg1, char *arg2)
 
- Public Attributes inherited from Function< dim, Number >
const unsigned int n_components
 
- Static Public Attributes inherited from Function< dim, Number >
static const unsigned int dimension = dim
 
- Protected Attributes inherited from Functions::ConstantFunction< dim, Number >
std::vector< Number > function_value_vector
 

Detailed Description

template<int dim, typename Number = double>
class Functions::ZeroFunction< dim, Number >

Provide a function which always returns zero. Obviously, also the derivatives of this function are zero. Also, it returns zero on all components in case the function is not a scalar one, which can be obtained by passing the constructor the appropriate number of components.

This function is of use when you want to implement homogeneous boundary conditions, or zero initial conditions.

Author
Wolfgang Bangerth, 1998, 1999

Definition at line 439 of file function.h.

Constructor & Destructor Documentation

template<int dim, typename Number = double>
Functions::ZeroFunction< dim, Number >::ZeroFunction ( const unsigned int  n_components = 1)

Constructor. The number of components is preset to one.


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