Reference documentation for deal.II version 9.0.0
Public Member Functions | List of all members
Functions::ZeroFunction< dim, RangeNumberType > Class Template Reference

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

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

Public Member Functions

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

- Static Public Member Functions inherited from Subscriptor
static ::ExceptionBaseExcInUse (int arg1, std::string arg2, std::string arg3)
 
static ::ExceptionBaseExcNoSubscriber (std::string arg1, std::string arg2)
 
- Public Attributes inherited from Function< dim, RangeNumberType >
const unsigned int n_components
 
- Static Public Attributes inherited from Function< dim, RangeNumberType >
static const unsigned int dimension = dim
 
- Protected Attributes inherited from Functions::ConstantFunction< dim, RangeNumberType >
std::vector< RangeNumberType > function_value_vector
 

Detailed Description

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

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 449 of file function.h.

Constructor & Destructor Documentation

◆ ZeroFunction()

template<int dim, typename RangeNumberType = double>
Functions::ZeroFunction< dim, RangeNumberType >::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: