Cholla 3.0.1-dev
Cholla - Massively parallel hydro on GPUs
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
hydro_utilities::Primitive Struct Reference

A data only struct for the primitive variables. More...

#include <basic_structs.h>

Collaboration diagram for hydro_utilities::Primitive:
Collaboration graph
[legend]

Public Member Functions

 Primitive ()=default
 Default constructor, should init everything to zero.
 
 Primitive (Real const in_density, VectorXYZ< Real > const &in_velocity, Real const in_pressure, VectorXYZ< Real > const &in_magnetic={0, 0, 0}, Real const in_gas_energy=0.0)
 

Public Attributes

Real density
 
Real pressure
 
VectorXYZ< Real > velocity
 

Detailed Description

A data only struct for the primitive variables.

Constructor & Destructor Documentation

◆ Primitive()

hydro_utilities::Primitive::Primitive ( Real const  in_density,
VectorXYZ< Real > const &  in_velocity,
Real const  in_pressure,
VectorXYZ< Real > const &  in_magnetic = {0, 0, 0},
Real const  in_gas_energy = 0.0 
)
inline

Manual constructor, mostly used for testing and doesn't init all members. The in_ prefix stands for input, mostly to avoid name collision with the member variables


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