Documentation Center

  • Trial Software
  • Product Updates

Foundation Domain Types and Directory Structure

Simscape Foundation libraries are organized in a package containing domain and component Simscape files. The name of the top-level package directory is +foundation, and the package consists of subpackages containing domain files, structured as follows:

- +foundation 
|-- +electrical 
| |-- electrical.ssc 
| |-- ...
|-- +hydraulic  
| |-- hydraulic.ssc 
| |-- ...
|-- +magnetic  
| |-- magnetic.ssc 
| |-- ...
|-- +mechanical  
| |-- +rotational 
| | |-- rotational.ssc 
| | |-- ...
| |-- +translational 
| | |-- translational.ssc 
| | |-- ...
|-- +pneumatic  
| |-- pneumatic.ssc 
| |-- ...
|-- +thermal  
| |-- thermal.ssc 
| |-- ...
|-- +thermal_liquid  
| |-- thermal_liquid.ssc 
| |-- ...

To use a Foundation domain in a component declaration, refer to the domain name using the full path, starting with the top package directory. The following example uses the syntax for the Simscape Foundation mechanical rotational domain:

r = foundation.mechanical.rotational.rotational; 

The name of the top-level package directory is +foundation. It contains a subpackage +mechanical, with a subpackage +rotational, which in turn contains the domain file rotational.ssc.

Was this topic helpful?