Bicameral Engine
GPU-resident engine for a magic-research open-world game
Loading...
Searching...
No Matches
gas_reference.h File Reference
#include <array>
#include <cstdint>
#include <span>
#include <vector>
Include dependency graph for gas_reference.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  bicameral::sim::GasSpecies
struct  bicameral::sim::GasConfig
struct  bicameral::sim::GasCoefficients
struct  bicameral::sim::GasCell
struct  bicameral::sim::GasDerived
struct  bicameral::sim::GasLedger
struct  bicameral::sim::GasTotals
struct  bicameral::sim::GasBox

Namespaces

namespace  bicameral
namespace  bicameral::sim

Enumerations

enum class  bicameral::sim::GasBoundary : uint8_t { bicameral::sim::Wall , bicameral::sim::Periodic , bicameral::sim::Open }
enum class  bicameral::sim::GasReconstruction : uint8_t { bicameral::sim::Upwind , bicameral::sim::Minmod , bicameral::sim::MonotonizedCentral }

Functions

GasCoefficients bicameral::sim::MakeGasCoefficients (const GasConfig &config)
GasCell bicameral::sim::MakeGasCell (const GasConfig &config, std::span< const uint64_t > amounts, uint32_t temperatureMilliKelvin)
std::vector< GasCell > bicameral::sim::MakeHydrostaticReference (const GasConfig &config, std::span< const uint32_t > fractionsQ32, uint32_t temperatureMilliKelvin, uint64_t surfacePressureMicroPascal)
GasBox bicameral::sim::MakeGasBox (const GasConfig &config, std::vector< GasCell > reference)
GasDerived bicameral::sim::DeriveGasCell (const GasBox &box, const GasCell &cell, uint32_t z)
int64_t bicameral::sim::GasVelocity (const GasBox &box, const GasCell &cell, uint32_t axis)
void bicameral::sim::StepGas (GasBox &box)
GasTotals bicameral::sim::SumGas (const GasBox &box)
uint64_t bicameral::sim::HashGas (const GasBox &box)

Variables

constexpr uint32_t bicameral::sim::GAS_MAX_SPECIES = 4
constexpr uint32_t bicameral::sim::GAS_AXES = 3