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  ADTimeKernelGrad,
17  params.addClassDescription(
18  "SUPG stablization terms for the time derivative of the level set equation.");
19  params += validParams<LevelSetVelocityInterface<>>(););
20 
21 template <ComputeStage compute_stage>
23  const InputParameters & parameters)
24  : LevelSetVelocityInterface<ADTimeKernelGrad<compute_stage>>(parameters)
25 {
26 }
27 
28 template <ComputeStage compute_stage>
29 ADRealVectorValue
31 {
32  computeQpVelocity();
33  Real tau = _current_elem->hmin() / (2 * _velocity.norm());
34  return tau * _velocity * _u_dot[_qp];
35 }
LevelSetTimeDerivativeSUPG
Applies SUPG stabilization to the time derivative.
Definition: LevelSetTimeDerivativeSUPG.h:18
registerADMooseObject
registerADMooseObject("LevelSetApp", LevelSetTimeDerivativeSUPG)
LevelSetVelocityInterface
A helper class for defining the velocity as coupled variables for the levelset equation.
Definition: LevelSetVelocityInterface.h:18
LevelSetTimeDerivativeSUPG::LevelSetTimeDerivativeSUPG
LevelSetTimeDerivativeSUPG(const InputParameters &parameters)
Definition: LevelSetTimeDerivativeSUPG.C:22
LevelSetTimeDerivativeSUPG.h
LevelSetTimeDerivativeSUPG::precomputeQpResidual
virtual ADRealVectorValue precomputeQpResidual() override
Definition: LevelSetTimeDerivativeSUPG.C:30
defineADValidParams
defineADValidParams(LevelSetTimeDerivativeSUPG, ADTimeKernelGrad, params.addClassDescription("SUPG stablization terms for the time derivative of the level set equation.");params+=validParams< LevelSetVelocityInterface<>>();)