b2api
B2000++ API Reference Manual, VERSION 4.6
 
Loading...
Searching...
No Matches
b2000::b2dbv3::FailureCriterion Class Referenceabstract

#include "b2failure_criterion.H"

Inheritance diagram for b2000::b2dbv3::FailureCriterion:
Collaboration diagram for b2000::b2dbv3::FailureCriterion:

Public Types

enum  
 Whether the criterion is based on stress or strain.
 

Public Member Functions

virtual int get_type () const =0
 Returns STRAIN or STRESS.
 
virtual double process_stress (const double stress_mat[6], b2000::GradientContainer *gradient_container) const
 
virtual double process_strain (const double strain_mat[6], const bool engineering, b2000::GradientContainer *gradient_container) const
 
- Public Member Functions inherited from b2000::Object
virtual const std::string & get_object_name () const
 
virtual ~Object ()
 

Static Protected Attributes

static const b2000::GradientContainer::FieldDescription fi_descr
 

Additional Inherited Members

- Static Public Attributes inherited from b2000::Object
static ObjectType type
 

Detailed Description

Base class for evaluating failure criteria for elastic materials. Classes implementing a failure criterion need to overload the init() and get_type() functions, and either the process_stress() or the process_strain() function.

Member Function Documentation

◆ process_strain()

virtual double b2000::b2dbv3::FailureCriterion::process_strain ( const double  strain_mat[6],
const bool  engineering,
b2000::GradientContainer gradient_container 
) const
inlinevirtual

Evaluate the (strain) criterion and store the results in the GradientContainer.

Parameters
strain_matStrain tensor in the material reference frame, with the components in the order [11, 22, 33, 12, 23, 13].
engineeringIndicates whether the shear components are engineering strains (as on the database) or energy-equivalent strains (as used within the element formulations). In the latter case, the shear components will be divided by two when calculating the criterion.
Returns
The failure index. A value >= 1 means failure.

◆ process_stress()

virtual double b2000::b2dbv3::FailureCriterion::process_stress ( const double  stress_mat[6],
b2000::GradientContainer gradient_container 
) const
inlinevirtual

Evaluate the (stress) criterion and store the results in the GradientContainer.

Parameters
stress_matStress tensor in the material reference frame, with the components in the order [11, 22, 33, 12, 23, 13].
Returns
The failure index. A value >= 1 means failure.

Member Data Documentation

◆ fi_descr

const b2000::GradientContainer::FieldDescription b2000::b2dbv3::FailureCriterion::fi_descr
staticprotected
Initial value:
= {
"FAILURE_INDEX",
"fi",
"The failure index as calculated by the failure criteria",
3,
1,
-1,
-1,
false,
typeid(double)}

For storage in the FAILURE_INDEX field (should be used by implementations of FailureCriterion in addition to any specific gradient fields).


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