www.mooseframework.org
XFEMMovingInterfaceVelocityBase.C
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://www.mooseframework.org
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 
11 
12 template <>
13 InputParameters
15 {
16  InputParameters params = validParams<DiscreteElementUserObject>();
17  params.addRequiredParam<UserObjectName>(
18  "value_at_interface_uo",
19  "The name of the userobject that obtains the value and gradient at the interface.");
20  return params;
21 }
22 
24  : DiscreteElementUserObject(parameters)
25 {
26 }
27 
28 void
30 {
31  const UserObject * uo =
32  &(_fe_problem.getUserObjectBase(getParam<UserObjectName>("value_at_interface_uo")));
33 
34  if (dynamic_cast<const PointValueAtXFEMInterface *>(uo) == nullptr)
35  mooseError("UserObject casting to PointValueAtXFEMInterface in XFEMMovingInterfaceVelocity");
36 
37  _value_at_interface_uo = dynamic_cast<const PointValueAtXFEMInterface *>(uo);
38 }
XFEMMovingInterfaceVelocityBase::initialize
virtual void initialize() override
Definition: XFEMMovingInterfaceVelocityBase.C:29
XFEMMovingInterfaceVelocityBase::_value_at_interface_uo
const PointValueAtXFEMInterface * _value_at_interface_uo
Pointer to PointValueAtXFEMInterface object.
Definition: XFEMMovingInterfaceVelocityBase.h:42
validParams< XFEMMovingInterfaceVelocityBase >
InputParameters validParams< XFEMMovingInterfaceVelocityBase >()
Definition: XFEMMovingInterfaceVelocityBase.C:14
XFEMMovingInterfaceVelocityBase::XFEMMovingInterfaceVelocityBase
XFEMMovingInterfaceVelocityBase(const InputParameters &parameters)
Definition: XFEMMovingInterfaceVelocityBase.C:23
XFEMMovingInterfaceVelocityBase.h