|
DNDSR 0.1.0.dev1+gcd065ad
Distributed Numeric Data Structure for CFV
|
Host-side boundary condition object managing parameter values and device transfer. More...
#include <EulerP_BC.hpp>
Public Types | |
| template<DeviceBackend B> | |
| using | t_deviceView = BC_DeviceView< B > |
| Device view type alias. | |
Public Member Functions | |
| Geom::t_index | getId () const |
| Returns the boundary zone ID. | |
| void | setId (Geom::t_index n_id) |
| Sets the boundary zone ID. | |
| BCType | getType () const |
| Returns the BC type. | |
| void | setType (BCType n_type) |
| Sets the BC type. | |
| int32_t | getNValues () const |
| Returns the number of parameter values. | |
| real | value (int i) const |
| Returns the i-th parameter value (bounds-checked). | |
| void | setValues (const std::vector< real > &v) |
| Sets BC parameter values from a vector. | |
| auto | getValues () const |
| Returns a copy of BC parameter values as std::vector. | |
| void | to_host () |
| Transfers BC values to host memory. | |
| void | to_device (DeviceBackend B) |
| Transfers BC values to the specified device backend. | |
| DeviceBackend | device () |
| Returns the current device backend where BC values reside. | |
| template<DeviceBackend B> | |
| t_deviceView< B > | deviceView () |
| Creates a device-callable view of this BC object. | |
Host-side boundary condition object managing parameter values and device transfer.
Stores BC parameters in a host_device_vector for transparent host/device transfer. Provides property accessors for zone ID, type, and values. Use deviceView<B>() to obtain a BC_DeviceView for kernel invocation.
Definition at line 289 of file EulerP_BC.hpp.
| using DNDS::EulerP::BC::t_deviceView = BC_DeviceView<B> |
Device view type alias.
Definition at line 325 of file EulerP_BC.hpp.
|
inline |
Returns the current device backend where BC values reside.
Definition at line 319 of file EulerP_BC.hpp.
|
inline |
Creates a device-callable view of this BC object.
| B | Target device backend. |
BC_DeviceView<B> for use in device kernels. Definition at line 333 of file EulerP_BC.hpp.
|
inline |
Returns the boundary zone ID.
Definition at line 296 of file EulerP_BC.hpp.
|
inline |
Returns the number of parameter values.
Definition at line 300 of file EulerP_BC.hpp.
|
inline |
Returns the BC type.
Definition at line 298 of file EulerP_BC.hpp.
|
inline |
Returns a copy of BC parameter values as std::vector.
Definition at line 303 of file EulerP_BC.hpp.
|
inline |
Sets the boundary zone ID.
Definition at line 297 of file EulerP_BC.hpp.
Sets the BC type.
Definition at line 299 of file EulerP_BC.hpp.
Sets BC parameter values from a vector.
Definition at line 302 of file EulerP_BC.hpp.
|
inline |
Transfers BC values to the specified device backend.
| B | Target device backend. |
Definition at line 313 of file EulerP_BC.hpp.
|
inline |
Transfers BC values to host memory.
Definition at line 306 of file EulerP_BC.hpp.
Returns the i-th parameter value (bounds-checked).
Definition at line 301 of file EulerP_BC.hpp.