www.mooseframework.org
LevelSetAdvectionSUPG.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 
10 #include "LevelSetAdvectionSUPG.h"
11 
13 
16  ADKernelGrad,
17  params.addClassDescription(
18  "SUPG stablization term for the advection portion of the level set equation.");
19  params += validParams<LevelSetVelocityInterface<>>(););
20 
21 template <ComputeStage compute_stage>
23  : LevelSetVelocityInterface<ADKernelGrad<compute_stage>>(parameters)
24 {
25 }
26 
27 template <ComputeStage compute_stage>
28 ADRealVectorValue
30 {
31  computeQpVelocity();
32  ADReal tau = _current_elem->hmin() / (2 * _velocity.norm());
33  return (tau * _velocity) * (_velocity * _grad_u[_qp]);
34 }
LevelSetVelocityInterface
A helper class for defining the velocity as coupled variables for the levelset equation.
Definition: LevelSetVelocityInterface.h:18
defineADValidParams
defineADValidParams(LevelSetAdvectionSUPG, ADKernelGrad, params.addClassDescription("SUPG stablization term for the advection portion of the level set equation.");params+=validParams< LevelSetVelocityInterface<>>();)
LevelSetAdvectionSUPG::precomputeQpResidual
virtual ADRealVectorValue precomputeQpResidual() override
Definition: LevelSetAdvectionSUPG.C:29
LevelSetAdvectionSUPG
SUPG stabilization for the advection portion of the level set equation.
Definition: LevelSetAdvectionSUPG.h:18
LevelSetAdvectionSUPG::LevelSetAdvectionSUPG
LevelSetAdvectionSUPG(const InputParameters &parameters)
Definition: LevelSetAdvectionSUPG.C:22
registerADMooseObject
registerADMooseObject("LevelSetApp", LevelSetAdvectionSUPG)
LevelSetAdvectionSUPG.h