https://mooseframework.inl.gov
CutSubdomainIDAux.C
Go to the documentation of this file.
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 #include "CutSubdomainIDAux.h"
11 
12 #include "XFEM.h"
13 
15 
18 {
20  params.addClassDescription("Fill the elemental variable with CutSubdomainID");
21  params.addRequiredParam<UserObjectName>(
22  "cut", "The geometric cut userobject that assigns the CutSubdomainID");
23  return params;
24 }
25 
27  : AuxKernel(parameters), _cut(&getUserObject<GeometricCutUserObject>("cut"))
28 {
29  if (isNodal())
30  mooseError("CutSubdomainIDAux can only be run on an element variable");
31 }
32 
33 Real
35 {
37 }
virtual Real computeValue()
static InputParameters validParams()
void addRequiredParam(const std::string &name, const std::string &doc_string)
CutSubdomainIDAux(const InputParameters &parameters)
virtual CutSubdomainID getCutSubdomainID(const Node *) const
Get CutSubdomainID telling which side the node belongs to relative to the cut.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
void mooseError(Args &&... args) const
const Elem *const & _current_elem
void addClassDescription(const std::string &doc_string)
static InputParameters validParams()
const GeometricCutUserObject * _cut
Pointer to the GeometricCutUserObject.
registerMooseObject("XFEMApp", CutSubdomainIDAux)