Dynamic calculating of kinematic viscosity
9 次查看(过去 30 天)
显示 更早的评论
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?
Regards, Philipp
0 个评论
回答(1 个)
Yifeng Tang
2022-8-19
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.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Upgrading Hydraulic Models to Use Isothermal Liquid Blocks 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!