SpectraSim Documentation
Parameter · 04 Material

Density

material.incompressible.rho Unit: kg/m³ Step 04 · Material

The constant density of an incompressible run. It follows the temperature and the ambient pressure through the ideal-gas law until a value is typed over it; it is read-only for the compressible solver, which computes the density itself.

Last updated

Theory

The incompressible solver works with the kinematic pressure p/ρp/\rho; the density converts it to pascal for every reported pressure and turns a mass flow into a velocity. It is computed from equation (1). A typed value replaces it for the run: the field then carries a "user" badge, stops following the temperature and pressure, and offers "reset to computed"; the report marks it "manual override".

The program records in the run folder the density each run was built with, so the results of that run are always converted with it, even when the material settings change later.

Equations

ρ=(patm+pg) MR T\rho = \frac{(p_{atm} + p_g)\,M}{\mathcal{R}\,T}
(1)
wheremeaningunit
ρ\rhoDensitykg/m³
patmp_{atm}Ambient pressurePa
pgp_g0 (density reference ambient) or half the previous static pressure drop (mean)Pa
MMMolar mass of the gaskg/kmol
R\mathcal{R}Universal gas constant, 8314.47J/(kmol K)
TTMaterial temperatureK

Default and rule

Default
computed from temperature and ambient pressure (ideal gas)Computed by the program
Rule

Computed (the field is empty in the case file). Air at 20 °C and 101 325 Pa: 1.204 kg/m³.

Source

The ideal-gas law, equation (1). The 2 % warning threshold is the program's own choice; it has no published basis.

Valid range > 0; warning when more than 2 % off the computed value

Values

Above 0.

Manual value

A typed density more than 2 % away from the computed one is warned about: it no longer agrees with the temperature and pressure of the case.

Compressible solver

Ignored: the compressible solver computes the density from the solved pressure and temperature.