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

Boundary condition parsing. More...

#include "boundary.h"
#include "input.h"
#include <algorithm>
#include <array>
#include <limits>
#include <stdexcept>
#include <unordered_map>
#include <unordered_set>
#include <vector>
#include "mesh.h"
#include "synthetic_inflow.h"

Functions

BoundaryData make_boundary_data (const Mesh &mesh, const std::vector< int32_t > &h_face_bc_vec, const std::vector< BoundaryCondition > &h_bcs_vec, rtype gamma, rtype R, bool viscous, const Euler &gas)
 Build BoundaryData (face -> condition map and transmissive image cells) on the host and copy it to the device.
 

Detailed Description

Boundary condition parsing.

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

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).