https://mooseframework.inl.gov
Loading...
Searching...
No Matches
GeneralizedPlaneStrainReferenceResidual.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
12// MOOSE includes
13#include "Assembly.h"
15#include "MooseVariableScalar.h"
16#include "SystemBase.h"
17
19
22{
24 params.addClassDescription("Generalized Plane Strain Reference Residual Scalar Kernel");
25 params.addRequiredParam<UserObjectName>("generalized_plane_strain",
26 "The name of the GeneralizedPlaneStrainUserObject");
27 params.addParam<unsigned int>(
28 "scalar_out_of_plane_strain_index",
29 "The index number of scalar_out_of_plane_strain this kernel acts on");
30
31 return params;
32}
33
35 const InputParameters & parameters)
36 : AuxScalarKernel(parameters),
37 _gps(getUserObject<GeneralizedPlaneStrainUserObject>("generalized_plane_strain")),
38 _scalar_var_id(isParamValid("scalar_out_of_plane_strain_index")
39 ? getParam<unsigned int>("scalar_out_of_plane_strain_index")
40 : 0)
41{
42}
43
44Real
registerMooseObject("SolidMechanicsApp", GeneralizedPlaneStrainReferenceResidual)
void ErrorVector unsigned int
static InputParameters validParams()
GeneralizedPlaneStrainReferenceResidual(const InputParameters &parameters)
virtual Real returnReferenceResidual(unsigned int scalar_var_id=0) const override
void addRequiredParam(const std::string &name, const std::string &doc_string)
void addParam(const std::string &name, const std::initializer_list< typename T::value_type > &value, const std::string &doc_string)
void addClassDescription(const std::string &doc_string)