Simhydraulics: Pressure distribution over the entire circuit

3 views (last 30 days)
Hello,
How do I plot the distribution of pressure, or any parameter, over a section of the circuitry at an instant in time? For example, I would like to know the pressure distribution on the exhaust circuitry of a double acting cylinder 10 milliseconds after the piston has reached the end of its stroke. Many thanks,
Paraic

Accepted Answer

Sebastian Castro
Sebastian Castro on 12 Oct 2015
Edited: Sebastian Castro on 12 Oct 2015
If you know the exact time range you want, you can tell Simulink to log data only in that range. For example, suppose you already know the piston hits its limits at 9.99 seconds, so you want to log data from times 10 to 11 seconds. To do this, you can
  1. Go to Model Configuration Parameters (Ctrl+E) > Data Import/Export Pane
  2. Set the "Output options" to "Produce specified output only" ( doc link )
  3. Set the "Output times" to your time vector to, e.g., 10:0.001:11
If you want this to be "smarter", you can
  1. Place a motion sensor on the cylinder and measure its position. Put this through a 10 ms Transport Delay block since you want to start logging 10 ms AFTER the event.
  2. When the output of that block is greater than the max piston displacement, have Simulink output "true" and then feed that into an Enabled Subsystem.
  3. Inside the Enabled Subsystem block, pass in the measured pressure value into, e.g., a To Workspace block.
Since the To Workspace block will be inside a subsystem that runs only when its control signal is true, you will essentially log data only after the piston hits its maximum displacement.
Now, if you want additional logic that STOPS logging after some time, you'd have to implement that as well...
- Sebastian
  7 Comments
Sebastian Castro
Sebastian Castro on 16 Oct 2015
I would say that's a pretty strong indicator of a design flaw. I'd watch out for other dry nodes to see if that's the problem. Basically, look for any junctions in the model that do not have a fluid volume next to them. Fluid volume comes from volume chambers and cylinders.
The flow discharge coefficient is basically an empirical "fudge-factor" explaining the difference between the actual orifice and an ideal one. I like the Wikipedia explanation of it:
https://en.wikipedia.org/wiki/Discharge_coefficient
If you transpose the equation to solve for the pressure drop, you basically see that the smaller the discharge coefficient, the bigger the pressure drop across the orifice -- or, in other words, the less ideal the orifice is.
A discharge coefficient of 1 would be an ideal orifice, and 0 would be a solid wall inside your pipe :)
Paraic OKelly
Paraic OKelly on 22 Oct 2015
In fact, it wasn't an issue with convergence. I was logging all block simulation statistics and had not enough RAM so results were never displayed nor was I able to access logged data. By logging only the blocks of interest I was able to run with solver ode15s without issue. I believe that was the problem anyway.

Sign in to comment.

More Answers (0)

Products

Community Treasure Hunt

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

Start Hunting!