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 "DiscreteElementUserObject.h" 13 : #include "NodeValueAtXFEMInterface.h" 14 : 15 : class XFEMMovingInterfaceVelocityBase : public DiscreteElementUserObject 16 : { 17 : public: 18 : static InputParameters validParams(); 19 : 20 : XFEMMovingInterfaceVelocityBase(const InputParameters & parameters); 21 12 : virtual ~XFEMMovingInterfaceVelocityBase() {} 22 : 23 : virtual void initialize() override; 24 : 25 : /** 26 : * Compute the interface velocity for a node 27 : * @param node_id node ID 28 : * @param normal normal direction at this node 29 : * @return Real Interface velocity 30 : */ 31 : virtual Real computeMovingInterfaceVelocity(dof_id_type node_id, 32 : RealVectorValue normal) const = 0; 33 : 34 : /** 35 : * Compute total number of nodes that are used to define an interface 36 : */ 37 : unsigned int numberNodes() const { return _value_at_interface_uo->numberNodes(); } 38 : 39 : protected: 40 : /// Pointer to NodeValueAtXFEMInterface object 41 : const NodeValueAtXFEMInterface * _value_at_interface_uo; 42 : };