Line data Source code
1 : //* This file is part of the MOOSE framework 2 : //* https://mooseframework.inl.gov 3 : //* 4 : //* All rights reserved, see COPYRIGHT for full restrictions 5 : //* https://github.com/idaholab/moose/blob/master/COPYRIGHT 6 : //* 7 : //* Licensed under LGPL 2.1, please see LICENSE for details 8 : //* https://www.gnu.org/licenses/lgpl-2.1.html 9 : 10 : #pragma once 11 : 12 : #include "AuxKernel.h" 13 : #include "CrackFrontDefinition.h" 14 : 15 : /** 16 : * Coupled auxiliary value 17 : */ 18 : class DomainIntegralTopologicalQFunction : public AuxKernel 19 : { 20 : public: 21 : static InputParameters validParams(); 22 : 23 : /** 24 : * Factory constructor, takes parameters so that all derived classes can be built using the same 25 : * constructor. 26 : */ 27 : DomainIntegralTopologicalQFunction(const InputParameters & parameters); 28 : 29 156 : virtual ~DomainIntegralTopologicalQFunction() {} 30 : 31 : protected: 32 : virtual void initialSetup(); 33 : virtual Real computeValue(); 34 : 35 : private: 36 : const unsigned int _ring_number; 37 : const CrackFrontDefinition * const _crack_front_definition; 38 : bool _has_crack_front_point_index; 39 : const unsigned int _crack_front_point_index; 40 : bool _treat_as_2d; 41 : };