How can I model a fluid collection pan in SimScape, where spilled or sprayed fluid is gathered in a collection volume and then pumped into the system using an intake component

45 views (last 30 days)
I am building a 1D model of an IC engine’s oil-flow circuit to understand the flow distribution through the nozzles used to represent the physical system. The 1D model is being developed from the engine’s 3D design.
Now I need to model a pan system that collects all the sprayed, spilled, and drained oil so it can be fed back into the circuit through an intake with an appropriate flow resistance to represent the oil filter.
How can I implement a pan that collects all the spilled or sprayed fluid and then returns it into the system through an intake in Simscape? I am using the Thermal Liquid domain because the fluid properties and heat rejection vary with temperature.
  4 Comments
Yifeng Tang
Yifeng Tang on 10 Dec 2025 at 14:19
The "total Volume of the tank" warning or error is probably due to the tank parametrization and initial conditions. Do you have a simple model that you can share?
A constant volume chamber is a volume FILLED with the liquid with no volume to expand or shrink. It'll behave differently than your oil pan.
In most of Simscape blocks, including Tanks and Chambers, the direction of the flow doesn't matter when building a model. A, B, C, or D can all be used as both inlet and outlet, and can switch direction during the simulation. The solver will find out the direction of mass and energy flow based on pressure difference or flow source you put in.
Mekala Suhas
Mekala Suhas on 11 Dec 2025 at 9:00
Thank You for the prompt Reply.
I tried the Tank(TL) and I understand that port act as both inlet and outlet in MATLAB, So I put check valves to regulate the flow direction, but it instead caused a pressure spike, resulting in total model's failure.
I have been trying to correct it, but no progress yet. I even removed the check valves to see how they are acting and the flow direction changed. Instead of all the flow going out from A alone, the flow is going out from All but one port. Only one port(connected to the nozzle) is working as the inlet and pressure is now very high at that port and thus model is failing again.
I have changed the design slightly and have replaced my complicated systems with resistances for the simple model, Please refer and help me out

Sign in to comment.

Accepted Answer

Yifeng Tang
Yifeng Tang on 11 Dec 2025 at 15:07
A few things I modified:
(1) initial conditions of the two tank. the initial level was left "gray", i.e. default, but the default is 5 m with high priority. need to check it, and set the priority to "none". otherwise it's in conflict with the volume initial target, causing unexpected initial level.
(2) the initial temperature of the lower tank (pan?) is in conflict with the temperature source connected. I set the initial temperature in the tank to be consistent at 313.15K.
(3) the "intersection" tank is set up to require a pressure input signal. I don't think there is a good way to find out what it should be, and I also don't think this tank is necessary. If it's indeed just an intersection, i.e. a volume in the fluid circuit, you may use a constant volume chamber. If the volume isn't significant, just use ... nothing.
The model runs without error now, but whether it's simulating what you intended, I'll leave it to you to decide. Also, I would suggest that you only use check valves where there is indeed a check valve in the real system.
  3 Comments
Yifeng Tang
Yifeng Tang on 12 Dec 2025 at 14:40
You can do model comparison in MATLAB. It works just fine with Simulink models.
Whether the model matches your test results depends on whether you've built the model to represent your system AND whether the componenet parameters are consistent with the actual components. Unfortunately, I can't comment on either as I have no knowledge of your system or components.
Mekala Suhas
Mekala Suhas on 15 Dec 2025 at 6:59
I dont have a model to compare to, But I did try it with my expermental results.
I will see what I can do
Thank you for the invaluble help @Yifeng Tang
I was able to clear many issues thanks to you.

Sign in to comment.

More Answers (0)

Categories

Find more on Gas Library in Help Center and File Exchange

Products


Release

R2025b

Community Treasure Hunt

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

Start Hunting!