We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a82c8e9 commit 0021a1fCopy full SHA for 0021a1f
2 files changed
docs/user/motors/tanks.rst
@@ -76,7 +76,9 @@ Fluid are then passed to tanks when they are defined.
76
.. note::
77
78
One may define the fluid density as a function of temperature (K) and
79
- pressure (Pa). In this case, the fluid would be defined as such:
+ pressure (Pa). The data can be imported from an external source, such as
80
+ a dataset or external libraries.
81
+ In this case, the fluid would be defined as such:
82
83
>>> Fluid(name="Liquid Nitrous Oxide", density=lambda t, p: 44 * p / (8.314 * t))
84
rocketpy/plots/fluid_plots.py
@@ -31,3 +31,4 @@ def all(self):
31
------
32
None
33
"""
34
+ self.fluid.density_function()
0 commit comments