d4t_formulas/assets/formulas/thermodynamics.d4rt

30 lines
789 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
![Ideal Gas](https://upload.wikimedia.org/wikipedia/commons/thumb/0/02/Ideal_gas_sphere.svg/800px-Ideal_gas_sphere.svg.png)""",
"input": [
{"name": "n", "unit": "mole"},
{"name": "T", "unit": "kelvin"},
{"name": "V", "unit": "cubic meter"}
],
"output": {"name": "P", "unit": "pascal"},
"d4rtCode": "P = (n * 8.314462618 * T) / V;",
"tags": ["physics", "thermodynamics", "gas"]
}
]