MAIA
bb96820c
Multiphysics at AIA
Loading...
Searching...
No Matches
dgcartesianbcfactorylinearscalaradv.cpp
Go to the documentation of this file.
1
// Copyright (C) 2024 The m-AIA AUTHORS
2
//
3
// This file is part of m-AIA (https://git.rwth-aachen.de/aia/m-AIA/m-AIA)
4
//
5
// SPDX-License-Identifier: LGPL-3.0-only
6
7
#include "
INCLUDE/maiatypes.h
"
8
#include "
dgcartesianboundarycondition.h
"
9
#include "
dgcartesianboundaryconditionfactory.h
"
10
#include "
dgcartesiansyseqnlinearscalaradv.h
"
11
12
// Includes for boundary conditions start here
13
#include "
dgcartesianbcexact.h
"
14
15
namespace
maia
{
16
namespace
dg {
17
namespace
bc {
18
namespace
factory {
19
20
template
<MInt nDim>
21
struct
Init
<nDim,
DgSysEqnLinearScalarAdv
<nDim>> {
22
using
SysEqn
=
DgSysEqnLinearScalarAdv<nDim>
;
23
using
FactoryType
=
DgBoundaryConditionFactory<nDim, SysEqn>
;
24
static
void
init
(
FactoryType
& factory);
25
};
26
27
template
<MInt nDim>
28
void
Init<nDim, DgSysEqnLinearScalarAdv<nDim>
>::init(
FactoryType
& factory) {
29
// Import namespace for ease-of-use
30
using namespace
maia::dg::bc
;
31
32
// Add all boundary conditions with a unique boundary condition id
33
factory.
add
(0,
Type
<
DgBcExact<nDim, SysEqn>
>());
34
35
// boundary condition ids for sponge bcs
36
}
37
39
template
struct
Init<2, DgSysEqnLinearScalarAdv<2>
>;
40
template
struct
Init<3, DgSysEqnLinearScalarAdv<3>
>;
41
42
}
// namespace factory
43
}
// namespace bc
44
}
// namespace dg
45
}
// namespace maia
46
48
template
class
DgBoundaryConditionFactory<2, DgSysEqnLinearScalarAdv<2>
>;
49
template
class
DgBoundaryConditionFactory<3, DgSysEqnLinearScalarAdv<3>
>;
DgBcExact
Boundary condition which imposes initial condition ("exact" boundary conditions) at the domain bounda...
Definition:
dgcartesianbcexact.h:26
DgBoundaryConditionFactory
Class to handle creation of boundary condition objects.
Definition:
dgcartesianboundaryconditionfactory.h:48
DgBoundaryConditionFactory::add
MBool add(const IdType id, maia::dg::bc::Type< T >)
Add new type to factory.
Definition:
dgcartesianboundaryconditionfactory.h:61
DgSysEqnLinearScalarAdv
Definition:
dgcartesiansyseqnlinearscalaradv.h:19
dgcartesianbcexact.h
dgcartesianboundarycondition.h
dgcartesianboundaryconditionfactory.h
dgcartesiansyseqnlinearscalaradv.h
maiatypes.h
maia::dg::bc
Definition:
dgcartesianbcfactoryacousticperturb.cpp:22
maia
Namespace for auxiliary functions/classes.
Definition:
acaobserverdatacollector.h:76
maia::dg::bc::Type
Simple type-to-type mapper for function overloading.
Definition:
dgcartesianboundaryconditionfactory.h:25
maia::dg::bc::factory::Init
Definition:
dgcartesianboundaryconditionfactory.h:86
maia::dg::bc::factory::Init::init
static void init(FactoryType &factory)
home
gitlab-runner
scratch
builds
oxpnswJ6
1
aia
m-AIA
m-AIA
src
DG
dgcartesianbcfactorylinearscalaradv.cpp
Generated on Sun Jun 16 2024 23:44:00 for MAIA by
1.9.5