https://mooseframework.inl.gov
BoundaryOffsetPD.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 "BoundaryOffsetPD.h"
11 #include "PeridynamicsMesh.h"
12 
13 registerMooseObject("PeridynamicsApp", BoundaryOffsetPD);
14 
17 {
19  params.addClassDescription(
20  "Class for output offset of PD boundary nodes compared to initial FE mesh");
21 
22  params.set<ExecFlagEnum>("execute_on") = EXEC_INITIAL;
23 
24  return params;
25 }
26 
28 {
29  if (!_var.isNodal())
30  mooseError("BoundaryOffsetPD operates on nodal variable!");
31 }
32 
33 Real
35 {
37 }
virtual bool isNodal() const
Real getBoundaryOffset(dof_id_type node_id)
Function to return offset for boundary nodes.
const Node *const & _current_node
Real computeValue() override
T & set(const std::string &name, bool quiet_mode=false)
Peridynamic Aux Kernel base class.
BoundaryOffsetPD(const InputParameters &parameters)
PeridynamicsMesh & _pdmesh
Reference to peridynamic mesh object.
registerMooseObject("PeridynamicsApp", BoundaryOffsetPD)
MooseVariableField< Real > & _var
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
static InputParameters validParams()
void mooseError(Args &&... args) const
void addClassDescription(const std::string &doc_string)
static InputParameters validParams()
Aux Kernel class to output the offset of boundary nodes from initial FE mesh.
const ExecFlagType EXEC_INITIAL