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)
Show older comments
Mekala Suhas
on 1 Dec 2025
Commented: Mekala Suhas
on 15 Dec 2025 at 6:59
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
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.
Accepted Answer
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
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.
More Answers (0)
See Also
Categories
Find more on Gas Library in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!