https://mooseframework.inl.gov
Loading...
Searching...
No Matches
ADPhaseFieldAdvection.C
Go to the documentation of this file.
1//* This file is part of the MOOSE framework
2//* https://www.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("Implements the phasefield advection equation: $\\vec{v}\\cdot\\nabla "
19 "u = 0$, where the weak form is $(\\psi_i, \\vec{v}\\cdot\\nabla u) = "
20 "0$.");
21 params.addRequiredCoupledVar("velocity", "Velocity vector variable.");
22 return params;
23}
24
26 : ADKernelValue(parameters), _velocity(adCoupledVectorValue("velocity"))
27{
28}
29
registerMooseObject("PhaseFieldApp", ADPhaseFieldAdvection)
DualNumber< Real, DNDerivativeType, true > ADReal
const ADTemplateVariableGradient< T > & _grad_u
static InputParameters validParams()
Advection Kernel for the phasefield equation.
const ADVectorVariableValue & _velocity
Velocity vector variable.
ADPhaseFieldAdvection(const InputParameters &parameters)
virtual ADReal precomputeQpResidual() override
static InputParameters validParams()
void addRequiredCoupledVar(const std::string &name, const std::string &doc_string)
void addClassDescription(const std::string &doc_string)
unsigned int _qp