https://mooseframework.inl.gov
Loading...
Searching...
No Matches
MechanicsActionPD.h
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#pragma once
11
12#include "Action.h"
13
18{
19public:
21
22 MechanicsActionPD(const InputParameters & params);
23
24 virtual void act() override;
25
26protected:
32 virtual std::string getKernelName();
33
39 virtual InputParameters getKernelParameters(std::string name);
40
42 std::vector<VariableName> _displacements;
43 const unsigned int _ndisp;
45
49
53
56
58 std::vector<SubdomainName> _subdomain_names;
59
61 std::set<SubdomainID> _subdomain_ids;
62
65 std::set<SubdomainID> _subdomain_id_union;
66
68 std::vector<AuxVariableName> _save_in;
69 std::vector<AuxVariableName> _diag_save_in;
71};
Action class to setup peridynamic models for solid mechanics problems.
static InputParameters validParams()
const MooseEnum _stabilization
Option of stabilization scheme for correspondence material model: FORCE, BOND_HORIZON_I or BOND_HORIZ...
virtual InputParameters getKernelParameters(std::string name)
Function to get the input parameters for a given kernel name.
std::set< SubdomainID > _subdomain_id_union
set of SubdomainID generated from the combined block restrictions of all TensorMechanics/Master actio...
std::vector< SubdomainName > _subdomain_names
vector of subdomain names from provided blocks
std::vector< AuxVariableName > _save_in
Residual debugging.
virtual void act() override
std::set< SubdomainID > _subdomain_ids
set of subdomain IDs generated from the passed in vector of subdomain names
std::vector< VariableName > _displacements
Displacement variables.
const MooseEnum _formulation
Option of which peridynamic model needs to be setup: BOND, ORDINARY_STATE or NONORDINARY_STATE.
std::vector< AuxVariableName > _diag_save_in
virtual std::string getKernelName()
Function to get the kernel name based on the value of member variables: _formulation and _stabilizati...
const unsigned int _ndisp
const MooseEnum _strain
Option of strain formulation: SMALL or FINITE.
const std::string & name() const