Dynamic calculating of kinematic viscosity
15 views (last 30 days)
Hello, I'm working a lot with the hydraulic componets from the simscape library and I want my models to be able to calculate the changes of the kinematic viscosity during the simulation. I'm coming from AMESim and my idea is to build something similar. I would like to supply tables to my model, where are measured values available (density, kinematic viscosity as a function of the local pressure). These tables should be accessable for every single component that calculates its functions with concerning viscosity and density of the local pressure. Is this possible? Can I change the calculation inside the hydraulic domain? Is the source code of the hydraulic domain accessbale for me?
Yifeng Tang on 19 Aug 2022
The source code of all Simscape foundation library blocks are available, including the hydraulic domain. I can verify back to the 2018b version but not sure about earlier ones. The parameter dialog box has a link to the source code for each block (.ssc file).
To make certain fluid properties as a function of pressure, you may define property lookup tables in the domain definition, and use the "tablelookup" function whenever appropriate to get the local fluid property. There are plenty of such examples in the source code of the thermal liquid (TL) domain.