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 16 of file DomainIntegralTopologicalQFunction.h.

Constructor & Destructor Documentation

DomainIntegralTopologicalQFunction::DomainIntegralTopologicalQFunction ( const InputParameters &  parameters)

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

Definition at line 25 of file DomainIntegralTopologicalQFunction.C.

27  : AuxKernel(parameters),
28  _ring_number(getParam<unsigned int>("ring_index")),
29  _crack_front_definition(&getUserObject<CrackFrontDefinition>("crack_front_definition")),
30  _has_crack_front_point_index(isParamValid("crack_front_point_index")),
32  _has_crack_front_point_index ? getParam<unsigned int>("crack_front_point_index") : 0),
33  _treat_as_2d(false)
34 {
35 }
const CrackFrontDefinition *const _crack_front_definition
virtual DomainIntegralTopologicalQFunction::~DomainIntegralTopologicalQFunction ( )
inlinevirtual

Definition at line 25 of file DomainIntegralTopologicalQFunction.h.

25 {}

Member Function Documentation

Real DomainIntegralTopologicalQFunction::computeValue ( )
protectedvirtual

Definition at line 60 of file DomainIntegralTopologicalQFunction.C.

Referenced by ~DomainIntegralTopologicalQFunction().

61 {
62 
63  Real q = 0;
64  bool is_node_in_ring = _crack_front_definition->isNodeInRing(
65  _ring_number, _current_node->id(), _crack_front_point_index);
66  if (is_node_in_ring)
67  q = 1;
68 
69  return q;
70 }
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
void DomainIntegralTopologicalQFunction::initialSetup ( )
protectedvirtual

Definition at line 38 of file DomainIntegralTopologicalQFunction.C.

Referenced by ~DomainIntegralTopologicalQFunction().

39 {
41 
42  if (_treat_as_2d)
43  {
45  {
46  mooseWarning(
47  "crack_front_point_index ignored because CrackFrontDefinition is set to treat as 2D");
48  }
49  }
50  else
51  {
53  {
54  mooseError("crack_front_point_index must be specified in DomainIntegralTopologicalQFunction");
55  }
56  }
57 }
const CrackFrontDefinition *const _crack_front_definition

Member Data Documentation

const CrackFrontDefinition* const DomainIntegralTopologicalQFunction::_crack_front_definition
private

Definition at line 33 of file DomainIntegralTopologicalQFunction.h.

Referenced by computeValue(), and initialSetup().

const unsigned int DomainIntegralTopologicalQFunction::_crack_front_point_index
private

Definition at line 35 of file DomainIntegralTopologicalQFunction.h.

Referenced by computeValue().

bool DomainIntegralTopologicalQFunction::_has_crack_front_point_index
private

Definition at line 34 of file DomainIntegralTopologicalQFunction.h.

Referenced by initialSetup().

const unsigned int DomainIntegralTopologicalQFunction::_ring_number
private

Definition at line 32 of file DomainIntegralTopologicalQFunction.h.

Referenced by computeValue().

bool DomainIntegralTopologicalQFunction::_treat_as_2d
private

Definition at line 36 of file DomainIntegralTopologicalQFunction.h.

Referenced by initialSetup().


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