https://mooseframework.inl.gov
Loading...
Searching...
No Matches
NodalVolumePD.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 "NodalVolumePD.h"
11#include "PeridynamicsMesh.h"
12
14
17{
19 params.addClassDescription("Class for output nodal area(2D) or nodal volume(3D)");
20
21 params.set<ExecFlagEnum>("execute_on") = EXEC_INITIAL;
22
23 return params;
24}
25
27{
28 if (!_var.isNodal())
29 mooseError("NodalVolumePD operates on nodal variable!");
30}
31
32Real
const ExecFlagType EXEC_INITIAL
registerMooseObject("PeridynamicsApp", NodalVolumePD)
Peridynamic Aux Kernel base class.
PeridynamicsMesh & _pdmesh
Reference to peridynamic mesh object.
static InputParameters validParams()
const Node *const & _current_node
MooseVariableField< ComputeValueType > & _var
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
Aux Kernel class to output the area/volume of material points.
Real computeValue() override
NodalVolumePD(const InputParameters &parameters)
static InputParameters validParams()
Real getNodeVolume(dof_id_type node_id)
Function to return nodal volume for node node_id.