Nodal analysis of simple hydraulic system

In summary, nodal analysis is a method used to analyze and solve complex systems, such as hydraulic systems, by breaking them down into smaller parts and applying conservation of mass and energy equations at each node. Its advantages include a systematic approach and a more accurate understanding of system behavior, but it can become complex and time-consuming and does not account for dynamic changes. There are also software programs available for nodal analysis of hydraulic systems, both commercial and open-source.
  • #1
farid83
1
0
Hi,

I'm trying to model a simple hydraulic system using python programming language and have difficulty with math. It's basically 3 tanks interconnected with pipes (see attached picture).

Tanks are filled with some kind of fluid and are under different pressures (initial pressures P1, P2, P3). We assume that initially pipes are closed and at some point we open them and the system will reach equilibrium after a while. I've just derived following formulas for the tank pressures (let's call them node values) and flow rates (let's call them branch currents).

P1 = (1/B) * (V1'/V1)
P2 = (1/B) * (V2'/V2)
P3 = (1/b) * (V3'/V3)

where B is compressibility and V[n]' is additional volume inside the tank due to compressibility and pressure.

F1 = k1 * sign(P2-P1) * √abs(P2-P1)
F2 = k2 * sign(P3-P2) * √abs(P3-P2)

where k[n] is some constant coefficient. sign(X) is simple operator to find the sign of the operand and returns -1 or 1. abs(x) gives absolute value of operand.

V1' = V1' - (F1 * t)
V2' = V2' - (F1 * t) - (F2 * t)
V3' = V3' - (F2 * t)

t is time.

At this stage physically realistic modeling of the system is not important. I'm just trying to make sure that model's behaviour will match formulas given above.

My first approach was to first find V1', V2', V3' from initial pressures, then find flowaretes F1, F2, then recalculate V1', V2', V3' with time passed taken into account, recalculate P1, P2, P3 and then repeat the steps. Of course this gives me wrong results because no matter how small steps of t you take you end up increasing error in calculations due to neglecting the fact that flowrates themselves are based on pressures and vice versa. In summart this is too simple approach to solve the problem. I'm not very good on calculus side so want to ask you guidance on topics I need to study to get and idea about proper solution.

Thanks!
 

Attachments

  • node.png
    node.png
    897 bytes · Views: 439
Physics news on Phys.org
  • #2
Attached image:</code><img src="https://i.stack.imgur.com/3qhDw.png" alt="enter image description here">You will need to use a numerical integration method for this problem. There are several different methods you can use, but the most common ones are the Euler method and the Runge-Kutta method. Both of these methods involve breaking up the equations into small steps (called time steps), and then calculating the variables at each step based on their values from the previous step. You will also need to use a numerical optimization method to find the optimal parameters for your system, such as the coefficient k1 and k2. This will involve optimizing the parameters so that the system's behavior matches the equations you have derived.You can find more information about numerical methods and optimization techniques on the internet or in textbooks. Good luck!
 

FAQ: Nodal analysis of simple hydraulic system

1. What is nodal analysis?

Nodal analysis is a method used in engineering and physics to analyze and solve complex systems by breaking them down into smaller, more manageable parts. In hydraulic systems, nodal analysis is used to determine the flow rates and pressures at different points in the system.

2. How does nodal analysis work in a hydraulic system?

In a hydraulic system, nodal analysis involves creating a node at each point where flow splits or merges, and applying the conservation of mass and energy equations to solve for the unknown flow rates and pressures at each node.

3. What are the advantages of using nodal analysis in hydraulic systems?

Nodal analysis allows for a systematic approach to solving complex hydraulic systems, making it easier to identify and isolate any issues or inefficiencies. It also provides a more accurate and comprehensive understanding of the system's behavior.

4. What are the limitations of nodal analysis in hydraulic systems?

Nodal analysis can become increasingly complex and time-consuming as the number of nodes and components in the system increases. It also assumes steady-state conditions and does not account for any dynamic changes in the system.

5. Are there any software programs or tools available for nodal analysis of hydraulic systems?

Yes, there are several software programs and tools specifically designed for nodal analysis of hydraulic systems. These include commercial programs like PIPE-FLO and AFT Fathom, as well as open-source software like EPANET and DWSIM.

Back
Top