hi, just looking for a bit of contextual help with simscape fluids and the pipe block.
mainly the elevation gain parameter:
am i right in my assumptions that the elevation gain from port A to B is in laymans terms "how high vertically is port B from port A"?
if so, how does it factor in a ramping height? because that would affect flow (ramp vs straight up)?
i'm trying to model a cooling system that has some vertical pipes from a manifold and i thought that was how it worked, effectively the physical head distance from inlet to outlet, so if it was going doing and inlet was A, it would be -x (m) from A to B?
i hope my odd question makes sense? the info page was confusing me because it was a bit vague on this particular parameter...

1 commentaire

Torsten
Torsten il y a environ 16 heures
Modifié(e) : Torsten il y a environ 16 heures
If A is at height 6 m and B is at height 7 m (measured from some fixed reference height) and the elevation gain specification is constant, then the elevation gain from A to B is 1 m.
If A is at height 7 m and B is at height 6 m (measured from some fixed reference height) and the elevation gain specification is constant, then the elevation gain from A to B is -1 m.
Does this anwer your questions ?

Connectez-vous pour commenter.

 Réponse acceptée

Yifeng Tang
Yifeng Tang le 4 Août 2026 à 13:52

0 votes

Hi @Seth,
Yes, that term is indeed ""how high vertically is port B from port A". Mathematically, it's a rho*g*h term added to the pressure at A, meaning A end is lower. If you have multiple segments in this pipe, the rho*g*h term is divided accordingly.
ramp vs straight up: well, it's just a rho*g*h term. So there is no difference I assume. One crazy thing I found is that the block allows the elevation change to be greater than the pipe length.
In short, if B is at a higher point than A, the elevation is positive.
One thing to pay attention to: if your liquid network forms a closed circuit, make sure the total elevation around the loop sums to zero. Otherwise you'll have an infinitely supply of gravitational energy (which would be GREAT!). Also, check out this documentation page if you close your cooling loop.

1 commentaire

Seth
Seth il y a environ 21 heures
hi Yifeng, thanks for the confirmation!! that is certainly an interesting point about the summing to 0, it does raise an interesting question though, my cooling network is modelled after a physical existing network and i wonder if those differences in height actually do sum to 0...

Connectez-vous pour commenter.

Plus de réponses (0)

Produits

Version

R2026a

Question posée :

le 3 Août 2026 à 13:32

Modifié(e) :

le 5 Août 2026 à 10:33

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by