MATLAB: How to model a time dependent “specific heat” in a simulink/simscape Gas Properties Block

Simscapesimulink

Is there a posibillity to read new parameters to a Gas properties block in simscape depending on other simscape subsystems at every timestep? I have to model a filling process with different gases to mix, what i basically do with different gas subsystems, but the parameter of the mixed gas flow depends on output, calculatet at every timestep.

Best Answer

While this would be challenging with the Gas domain, consider using the Moist Air domain. While the name is Moist Air, it is essentially a three-species gas domain which allows condensation in one of the species. One could specify the properties of the second gas as a Trace Gas and add appropriate sources. This would cause your overall fluid properties to change with changing concentrations.