Jump to content

[Math] Graph representation of proportionally pumped storage


Recommended Posts

Hey guys, I'm trying to use a graph to represent a storage's capacity in function of time where the storage is filled at a fixed rate but it's also emptied at a proportional rate at the same time (and thus, will reach equilibrium at a point I want to find out).

To illustrate in ONI terms, let's say I have a gas pipe constantly venting at 1kg/s in a box and that box is pumped out at a proportional rate of 10%/s. This system would reach equilibrium when filled with 10kg of gas.

I could always try it out or make the calculation for a specific case but I'm looking for a way to visualize it easily (as I can alter the pumping rates and storage size).

I'm not particularly good at maths so I figured I could ask for help. There probably is a specific math function that does exactly that, I just don't know it...

(Trying to draw my graph on desmos)

Thank you and sorry if this was the wrong place to ask for help.

Link to comment
Share on other sites

Wow, it's quite close, never thought of putting an exp here, thank you.

However it doesn't reach equilibrium with that formula; it reaches a peak then loses stored material over time until 0

Screenshot_20220502-165654.thumb.png.e7b1d5708dbd50490f26a377f8a465e7.png

 

If it can help, my Excel formula looks like this : B3 = B2 + 8 - B2 * 0.05

(Where 8 and 0.05 are constants in a cell like $G$1)

Link to comment
Share on other sites

I rechecked, should be:

V = c/m + (V_0 - c/m)•exp(-m•t)

Edit:
My brain is lame but LadenSwallow's solution and mine are more or less the same. If you want to solve an issue like this you're trying to solve the differential equation. Yours should look like

d/dt V = - m V + c (*)

First you solve the homogeneous part: d/dt V = - m V => V = V_0 exp(-m t)
Hence the e-function.
Than you assume that V_0 = V_0(t) and put it into (*)
This will give you sth like

d/dt V_0 = c•exp( m•t)

If you integrate this expression over an interval of [0, t_now] and put this new V_0 into the homogeneous solution you end with the above solution (t_now = t)

Link to comment
Share on other sites

On 5/2/2022 at 5:36 PM, MrAnimaniac said:

I rechecked, should be:

V = c/m + (V_0 - c/m)•exp(-m•t)

Edit:
My brain is lame but LadenSwallow's solution and mine are more or less the same. If you want to solve an issue like this you're trying to solve the differential equation. Yours should look like

d/dt V = - m V + c (*)

First you solve the homogeneous part: d/dt V = - m V => V = V_0 exp(-m t)
Hence the e-function.
Than you assume that V_0 = V_0(t) and put it into (*)
This will give you sth like

d/dt V_0 = c•exp( m•t)

If you integrate this expression over an interval of [0, t_now] and put this new V_0 into the homogeneous solution you end with the above solution (t_now = t)

rick-and-morty-drooling.gif

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

Please be aware that the content of this thread may be outdated and no longer applicable.

×
  • Create New...