Borrar filtros
Borrar filtros

How can i parameter constant volume chamber (G) with inlets and oulets on simscape/simulink ?

11 visualizaciones (últimos 30 días)
Hi everyone,
i want to use gas chambers just to take into account volume effect on a gas circuit. So i need chambers with inlets and outlets. But the constant volume chamber on simscape gas domain have just inlets.
I wanted to know how can i use this block with inlets and outlets.
I tried to combine those chambers with controlled volumetric flow rate source on gas domain. It helps to ensure the gas's flow direction but not to discharge the chamber of a volumetric flowrate. Cause even if i give a negative value to the V port signal, it will just change the flow direction from port B to port A.
What would you have done ? Here an image to let you see.
Thanks a lot for your help.

Respuestas (1)

Yifeng Tang
Yifeng Tang el 1 de Jul. de 2022
Hi Lina,
Simscape applies the pradigm of "acausal" modeling, meaning there is not a prescribed causality when the model is being built. In your case, it means you don't need to specify which one is inlet and which is outlet for this chamber. Either can be inlet or outlet, depending on the direction of flow and pressure differences during the simulation.
This applies to the source block as well. If you send a negative flow to the V port, it is mathematically equivalent to flipping the direction of A/B ports and sending a positive flow to V. No need to enforce which one is inlet or outlet.

Categorías

Más información sobre Gas Models en Help Center y File Exchange.

Productos


Versión

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by