|
DNDSR 0.1.0.dev1+gcd065ad
Distributed Numeric Data Structure for CFV
|
Device-callable view of a single boundary condition. More...
#include <EulerP_BC.hpp>
Public Member Functions | |
| DNDS_DEVICE_CALLABLE | BC_DeviceView (BCStorageVecDeviceView< B > n_values, Geom::t_index n_id, BCType n_type) |
| Constructs a BC device view from values, zone ID, and type. | |
| DNDS_DEVICE_CALLABLE Geom::t_index | getId () const |
| Returns the boundary zone ID. | |
| DNDS_DEVICE_CALLABLE BCType | getType () const |
| Returns the boundary condition type. | |
| DNDS_DEVICE_CALLABLE int32_t | getNValues () const |
| Returns the number of BC parameter values. | |
| DNDS_DEVICE_CALLABLE real | value (int32_t i) const |
| Returns the i-th BC parameter value. | |
| template<class tU , class tUOut , class tx , class tn > | |
| DNDS_DEVICE_CALLABLE void | apply (tU &&U, tUOut &&UOut, int32_t uSiz, tx &&x, tn &&n, PhysicsDeviceView< B > &phy) |
| Applies this boundary condition to compute the ghost state. | |
Device-callable view of a single boundary condition.
Holds a device-resident view of BC parameter values, the boundary zone ID, and the BC type. The apply() method uses a runtime switch to dispatch to the appropriate BCFunc_Impl specialization.
| B | Device backend (Host or CUDA). |
Definition at line 210 of file EulerP_BC.hpp.
|
inline |
Constructs a BC device view from values, zone ID, and type.
| n_values | Device view of BC parameter values. |
| n_id | Boundary zone identifier. |
| n_type | Boundary condition type. |
Definition at line 225 of file EulerP_BC.hpp.
|
inline |
Applies this boundary condition to compute the ghost state.
Dispatches to the appropriate BCFunc_Impl specialization based on the runtime type field using a switch statement. Asserts on unknown types.
| tU | Input conservative state type (deduced). |
| tUOut | Output ghost state type (deduced). |
| tx | Coordinate vector type (deduced). |
| tn | Normal vector type (deduced). |
| U | Input conservative state at the boundary face. | |
| [out] | UOut | Output ghost conservative state. |
| uSiz | Number of variables. | |
| x | Face centroid coordinates. | |
| n | Outward face unit normal. | |
| phy | Physics device view for thermodynamic computations. |
Definition at line 254 of file EulerP_BC.hpp.
|
inline |
Returns the boundary zone ID.
Definition at line 231 of file EulerP_BC.hpp.
|
inline |
Returns the number of BC parameter values.
Definition at line 233 of file EulerP_BC.hpp.
|
inline |
Returns the boundary condition type.
Definition at line 232 of file EulerP_BC.hpp.
|
inline |
Returns the i-th BC parameter value.
Definition at line 234 of file EulerP_BC.hpp.