Physical Units
Simscape™ software comes with a library of standard units, and you can define additional units, as needed. You specify the units along with the parameter values in the block dialogs, and Simscape unit manager performs the necessary unit conversion operations when solving a physical network. Simscape blocks support standard measurement systems. The default block units are meter-kilogram-second or MKS (SI).
Functions
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 (Since R2021b) |
simscape.isCommensurateUnit | Check whether units are commensurate (Since R2021b) |
simscape.mustBeCommensurateUnit | Validate that units are commensurate (Since R2021b) |
Objects
simscape.Value | Create value with unit (Since R2021b) |
simscape.Unit | Represent unit of measure without an associated value (Since R2021b) |
Topics
- 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.