www.mooseframework.org
level_set
include
kernels
LevelSetAdvection.h
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
#pragma once
11
12
// MOOSE includes
13
#include "ADKernelValue.h"
14
#include "
LevelSetVelocityInterface.h
"
15
16
// Forward declarations
17
template
<ComputeStage>
18
class
LevelSetAdvection
;
19
20
declareADValidParams
(
LevelSetAdvection
);
21
29
template
<ComputeStage compute_stage>
30
class
LevelSetAdvection
:
public
LevelSetVelocityInterface
<ADKernelValue<compute_stage>>
31
{
32
public
:
33
LevelSetAdvection
(
const
InputParameters & parameters);
34
35
protected
:
36
virtual
ADReal
precomputeQpResidual
()
override
;
37
38
usingKernelValueMembers
;
39
using
LevelSetVelocityInterface<ADKernelValue<compute_stage>
>
::computeQpVelocity
;
40
using
LevelSetVelocityInterface<ADKernelValue<compute_stage>
>
::_velocity
;
41
};
42
declareADValidParams
declareADValidParams(LevelSetAdvection)
LevelSetVelocityInterface.h
LevelSetVelocityInterface< ADKernelValue< compute_stage > >::_velocity
RealVectorValue _velocity
Storage for velocity vector.
Definition:
LevelSetVelocityInterface.h:55
LevelSetAdvection::LevelSetAdvection
LevelSetAdvection(const InputParameters ¶meters)
Definition:
LevelSetAdvection.C:24
LevelSetAdvection::precomputeQpResidual
virtual ADReal precomputeQpResidual() override
Definition:
LevelSetAdvection.C:31
LevelSetVelocityInterface
A helper class for defining the velocity as coupled variables for the levelset equation.
Definition:
LevelSetVelocityInterface.h:18
LevelSetAdvection::usingKernelValueMembers
usingKernelValueMembers
Definition:
LevelSetAdvection.h:38
LevelSetVelocityInterface< ADKernelValue< compute_stage > >::computeQpVelocity
void computeQpVelocity()
This method should be called when the velocity vector needs to be updated, this is not done automatic...
Definition:
LevelSetVelocityInterface.h:60
LevelSetAdvection
Advection Kernel for the levelset equation.
Definition:
LevelSetAdvection.h:18
Generated on Sat Jan 25 2020 12:04:37 for www.mooseframework.org by
1.8.16