Mallard 0.8.0
Unstructured, GPU accelerated, high-order finite volume CFD solver
Mallard website
Loading...
Searching...
No Matches
boundary.h File Reference

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.
 

Detailed Description

Boundary conditions.

Author
Matthew Bonanni (mbona.nosp@m.nni0.nosp@m.01@gm.nosp@m.ail..nosp@m.com)
Version
0.2
Date
2023-12-20

Enumeration Type Documentation

◆ BoundaryType

Enumerator
SYMMETRY 
EXTRAPOLATION 
WALL_ADIABATIC 
WALL_ISOTHERMAL 
WALL_HEAT_FLUX 
UPT 
P_OUT 
P_OUT_AVERAGE 
DIRICHLET 
FARFIELD 
NSCBC_OUTLET 
NSCBC_INLET 
PARTITION 

Function Documentation

◆ make_boundary_data()

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.

Parameters
meshMesh.
h_face_bcIndex into h_bcs for each face, -1 for interior faces.
h_bcsBoundary conditions.
gammaRatio of specific heats.
RGas constant.
viscousWhether walls enforce no-slip.
gasGas model (transport properties for heat-flux walls).