Recent content by Leopold89

  1. L

    I How to calculate the mass of gas in a tank?

    Maybe it is not that realistic, because the gas temperature is essentially constant compared to room temperature, but the gauge pressure still rises, likely even more than justified, if you look at the plot in post #71. But I also had to adapt Chestermiller's formula a bit, because I do not have...
  2. L

    I How to calculate the mass of gas in a tank?

    I have now finally completed the computation with the new model by Chestermiller. As I could not find a clever substitution to seperate this differential equation into two seperate, I instead implemented this equation as minimization problem with the mass and temperature time serieses as...
  3. L

    I How to calculate the mass of gas in a tank?

    Can anybody recommend a proper scale? One which I can connect to a (Linux) computer, can recalibrate myself and is cheap?
  4. L

    I How to calculate the mass of gas in a tank?

    Juanda got increasing masses, too. These are the differences between the vapour and liquid enthalpies.
  5. L

    I How to calculate the mass of gas in a tank?

    Oh, no. I plotted the gauge pressures. The absolute pressures are only in post #71. I calculate precisely this in post #88. It is the bottom right graph.
  6. L

    I How to calculate the mass of gas in a tank?

    In above plot I believe to see how the temperature is maximal between 12:00 and 16:00, but the pressure is maximal at around 16:00, maybe a little later than the temperature. Do you mean the room that affects the pressure regulator? I don't think the cable is long enough to get the second one...
  7. L

    I How to calculate the mass of gas in a tank?

    Here is the kind of pressure regulator I am using to vent gas, but in German. Mass should therefore not flow inside. I would not think mass is increasing, but instead that too many simplifications were made or a miscalculation happened somewhere, which is why I posted my code. If mass...
  8. L

    I How to calculate the mass of gas in a tank?

    Sorry about the x-axis. I wrote that measurements take place every 2 minutes, so I got lazy and omitted the x-axis. The first row is direct sensor data for temperature and pressure. The x axis is the same for all plots, which is why I now only wrote it at the bottom. The jagginess is only...
  9. L

    I How to calculate the mass of gas in a tank?

    Maybe some implementation error. I post my code, too: def vanDerWaals_a(inGas): return 27/64.0*math.pow(constants.R*criticalTemperature[inGas], 2)/criticalPressure[inGas] def vanDerWaals_b(inGas): return constants.R*criticalTemperature[inGas]/8.0/criticalPressure[inGas] def...
  10. L

    I How to calculate the mass of gas in a tank?

    First we assumed that the temperatures will get in an equilibrium fast and now with the isentropic approach I used calculated temperature values. The valve is actuated mechanically. And the sudden, small peaks do not correspond to discharges, because we only discharge around two times a day, I...
  11. L

    I How to calculate the mass of gas in a tank?

    That is the problem. I tried to find the time frames, where no discharge was happening by subtracting atmospheric pressure and gas pressure, but I did not get time frames with constant pressure.
  12. L

    I How to calculate the mass of gas in a tank?

    As I wrote, I used the pyromat library for this. For the bell check I used this CO##_2## table attached here and interpolated it with scipy.interpolate. This way I get a pressure for a given temperature and can check if the measurements are below this limit. If not the program aborts.
  13. L

    I How to calculate the mass of gas in a tank?

    I used the Python package gascompressibility for the compressibility factor and got ~0.61 for the initial values. I calculated the spezific enthropy based on the initial values and then assumed it stayed constant and then calculated the temperature based on pressure and spezific enthropy, all...
  14. L

    I How to calculate the mass of gas in a tank?

    Here the Wolfram calculation: https://www.wolframalpha.com/input?i=%285.43MPa+*+50+liters%29%2F%28297Kelvin+*+boltzmann+constant%29+*+mass+of+CO2+molecule I hope it works as intended.
  15. L

    I How to calculate the mass of gas in a tank?

    I tried something new and corrected the measured pressure of the CO##_2## tank with the atmospheric pressure. I expected to see a saw like pattern and hopefully small peaks dissapear, but got the plots attached here. The x axis is the Unix epoch time and the y axis is the difference between tank...
Back
Top