|
DNDSR 0.1.0.dev1+gcd065ad
Distributed Numeric Data Structure for CFV
|
Host-side physics object managing gas parameters and device-transferable reference values. More...
#include <EulerP_Physics.hpp>
Public Types | |
| template<DeviceBackend B> | |
| using | t_deviceView = PhysicsDeviceView< B > |
| Device view type alias parameterized by backend. | |
Public Member Functions | |
| DNDS_NLOHMANN_DEFINE_TYPE_INTRUSIVE_WITH_ORDERED_AND_UNORDERED_JSON (Physics, reference_values, params) void to_host() | |
| Transfers reference values to host memory. | |
| void | to_device (DeviceBackend B) |
| Transfers reference values to the specified device backend. | |
| DeviceBackend | device () |
| Returns the current device backend where reference values reside. | |
| template<DeviceBackend B> | |
| t_deviceView< B > | deviceView () |
| Creates a device-callable view of this Physics object. | |
| void | setPerfectGas (real Rg, real gamma) |
| Configures the physics for a calorically perfect ideal gas. | |
Public Attributes | |
| host_device_vector< real > | reference_values |
| Reference values (e.g., freestream state) for non-dimensionalization. | |
| PhysicsParams | params |
| Gas physical parameters. | |
Host-side physics object managing gas parameters and device-transferable reference values.
Stores a host_device_vector of reference values (e.g., freestream quantities) and PhysicsParams. Supports JSON serialization and host/device transfer for GPU offloading. Use deviceView<B>() to obtain a PhysicsDeviceView for kernel invocation.
Definition at line 339 of file EulerP_Physics.hpp.
| using DNDS::EulerP::Physics::t_deviceView = PhysicsDeviceView<B> |
Device view type alias parameterized by backend.
Definition at line 368 of file EulerP_Physics.hpp.
|
inline |
Returns the current device backend where reference values reside.
Definition at line 362 of file EulerP_Physics.hpp.
|
inline |
Creates a device-callable view of this Physics object.
Asserts that the reference values reside on backend B (or Host with Unknown).
| B | Target device backend. |
PhysicsDeviceView<B> suitable for device kernel invocation. Definition at line 379 of file EulerP_Physics.hpp.
|
inline |
Transfers reference values to host memory.
Definition at line 343 of file EulerP_Physics.hpp.
Configures the physics for a calorically perfect ideal gas.
Computes cp = Rg * gamma / (gamma - 1) and cv = cp / gamma.
| Rg | Specific gas constant R = Cp - Cv. |
| gamma | Ratio of specific heats Cp/Cv. |
Definition at line 396 of file EulerP_Physics.hpp.
|
inline |
Transfers reference values to the specified device backend.
| B | Target device backend (Host or CUDA). |
Definition at line 356 of file EulerP_Physics.hpp.
| PhysicsParams DNDS::EulerP::Physics::params |
Gas physical parameters.
Definition at line 342 of file EulerP_Physics.hpp.
| host_device_vector<real> DNDS::EulerP::Physics::reference_values |
Reference values (e.g., freestream state) for non-dimensionalization.
Definition at line 341 of file EulerP_Physics.hpp.