d4t_formulas/assets/formulas/thermodynamics.d4rt

30 lines
666 B
Text
Raw Normal View History

[
2026-02-24 09:21:07 +00:00
// Ideal Gas Law
{
"name": "Ideal Gas Law",
"description": r"""
Equation of state for an ideal gas.
$$PV = nRT$$
Where:
- $P$: Pressure (Pascals)
- $V$: Volume (m^3)
- $n$: Amount of substance (moles)
- $R$: Universal gas constant $8.314\ \mathrm{J/(mol\cdot K)}$
- $T$: Temperature (Kelvin)
This law combines Boyle's, Charles's and Avogadro's laws.
""",
2026-02-24 09:21:07 +00:00
"input": [
{"name": "n", "unit": "mole"},
{"name": "T", "unit": "Kelvin"},
2026-02-24 09:21:07 +00:00
{"name": "V", "unit": "cubic meter"}
],
"output": {"name": "P", "unit": "pascal"},
"d4rtCode": "P = (n * 8.314462618 * T) / V;",
"tags": ["physics", "thermodynamics", "gas"]
}
]