https://mooseframework.inl.gov
Loading...
Searching...
No Matches
navier_stokes
src
hdgkernels
AdvectionLHDGKernel.C
Go to the documentation of this file.
1
//* This file is part of the MOOSE framework
2
//* https://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
10
#include "
AdvectionLHDGAssemblyHelper.h
"
11
#include "
AdvectionLHDGKernel.h
"
12
13
registerMooseObject
(
"NavierStokesApp"
,
AdvectionLHDGKernel
);
14
15
InputParameters
16
AdvectionLHDGKernel::validParams
()
17
{
18
auto
params =
ElementAndTraceScalarHDGKernel::validParams
();
19
params +=
AdvectionLHDGAssemblyHelper::validParams
();
20
params.addClassDescription(
"Adds element and interior face integrals for an L-HDG advection "
21
"term using cell and hybrid velocities, respectively."
);
22
return
params;
23
}
24
25
AdvectionLHDGKernel::AdvectionLHDGKernel
(
const
InputParameters
& params)
26
:
ElementAndTraceScalarHDGKernel
(params),
27
_lhdg_helper(
std
::make_unique<
AdvectionLHDGAssemblyHelper
>(
28
this, this, this, _sys, _assembly, _tid, blockIDs(),
std
::set<
BoundaryID
>{}))
29
{
30
}
31
32
ElementAndTraceScalarHDGAssemblyHelper
&
33
AdvectionLHDGKernel::hdgHelper
()
34
{
35
return
*
_lhdg_helper
;
36
}
AdvectionLHDGAssemblyHelper.h
registerMooseObject
registerMooseObject("NavierStokesApp", AdvectionLHDGKernel)
AdvectionLHDGKernel.h
BoundaryID
boundary_id_type BoundaryID
AdvectionLHDGAssemblyHelper
Supplies the L-HDG velocity-trace evaluation to the shared advection assembly used by both HDG kernel...
Definition
AdvectionLHDGAssemblyHelper.h:20
AdvectionLHDGAssemblyHelper::validParams
static InputParameters validParams()
Definition
AdvectionLHDGAssemblyHelper.C:14
AdvectionLHDGKernel
Advection term using a cell velocity in the volume and the velocity trace in face fluxes.
Definition
AdvectionLHDGKernel.h:20
AdvectionLHDGKernel::validParams
static InputParameters validParams()
Definition
AdvectionLHDGKernel.C:16
AdvectionLHDGKernel::_lhdg_helper
std::unique_ptr< AdvectionLHDGAssemblyHelper > _lhdg_helper
Assembly helper implementing the L-HDG advection weak form.
Definition
AdvectionLHDGKernel.h:29
AdvectionLHDGKernel::hdgHelper
virtual ElementAndTraceScalarHDGAssemblyHelper & hdgHelper() override
Definition
AdvectionLHDGKernel.C:33
AdvectionLHDGKernel::AdvectionLHDGKernel
AdvectionLHDGKernel(const InputParameters ¶ms)
Definition
AdvectionLHDGKernel.C:25
ElementAndTraceScalarHDGAssemblyHelper
ElementAndTraceScalarHDGKernel
ElementAndTraceScalarHDGKernel::validParams
static InputParameters validParams()
std
InputParameters
Generated on Fri Sep 11 2026 20:36:17 for https://mooseframework.inl.gov by
1.9.8