物理单位
Simscape™ 软件附带一个标准单位库,您可以根据需要定义其他单位。您可以在模块对话框中指定单位和参数值,Simscape 单位管理器会在求解物理网络时执行必要的单位转换运算。Simscape 模块支持标准测量系统。默认模块单位为米千克秒 (MKS) 公制单位。
函数
pm_adddimension | Adds new dimension to unit registry |
pm_addunit | Add new unit to unit registry |
pm_getdimensions | Get information about all dimensions in unit registry |
pm_getunits | Get information about all units in unit registry |
simscape.computationalUnit | Determine computational unit for commensurate units (自 R2021b 起) |
simscape.isCommensurateUnit | Check whether units are commensurate (自 R2021b 起) |
simscape.mustBeCommensurateUnit | Validate that units are commensurate (自 R2021b 起) |
对象
simscape.Value | Create value with unit (自 R2021b 起) |
simscape.Unit | Represent unit of measure without an associated value (自 R2021b 起) |
主题
- How to Work with Physical Units
General principles of working with physical units in Simscape modeling environment.
- How to Specify Units in Block Dialogs
Using physical units in Simscape blocks.
- Unit Definitions
List of default physical units in the Simscape unit registry.
- Thermal Unit Conversions
Specifics of affine unit conversion applicable to thermal units.
- How to Apply Affine Conversion
When you specify affine units for an input temperature signal, it is important to consider whether you need to apply affine conversion.
- Angular Units
Special treatment of angular units.
- Units for Angular Velocity and Frequency
Special treatment of frequency units.
- Working with Simulink Units
Ensure consistent units specification on Simulink® signals connected to Simscape physical networks.
- Working with simscape.Value and simscape.Unit Objects
Use MATLAB® interface to manipulate physical values with units.