https://mooseframework.inl.gov
Loading...
Searching...
No Matches
CoefVectorTimeDerivative.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
16
19{
23 "The time derivative operator for a vector variable multiplied by a scalar functor "
24 "coefficient: $coef \\frac{\\partial \\vec{A}}{\\partial t}$.");
25 params.addRequiredParam<MooseFunctorName>(
26 "coef",
27 "Scalar coefficient multiplying the vector time derivative (e.g. mu0 * sigma for the "
28 "magnetoquasistatic EM equation). May be a constant, a Function, a functor material "
29 "property, or a variable.");
30 return params;
31}
32
34 : VectorTimeDerivative(parameters), NonADFunctorInterface(this), _coef(getFunctor<Real>("coef"))
35{
36}
37
38Real
44
45Real
registerMooseObject("MooseApp", CoefVectorTimeDerivative)
This makes the kernel available in input files as: type = CoefVectorTimeDerivative.
Implements the time derivative term for a vector variable with a scalar coefficient:
virtual Real computeQpResidual() override
coef * (dA/dt) . test
virtual Real computeQpJacobian() override
coef * (d(dA/dt)/dA) * phi . test
const Moose::Functor< Real > & _coef
Scalar coefficient functor (constant, Function, functor material property, ...)
CoefVectorTimeDerivative(const InputParameters &parameters)
static InputParameters validParams()
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system.
void addRequiredParam(const std::string &name, const std::string &doc_string)
This method adds a parameter and documentation string to the InputParameters object that will be extr...
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
const MooseArray< Point > & _q_point
The physical location of the element's quadrature Points, indexed by _qp.
Definition KernelBase.h:46
const Elem *const & _current_elem
Current element.
Definition KernelBase.h:37
const QBase *const & _qrule
active quadrature rule
Definition KernelBase.h:49
An interface for accessing Moose::Functors for systems that do not care about automatic differentiati...
static InputParameters validParams()
Moose::StateArg determineState() const
Create a functor state argument that corresponds to the implicit state of this object.
virtual Real computeQpResidual() override
Compute this Kernel's contribution to the residual at the current quadrature point.
static InputParameters validParams()
virtual Real computeQpJacobian() override
Compute this Kernel's contribution to the Jacobian at the current quadrature point.
Argument for requesting functor evaluation at a quadrature point location in an element.