https://mooseframework.inl.gov
Loading...
Searching...
No Matches
PenaltyDirichletOldValuePD.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
11
13
16{
18 params.addClassDescription("Enforces a Dirichlet boundary condition "
19 "in a weak sense by penalizing differences between the current "
20 "solution and the old solution for transient problems.");
21
22 params.addRequiredParam<Real>("penalty", "Penalty scalar");
23
24 return params;
25}
26
28 : NodalKernel(parameters), _p(getParam<Real>("penalty")), _u_old(_var.dofValuesOld())
29{
30}
31
32Real
37
38Real
registerMooseObject("PeridynamicsApp", PenaltyDirichletOldValuePD)
void addRequiredParam(const std::string &name, const std::string &doc_string)
void addClassDescription(const std::string &doc_string)
unsigned int _qp
static InputParameters validParams()
const VariableValue & _u
static InputParameters validParams()
PenaltyDirichletOldValuePD(const InputParameters &parameters)
virtual Real computeQpResidual() override
virtual Real computeQpJacobian() override