https://mooseframework.inl.gov
Loading...
Searching...
No Matches
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
33Real
registerMooseObject("XFEMApp", CutSubdomainIDAux)
const Elem *const & _current_elem
static InputParameters validParams()
virtual Real computeValue()
CutSubdomainIDAux(const InputParameters &parameters)
const GeometricCutUserObject * _cut
Pointer to the GeometricCutUserObject.
static InputParameters validParams()
virtual CutSubdomainID getCutSubdomainID(const Node *) const
Get CutSubdomainID telling which side the node belongs to relative to the cut.
void addRequiredParam(const std::string &name, const std::string &doc_string)
void addClassDescription(const std::string &doc_string)
void mooseError(Args &&... args) const