IFEM  90A354
Public Member Functions | Protected Member Functions | Private Attributes | List of all members
TractionField Class Reference

Traction field based on a given stress tensor function. More...

#include <TractionField.h>

Inheritance diagram for TractionField:
Inheritance graph
[legend]
Collaboration diagram for TractionField:
Collaboration graph
[legend]

Public Member Functions

 TractionField (const STensorFunc &field)
 Constructor initializing the symmetric tensor function pointer.
 
 TractionField (const TensorFunc &field)
 Constructor initializing the tensor function pointer.
 
virtual ~TractionField ()
 Empty destructor.
 
virtual bool isZero () const
 Returns whether the function is identically zero or not.
 
virtual Vec3 deriv (const Vec3 &x, const Vec3 &n) const
 Returns the time-derivative of the function. More...
 
- Public Member Functions inherited from TractionFunc
virtual bool isNormalPressure () const
 Returns whether the traction is always normal to the face or not.
 
virtual Vec3 timeDerivative (const Vec3 &, const Vec3 &) const
 Returns the time-derivative of the function.
 
- Public Member Functions inherited from utl::Function2< Vec3, Vec3 >
virtual ~Function2 ()
 Empty destructor.
 
Vec3 operator() (const Vec3 &x, const Vec3 &y) const
 Operator returning the function value for the given arguments.
 

Protected Member Functions

virtual Vec3 evaluate (const Vec3 &x, const Vec3 &n) const
 Evaluates the traction field function at the specified point. More...
 
- Protected Member Functions inherited from utl::Function2< Vec3, Vec3 >
 Function2 ()
 The constructor is protected to allow sub-class instances only.
 

Private Attributes

const STensorFuncsigma
 Symmetric tensor field to derive tractions from.
 
const TensorFuncsigmaN
 Tensor field to derive tractions from.
 

Additional Inherited Members

- Public Types inherited from utl::Function2< Vec3, Vec3 >
typedef Vec3 Input
 Input type.
 
typedef Vec3 Output
 Output type.
 

Detailed Description

Traction field based on a given stress tensor function.

This class defines an explicit traction field function based on a specified stress tensor field. The traction field is then evaluated simply as the inner-product σn of the stress tensor value σ and the outward-directed surface/edge normal vector n, which is provided as the second argument to the TractionField::evaluate() method.

Member Function Documentation

◆ deriv()

Vec3 TractionField::deriv ( const Vec3 x,
const Vec3 n 
) const
virtual

Returns the time-derivative of the function.

Parameters
[in]xGlobal coordinates of evaluation point
[in]nOutward-directed unit normal vector at evaluation point

References utl::SpatialFunction< Result >::deriv(), sigma, and sigmaN.

◆ evaluate()

Vec3 TractionField::evaluate ( const Vec3 x,
const Vec3 n 
) const
protectedvirtual

Evaluates the traction field function at the specified point.

Parameters
[in]xGlobal coordinates of evaluation point
[in]nOutward-directed unit normal vector at evaluation point

Implements utl::Function2< Vec3, Vec3 >.

References sigma, and sigmaN.


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