https://mooseframework.inl.gov
Loading...
Searching...
No Matches
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
14
17{
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
33Real
registerMooseObject("PeridynamicsApp", BoundaryOffsetPD)
const ExecFlagType EXEC_INITIAL
Peridynamic Aux Kernel base class.
PeridynamicsMesh & _pdmesh
Reference to peridynamic mesh object.
static InputParameters validParams()
const Node *const & _current_node
MooseVariableField< ComputeValueType > & _var
Aux Kernel class to output the offset of boundary nodes from initial FE mesh.
Real computeValue() override
static InputParameters validParams()
BoundaryOffsetPD(const InputParameters &parameters)
void addClassDescription(const std::string &doc_string)
T & set(const std::string &name, bool quiet_mode=false)
void mooseError(Args &&... args) const
virtual bool isNodal() const
Real getBoundaryOffset(dof_id_type node_id)
Function to return offset for boundary nodes.