PRISMS-PF Manual
Loading...
Searching...
No Matches
mechanics.h File Reference
#include <deal.II/base/tensor.h>
#include <prismspf/config.h>
Include dependency graph for mechanics.h:

Go to the source code of this file.

Namespaces

namespace  Mechanics
 

Functions

template<unsigned int dim, typename T>
DEAL_II_ALWAYS_INLINE void Mechanics::compute_stress (const dealii::Tensor< 2, voigt_tensor_size< dim >, T > &elasticity_tensor, const dealii::Tensor< 1, voigt_tensor_size< dim >, T > &strain, dealii::Tensor< 1, voigt_tensor_size< dim >, T > &stress)
 Compute the stress with a given displacement and elasticity tensor. This assumes that the provided parameters are in Voigt notation.
 
template<unsigned int dim, typename T>
DEAL_II_ALWAYS_INLINE void Mechanics::compute_stress (const dealii::Tensor< 2, voigt_tensor_size< dim >, T > &elasticity_tensor, const dealii::Tensor< 2, dim, T > &strain, dealii::Tensor< 2, dim, T > &stress)
 Compute the stress with a given displacement and elasticity tensor.
 

Variables

template<unsigned int dim>
constexpr unsigned int Mechanics::voigt_tensor_size = (2 * dim) - 1 + (dim / 3)
 Voigt notation index range.