www.mooseframework.org
LevelSetTimeDerivativeSUPG.C
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://www.mooseframework.org
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(
19  "SUPG stablization terms for the time derivative of the level set equation.");
20  params.addRequiredCoupledVar("velocity", "Velocity vector variable.");
21  return params;
22 }
23 
25  : ADTimeKernelGrad(parameters), _velocity(adCoupledVectorValue("velocity"))
26 {
27 }
28 
31 {
32  ADReal tau =
33  _current_elem->hmin() /
35  return tau * _velocity[_qp] * _u_dot[_qp];
36 }
const ADTemplateVariableValue< T > & _u_dot
static constexpr Real TOLERANCE
virtual ADRealVectorValue precomputeQpResidual() override
registerMooseObject("LevelSetApp", LevelSetTimeDerivativeSUPG)
const ADVectorVariableValue & _velocity
Velocity vector variable.
static InputParameters validParams()
DualReal ADReal
auto norm(const T &a) -> decltype(std::abs(a))
void addRequiredCoupledVar(const std::string &name, const std::string &doc_string)
LevelSetTimeDerivativeSUPG(const InputParameters &parameters)
Applies SUPG stabilization to the time derivative.
void addClassDescription(const std::string &doc_string)
const Elem *const & _current_elem
static InputParameters validParams()