/home/runner/work/amr-wind/amr-wind/amr-wind/equation_systems/SchemeTraits.H Source File

AMR-Wind API: /home/runner/work/amr-wind/amr-wind/amr-wind/equation_systems/SchemeTraits.H Source File
AMR-Wind API v0.1.0
CFD solver for wind plant simulations
Loading...
Searching...
No Matches
SchemeTraits.H
Go to the documentation of this file.
1#ifndef SCHEMETRAITS_H
2#define SCHEMETRAITS_H
3
4#include <string>
5
6namespace amr_wind::fvm {
7
11struct Godunov
12{
14 static std::string scheme_name() { return "Godunov"; }
15
17 static constexpr int num_states = 2;
19 static constexpr int nghost_state = 3;
21 static constexpr int nghost_src = 1;
23 static constexpr int nghost_mac = 1;
24
26 static constexpr int num_diff_states = 1;
28 static constexpr int num_conv_states = 1;
29};
30
34struct MOL
35{
36 static std::string scheme_name() { return "MOL"; }
37
39 static constexpr int num_states = 2;
41 static constexpr int nghost_state = 2;
43 static constexpr int nghost_src = 0;
45 static constexpr int nghost_mac = 0;
46
48 static constexpr int num_diff_states = 2;
50 static constexpr int num_conv_states = 2;
51};
52
53} // namespace amr_wind::fvm
54
55#endif /* SCHEMETRAITS_H */
Definition SchemeTraits.H:6
Definition SchemeTraits.H:12
static constexpr int num_diff_states
Number of states for diffusion field.
Definition SchemeTraits.H:26
static std::string scheme_name()
String used to uniquely identify this scheme.
Definition SchemeTraits.H:14
static constexpr int num_states
Number of states in the field variable.
Definition SchemeTraits.H:17
static constexpr int nghost_state
Number of ghost in the state variable.
Definition SchemeTraits.H:19
static constexpr int nghost_src
Number of ghost cells in the source term variable.
Definition SchemeTraits.H:21
static constexpr int num_conv_states
Number of states for convective term.
Definition SchemeTraits.H:28
static constexpr int nghost_mac
Number of ghost cells in the MAC face variables.
Definition SchemeTraits.H:23
Definition SchemeTraits.H:35
static constexpr int nghost_state
Number of ghost cells in the state variable.
Definition SchemeTraits.H:41
static constexpr int num_conv_states
Number of states for convective term.
Definition SchemeTraits.H:50
static constexpr int num_states
Number of states in the field variable.
Definition SchemeTraits.H:39
static std::string scheme_name()
Definition SchemeTraits.H:36
static constexpr int num_diff_states
Number of states for diffusion field.
Definition SchemeTraits.H:48
static constexpr int nghost_mac
Number of ghost cells in the MAC face variables.
Definition SchemeTraits.H:45
static constexpr int nghost_src
Number of ghost cells in the source term variable.
Definition SchemeTraits.H:43