simple liquid spraying circuit
19 次查看(过去 30 天)
显示 更早的评论
I'm an engineering student seeking help for a project (I have very limited experience with Matlab/Simulink)
I am trying to replicate through Simulink a simple spraying system consisting of:
- A tank where a liquid is initially stored
- 2 outlets coming out of the tank where tubes,valves,etc are allocated in order for the liquid to flow
- a spraying outlet per each path
I would need to monitor
- pressure of the liquid flowing from the tank
- flow rate
- How long would it take for the tank to be empty
I identified some of the blocks that I could use for this circuit but when they're connected and simulated, it just won't work (potentially because of lack of experience on Simulink).
Please help if you can! Thank you in advance
0 个评论
采纳的回答
Jon
2020-8-28
编辑:Jon
2020-8-28
I would suggest thinking about it like this.
Start with an integrator to represent the tank. The tank level is the integral of the in flow minus the out flow. So make an integrator that integrates the difference between those two signal. The inflow (if any) is probably an independent input and could come from some kind of source block. Then work backward to get the out flow. The out flow is the sum of the flows through each spray nozzle, so you need a summer to sum up the individual flows. Each flow can be found knowing the pressure differential across the nozzle. So for each nozzle make a block (subsystem) that can convert an input pressure differential to a flow (you'll need to figure out the details of what's in there but it's just an algebraic relationship, no integrators). Now you have to keep working backward to figure out the upstream pressure. This is probably the tank pressure minus any piping losses. These losses are a function of the spray flow rate. So make a block (subsystem) that captures this relationship. The input to this block is the flow rate. You have the flow rate as the output to one of your previous blocks so you can wire that back. Then use a summer with a plus and minus to subtract the pressure loss from the tank pressure. It will have as inputs the tank pressure, and the pressure drop you calculated in your previous block. Finally you need the tank pressure. This is just a function of the tank level. So make a little subsystem to compute tank pressure as a function of tank level (again a relatively simple algebraic function, e.g. p = rho*g*h), The output of this block gets wired to your piping loss block and you are done.
So the idea is you start somewhere in your system and just make a block that computes some output that you will need in terms of some inputs. If you don't have all of the inputs yet don't worry, just leave it disconnected. Continue to work your way backwards to calcuate the unknow signals ,until you have values for all of the signals you need and they are all connected up. I like to start with integrators as the outputs of these are the system states, In this case there was just the tank level, so I started there.
2 个评论
Jon
2020-9-1
Hi Ilyass,
It looks like you are using Simscape Fluids. This is a higher level modeling tool which provides a lot of functionality for modeling fluid circuits. Unfortunately I don't have this product on my license, and have had no experience using it.
The approach I outlined would allow you to model a spray system with a simple "first principles" modeling approach, using only standard Simulink blocks.
I assume that since you have Simscape Fluids you want to continue with that approach. You can google for tutorials on that which would probably give you a good place to get started for example https://www.mathworks.com/videos/modeling-a-hydraulic-actuation-system-68833.html
If as you seem to indicate, you know nothing about Simulink I would actually suggest you start with the Simulink On Ramp https://www.mathworks.com/products/simulink/getting-started.html
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Upgrading Hydraulic Models to Use Isothermal Liquid Blocks 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!