.. _auto_math_mass_ideal_gas: *COMPUTES THE MASS BASED ON IDEAL GAS LAW* ========================================== Computes the mass of an ideal gas mixture (80% N₂ / 20% O₂ by mole fraction) using the ideal gas law: mass = (P·V / T·R) × (0.8·M_N₂ + 0.2·M_O₂). Use this worker when you need to derive gas mass from thermodynamic state variables in airbag, pneumatic, or thermodynamic system workflows. When to use ----------- Classification: **process**. Tagged: ``N2``, ``O2``, ``airbag``, ``gas_mass``, ``ideal_gas_law``, ``molar_weight``, ``scalar``, ``thermodynamics``. Inputs ------ .. list-table:: :header-rows: 1 :widths: 20 20 20 20 20 20 * - Label - ID - Type - Default - Required - Description * - Pressure - pressure - scalar - — - ✓ - Absolute gas pressure (Pa or consistent pressure units); multiplied with volume in the ideal gas law numerator. * - Volume - volume - float - 1 - ✓ - Gas volume (m³ or consistent volume units); default 1.0 — override with the actual chamber or bag volume. * - Temperature - temperature - float - 1 - ✓ - Absolute gas temperature in Kelvin; default 1.0 — must be set to a physically meaningful value (e.g. 293.15 K) for correct results. * - Gas Constant - gasconstant - float - 1 - ✓ - Specific or universal gas constant in units consistent with P, V, and T (e.g. 8.314 J/(mol·K) for universal); default 1.0 — set to the appropriate value for the chosen unit system. * - N2 Molar Weight - n2molarweight - float - 1.0 - ✓ - Molar mass of nitrogen N₂ (kg/mol); default 1.0 — set to 0.028014 kg/mol for standard air calculations. * - O2 Molar Weight - o2molarweight - float - 1.0 - ✓ - Molar mass of oxygen O₂ (kg/mol); default 1.0 — set to 0.032000 kg/mol for standard air calculations. Outputs ------- .. list-table:: :header-rows: 1 :widths: 20 20 20 20 * - Label - ID - Type - Description * - math_mass_ideal_gas_output_1 - math_mass_ideal_gas_output_1 - scalar - Computed gas mass (kg or units consistent with inputs) calculated as (P·V / T·R) × (0.8·M_N₂ + 0.2·M_O₂), representing an 80/20 N₂/O₂ air mixture. Disciplines ----------- - data.curve.transform - engineering.cfd Runnable example ---------------- A runnable example is registered for this worker. Open the example workflow on the d3VIEW canvas: `/api/workflow/example?id=math_mass_ideal_gas `_ .. raw:: html

Auto-generated from transformation schema. Worker id: math_mass_ideal_gas. Schema hash: 3a4b5daf5116. Hand-curated docs in workerexamples/ override this page when present.