|
Mallard 0.8.0
Unstructured, GPU accelerated, high-order finite volume CFD solver
Mallard website |
Boundary conditions. More...
#include <string>#include <unordered_map>#include <vector>#include <Kokkos_Core.hpp>#include <toml.hpp>#include "common.h"#include "physics.h"Go to the source code of this file.
Classes | |
| struct | BoundaryCondition |
| Device-copyable boundary condition. More... | |
| struct | BoundaryData |
| Device-side lookup from faces to boundary conditions. More... | |
Enumerations | |
| enum class | BoundaryType { SYMMETRY , EXTRAPOLATION , WALL_ADIABATIC , WALL_ISOTHERMAL , WALL_HEAT_FLUX , UPT , P_OUT , P_OUT_AVERAGE , DIRICHLET , FARFIELD , NSCBC_OUTLET , NSCBC_INLET , PARTITION } |
Functions | |
| BoundaryData | make_boundary_data (const Mesh &mesh, const std::vector< int32_t > &h_face_bc, const std::vector< BoundaryCondition > &h_bcs, rtype gamma, rtype R=1.0, bool viscous=false, const Euler &gas=Euler()) |
| Build BoundaryData (face -> condition map and transmissive image cells) on the host and copy it to the device. | |
Boundary conditions.
|
strong |
| BoundaryData make_boundary_data | ( | const Mesh & | mesh, |
| const std::vector< int32_t > & | h_face_bc, | ||
| const std::vector< BoundaryCondition > & | h_bcs, | ||
| rtype | gamma, | ||
| rtype | R = 1.0, |
||
| bool | viscous = false, |
||
| const Euler & | gas = Euler() |
||
| ) |
Build BoundaryData (face -> condition map and transmissive image cells) on the host and copy it to the device.
| mesh | Mesh. |
| h_face_bc | Index into h_bcs for each face, -1 for interior faces. |
| h_bcs | Boundary conditions. |
| gamma | Ratio of specific heats. |
| R | Gas constant. |
| viscous | Whether walls enforce no-slip. |
| gas | Gas model (transport properties for heat-flux walls). |