Here is a simple Simulink file to calculate the bulk modulus of oil-air mixture.
The theory is explained in my book:
M Galal Rabie, Fluid power Engineering, McGraw-Hill, NY, 2009, pp
Galal (2021). Bulk Modulus of oil (https://www.mathworks.com/matlabcentral/fileexchange/26763-bulk-modulus-of-oil), MATLAB Central File Exchange. Retrieved .
Not working for me :(
Warning: The model 'Bulkofmix' does not have continuous states, hence Simulink is
using the solver 'VariableStepDiscrete' instead of solver 'ode45'. You can disable
this diagnostic by explicitly specifying a discrete solver in the solver tab of the
Configuration Parameters dialog, or by setting the 'Automatic solver parameter
selection' diagnostic to 'none' in the Diagnostics tab of the Configuration Parameters
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!