https://mooseframework.inl.gov
Loading...
Searching...
No Matches
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{
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
registerMooseObject("MooseApp", ADMatCoupledForce)
DualNumber< Real, DNDerivativeType, true > ADReal
Kernel representing the contribution of the PDE term $mv$, where $m$ is a material property coefficie...
ADMatCoupledForce(const InputParameters &parameters)
virtual ADReal computeQpResidual() override
Compute this Kernel's contribution to the residual at the current quadrature point.
static InputParameters validParams()
const ADMaterialProperty< Real > & _mat_prop
Material property coefficient for coupled source term.
Implements a source term proportional to the value of a coupled variable.
virtual GenericReal< is_ad > computeQpResidual() override
Compute this Kernel's contribution to the residual at the current quadrature point.
static InputParameters validParams()
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system.
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.
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.
unsigned int _qp
The current quadrature point index.
Definition KernelBase.h:43