DNDSR 0.1.0.dev1+gcd065ad
Distributed Numeric Data Structure for CFV
Loading...
Searching...
No Matches
DNDS::EulerP::BC Class Reference

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.
 

Detailed Description

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.

Member Typedef Documentation

◆ t_deviceView

Device view type alias.

Definition at line 325 of file EulerP_BC.hpp.

Member Function Documentation

◆ device()

DeviceBackend DNDS::EulerP::BC::device ( )
inline

Returns the current device backend where BC values reside.

Definition at line 319 of file EulerP_BC.hpp.

Here is the call graph for this function:

◆ deviceView()

template<DeviceBackend B>
t_deviceView< B > DNDS::EulerP::BC::deviceView ( )
inline

Creates a device-callable view of this BC object.

Template Parameters
BTarget device backend.
Returns
A BC_DeviceView<B> for use in device kernels.

Definition at line 333 of file EulerP_BC.hpp.

Here is the call graph for this function:

◆ getId()

Geom::t_index DNDS::EulerP::BC::getId ( ) const
inline

Returns the boundary zone ID.

Definition at line 296 of file EulerP_BC.hpp.

◆ getNValues()

int32_t DNDS::EulerP::BC::getNValues ( ) const
inline

Returns the number of parameter values.

Definition at line 300 of file EulerP_BC.hpp.

Here is the call graph for this function:

◆ getType()

BCType DNDS::EulerP::BC::getType ( ) const
inline

Returns the BC type.

Definition at line 298 of file EulerP_BC.hpp.

◆ getValues()

auto DNDS::EulerP::BC::getValues ( ) const
inline

Returns a copy of BC parameter values as std::vector.

Definition at line 303 of file EulerP_BC.hpp.

◆ setId()

void DNDS::EulerP::BC::setId ( Geom::t_index  n_id)
inline

Sets the boundary zone ID.

Definition at line 297 of file EulerP_BC.hpp.

◆ setType()

void DNDS::EulerP::BC::setType ( BCType  n_type)
inline

Sets the BC type.

Definition at line 299 of file EulerP_BC.hpp.

◆ setValues()

void DNDS::EulerP::BC::setValues ( const std::vector< real > &  v)
inline

Sets BC parameter values from a vector.

Definition at line 302 of file EulerP_BC.hpp.

◆ to_device()

void DNDS::EulerP::BC::to_device ( DeviceBackend  B)
inline

Transfers BC values to the specified device backend.

Parameters
BTarget device backend.

Definition at line 313 of file EulerP_BC.hpp.

Here is the call graph for this function:

◆ to_host()

void DNDS::EulerP::BC::to_host ( )
inline

Transfers BC values to host memory.

Definition at line 306 of file EulerP_BC.hpp.

Here is the call graph for this function:

◆ value()

real DNDS::EulerP::BC::value ( int  i) const
inline

Returns the i-th parameter value (bounds-checked).

Definition at line 301 of file EulerP_BC.hpp.

Here is the call graph for this function:

The documentation for this class was generated from the following file: