I am trying to simulate my system which consists of a cycle that slightly changes gas composition. I am trying to run that system from data input by simulink and I'm wondering if it possible to change my gas mixture components fractions during the simulation time, atm I'm forced to use a single point composition for the whole simulation time.
Solved! Go to Solution.
Can you give us more details about the librairies you are using?
Also, what kind of system are you trying to model?
I am using pneumatic library, at the moment I have a very simple model of a two orifices with a temperature input between them, which is a part of a bigger system. From simulink I input the boundary condition in this case its upstream/downstream temperature and pressure, and it would be nice if I could also input the gas mixture directly from my simulink control system.
Ok I understand your case a little bit better.
Unfortunately, you cannot change the mixture composition using pneumatic library, but there is a solution
If you use Gas Mixture library, you can use GMVS001 submodel.
In this submodel, you can define your mass fraction as long with the temperature and the pressure using signal library.
Then, with the Matlab co-simulation module, you can pilot the mass fraction from Matlab.
Thanks, I will give that a go and see how it works. From my short experience using gas mixing library, I noticed it run considerably slower then pneumatic library. For my system, simulation time is quite important as I'm trying to establish somewhat real time solution. However for this small model it shouldn't be a problem, Thank you very much for a such a quick response.