https://mooseframework.inl.gov
ADMatCoupledForce.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 "ADMatCoupledForce.h"
11 
13 
16 {
18  params.addClassDescription(
19  "Kernel representing the contribution of the PDE term $mv$, where $m$ is a material property "
20  "coefficient, $v$ is a coupled scalar field variable, and Jacobian derivatives are "
21  "calculated "
22  "using automatic differentiation.");
23  params.addParam<MaterialPropertyName>(
24  "mat_prop_coef",
25  1.0,
26  "User-supplied material property multiplier for the coupled force term.");
27  return params;
28 }
29 
31  : ADCoupledForce(parameters), _mat_prop(getADMaterialProperty<Real>("mat_prop_coef"))
32 {
33 }
34 
35 ADReal
37 {
39 }
static InputParameters validParams()
ADMatCoupledForce(const InputParameters &parameters)
static InputParameters validParams()
Definition: CoupledForce.C:19
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
DualNumber< Real, DNDerivativeType, true > ADReal
Definition: ADRealForward.h:47
Kernel representing the contribution of the PDE term $mv$, where $m$ is a material property coefficie...
virtual ADReal computeQpResidual() override
Compute this Kernel&#39;s contribution to the residual at the current quadrature point.
const ADMaterialProperty< Real > & _mat_prop
Material property coefficient for coupled source term.
registerMooseObject("MooseApp", ADMatCoupledForce)
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
virtual GenericReal< is_ad > computeQpResidual() override
Compute this Kernel&#39;s contribution to the residual at the current quadrature point.
Definition: CoupledForce.C:47
void addClassDescription(const std::string &doc_string)
This method adds a description of the class that will be displayed in the input file syntax dump...
void addParam(const std::string &name, const S &value, const std::string &doc_string)
These methods add an optional parameter and a documentation string to the InputParameters object...
Implements a source term proportional to the value of a coupled variable.
Definition: CoupledForce.h:19
unsigned int _qp
The current quadrature point index.
Definition: KernelBase.h:43