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 "ActivateElementsUserObjectBase.h" 13 : #include "MooseEnum.h" 14 : 15 : class ActivateElementsCoupled : public ActivateElementsUserObjectBase 16 : { 17 : public: 18 : static InputParameters validParams(); 19 : 20 : ActivateElementsCoupled(const InputParameters & parameters); 21 : 22 : virtual bool isElementActivated() override; 23 : 24 : protected: 25 : /// variable value to decide wether an element whould be activated 26 : const VariableValue & _coupled_var; 27 : /// variable value to decide wether an element whould be activated 28 : const Real _activate_value; 29 : /// type of activation - blow or above 30 33671 : CreateMooseEnumClass(ActivateType, BELOW, EQUAL, ABOVE) _activate_type; 31 : };