www.mooseframework.org
Public Member Functions | Protected Member Functions | Private Attributes | List of all members
DomainIntegralTopologicalQFunction Class Reference

Coupled auxiliary value. More...

#include <DomainIntegralTopologicalQFunction.h>

Inheritance diagram for DomainIntegralTopologicalQFunction:
[legend]

Public Member Functions

 DomainIntegralTopologicalQFunction (const InputParameters &parameters)
 Factory constructor, takes parameters so that all derived classes can be built using the same constructor. More...
 
virtual ~DomainIntegralTopologicalQFunction ()
 

Protected Member Functions

virtual void initialSetup ()
 
virtual Real computeValue ()
 

Private Attributes

const unsigned int _ring_number
 
const CrackFrontDefinition *const _crack_front_definition
 
bool _has_crack_front_point_index
 
const unsigned int _crack_front_point_index
 
bool _treat_as_2d
 

Detailed Description

Coupled auxiliary value.

Definition at line 19 of file DomainIntegralTopologicalQFunction.h.

Constructor & Destructor Documentation

◆ DomainIntegralTopologicalQFunction()

DomainIntegralTopologicalQFunction::DomainIntegralTopologicalQFunction ( const InputParameters &  parameters)

Factory constructor, takes parameters so that all derived classes can be built using the same constructor.

Definition at line 30 of file DomainIntegralTopologicalQFunction.C.

32  : AuxKernel(parameters),
33  _ring_number(getParam<unsigned int>("ring_index")),
34  _crack_front_definition(&getUserObject<CrackFrontDefinition>("crack_front_definition")),
35  _has_crack_front_point_index(isParamValid("crack_front_point_index")),
37  _has_crack_front_point_index ? getParam<unsigned int>("crack_front_point_index") : 0),
38  _treat_as_2d(false)
39 {
40 }
const CrackFrontDefinition *const _crack_front_definition

◆ ~DomainIntegralTopologicalQFunction()

virtual DomainIntegralTopologicalQFunction::~DomainIntegralTopologicalQFunction ( )
inlinevirtual

Definition at line 28 of file DomainIntegralTopologicalQFunction.h.

28 {}

Member Function Documentation

◆ computeValue()

Real DomainIntegralTopologicalQFunction::computeValue ( )
protectedvirtual

Definition at line 65 of file DomainIntegralTopologicalQFunction.C.

66 {
67 
68  Real q = 0;
69  bool is_node_in_ring = _crack_front_definition->isNodeInRing(
70  _ring_number, _current_node->id(), _crack_front_point_index);
71  if (is_node_in_ring)
72  q = 1;
73 
74  return q;
75 }
const CrackFrontDefinition *const _crack_front_definition
bool isNodeInRing(const unsigned int ring_index, const dof_id_type connected_node_id, const unsigned int node_index) const

◆ initialSetup()

void DomainIntegralTopologicalQFunction::initialSetup ( )
protectedvirtual

Definition at line 43 of file DomainIntegralTopologicalQFunction.C.

44 {
46 
47  if (_treat_as_2d)
48  {
50  {
51  mooseWarning(
52  "crack_front_point_index ignored because CrackFrontDefinition is set to treat as 2D");
53  }
54  }
55  else
56  {
58  {
59  mooseError("crack_front_point_index must be specified in DomainIntegralTopologicalQFunction");
60  }
61  }
62 }
const CrackFrontDefinition *const _crack_front_definition

Member Data Documentation

◆ _crack_front_definition

const CrackFrontDefinition* const DomainIntegralTopologicalQFunction::_crack_front_definition
private

Definition at line 36 of file DomainIntegralTopologicalQFunction.h.

Referenced by computeValue(), and initialSetup().

◆ _crack_front_point_index

const unsigned int DomainIntegralTopologicalQFunction::_crack_front_point_index
private

Definition at line 38 of file DomainIntegralTopologicalQFunction.h.

Referenced by computeValue().

◆ _has_crack_front_point_index

bool DomainIntegralTopologicalQFunction::_has_crack_front_point_index
private

Definition at line 37 of file DomainIntegralTopologicalQFunction.h.

Referenced by initialSetup().

◆ _ring_number

const unsigned int DomainIntegralTopologicalQFunction::_ring_number
private

Definition at line 35 of file DomainIntegralTopologicalQFunction.h.

Referenced by computeValue().

◆ _treat_as_2d

bool DomainIntegralTopologicalQFunction::_treat_as_2d
private

Definition at line 39 of file DomainIntegralTopologicalQFunction.h.

Referenced by initialSetup().


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