svMultiPhysics
Loading...
Searching...
No Matches
ActiveStress::Evaluator Class Reference

Helper to evaluate active tension at quadrature points. More...

#include <ActiveStress.h>

Public Member Functions

void update (const ActiveStress &active_stress, const Vector< int > &nodes)
 Update the evaluator for a given element.
void clear ()
 Reset this evaluator so that evaluate returns zero tension, until the next call to update.
template<int nsd>
ActiveTension evaluate (const Eigen::Ref< const Eigen::VectorXd > &N, const mat_fun::Matrix< nsd > &F, const Eigen::Ref< const Eigen::Matrix< double, nsd, Eigen::Dynamic > > &fibers) const
 Compute the active tension at a quadrature point.
template<int nsd>
ActiveStress::ActiveTension evaluate (const Eigen::Ref< const Eigen::VectorXd > &N, const mat_fun::Matrix< nsd > &F, const Eigen::Ref< const Eigen::Matrix< double, nsd, Eigen::Dynamic > > &fibers) const

Detailed Description

Helper to evaluate active tension at quadrature points.

The active stress model stores the state at the degrees of freedom, but the active tension needs to be evaluated at quadrature points. This class allows to do that by interpolating the state to quadrature points and then evaluating the active tension there.

Member Function Documentation

◆ clear()

void ActiveStress::Evaluator::clear ( )
inline

Reset this evaluator so that evaluate returns zero tension, until the next call to update.

Used for elements whose domain has no active stress model.

◆ evaluate()

template<int nsd>
ActiveTension ActiveStress::Evaluator::evaluate ( const Eigen::Ref< const Eigen::VectorXd > & N,
const mat_fun::Matrix< nsd > & F,
const Eigen::Ref< const Eigen::Matrix< double, nsd, Eigen::Dynamic > > & fibers ) const

Compute the active tension at a quadrature point.

Parameters
[in]NShape functions at the quadrature point, of the same nodes the state was gathered at by update.
[in]FDeformation gradient at the quadrature point.
[in]fibersFiber directions of the element, one per column, the first column being the fiber direction itself.
Returns
Active tension along fibers, sheets and sheet normals, and their derivatives with respect to the fiber stretch, bundled in an object of type ActiveTension.
Template Parameters
nsdNumber of spatial dimensions.

◆ update()

void ActiveStress::Evaluator::update ( const ActiveStress & active_stress,
const Vector< int > & nodes )

Update the evaluator for a given element.

Parameters
[in]active_stressActive stress model of the domain the element belongs to.
[in]nodesIndices of the mesh nodes of the element.

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