DNDSR 0.1.0.dev1+gcd065ad
Distributed Numeric Data Structure for CFV
Loading...
Searching...
No Matches
EulerP_Physics.hpp File Reference

Physics model definitions for the EulerP module: gas properties, state conversions, and inviscid flux computation. More...

#include "DNDS/Defines.hpp"
#include "DNDS/DeviceStorage.hpp"
#include "DNDS/Errors.hpp"
#include "DNDS/IdealGasPhysics.hpp"
#include "EulerP.hpp"
#include "DNDS/JsonUtil.hpp"
#include <cmath>
#include "Geom/Geometric.hpp"
Include dependency graph for EulerP_Physics.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  DNDS::EulerP::PhysicsParams
 POD struct holding gas physical properties for the ideal gas model. More...
 
struct  DNDS::EulerP::PhysicsDeviceView< B >
 Device-callable view of physics parameters providing thermodynamic operations. More...
 
struct  DNDS::EulerP::Physics
 Host-side physics object managing gas parameters and device-transferable reference values. More...
 

Namespaces

namespace  DNDS
 the host side operators are provided as implemented
 
namespace  DNDS::EulerP
 Namespace for the EulerP alternative evaluator module with GPU support.
 

Functions

template<typename TU , typename TF , class TVecN >
DNDS_DEVICE_CALLABLE void DNDS::EulerP::GasInviscidFlux_XY (TU &&U, int nVars, real vn, real vgn, TVecN &&n, real p, TF &F)
 Computes the inviscid (Euler) flux projected onto a face normal direction.
 

Detailed Description

Physics model definitions for the EulerP module: gas properties, state conversions, and inviscid flux computation.

Provides:

  • PhysicsParams: POD struct of gas parameters (gamma, viscosity, specific heats), JSON-serializable.
  • PhysicsDeviceView: Device-callable view with conservative/primitive conversions and thermodynamic relations.
  • Physics: Host-side physics object managing device transfer of reference values.
  • GasInviscidFlux_XY: Device-callable inviscid flux projected onto a face normal.
Note
In EulerP, the primitive state stores internal energy (rho*e) at index I4, NOT pressure. This differs from the Euler module convention.

Definition in file EulerP_Physics.hpp.