|
Reference documentation for deal.II version 9.2.0
|
\(\newcommand{\dealvcentcolon}{\mathrel{\mathop{:}}}\)
\(\newcommand{\dealcoloneq}{\dealvcentcolon\mathrel{\mkern-1.2mu}=}\)
\(\newcommand{\jump}[1]{\left[\!\left[ #1 \right]\!\right]}\)
\(\newcommand{\average}[1]{\left\{\!\left\{ #1 \right\}\!\right\}}\)
Go to the documentation of this file.
16 #ifndef dealii_tensor_function_h
17 #define dealii_tensor_function_h
56 template <
int rank,
int dim,
typename Number =
double>
58 :
public FunctionTime<typename numbers::NumberTraits<Number>::real_type>,
104 std::vector<value_type> & values)
const;
119 std::vector<gradient_type> & gradients)
const;
131 template <
int rank,
int dim,
typename Number =
double>
152 virtual typename ::TensorFunction<rank, dim, Number>::value_type
158 std::vector<typename ::TensorFunction<rank, dim, Number>::value_type>
159 &values)
const override;
161 virtual typename ::TensorFunction<rank, dim, Number>::gradient_type
168 typename ::TensorFunction<rank, dim, Number>::gradient_type>
169 &gradients)
const override;
172 const ::Tensor<rank, dim, Number>
_value;
184 template <
int rank,
int dim,
typename Number =
double>
const ::Tensor< rank, dim, Number > _value
virtual void gradient_list(const std::vector< Point< dim >> &points, std::vector< gradient_type > &gradients) const
typename TensorFunction< rank, dim, Number >::time_type time_type
typename ConstantTensorFunction< rank, dim, Number >::time_type time_type
virtual void value_list(const std::vector< Point< dim >> &points, std::vector< value_type > &values) const
virtual ~TensorFunction() override=default
ZeroTensorFunction(const time_type initial_time=0.0)
#define DEAL_II_NAMESPACE_OPEN
ConstantTensorFunction(const ::Tensor< rank, dim, Number > &value, const time_type initial_time=0.0)
typename FunctionTime< typename numbers::NumberTraits< Number >::real_type >::time_type time_type
virtual typename ::TensorFunction< rank, dim, Number >::gradient_type gradient(const Point< dim > &p) const override
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 value_type value(const Point< dim > &p) const
virtual ~ConstantTensorFunction() override=default
virtual gradient_type gradient(const Point< dim > &p) const
virtual void gradient_list(const std::vector< Point< dim >> &points, std::vector< typename ::TensorFunction< rank, dim, Number >::gradient_type > &gradients) const override
TensorFunction(const time_type initial_time=time_type(0.0))
#define DEAL_II_NAMESPACE_CLOSE
numbers::NumberTraits< double >::real_type time_type