Foundation and Custom Domains
Simscape software comes with several predefined domains, such as mechanical translational, mechanical rotational, electrical, and so on. These domains are included in the Foundation library, and are the basis of Simscape Foundation blocks, as well as those in Simscape add-on products (for example, Simscape Fluids™ or Simscape Electrical™ blocks). If you want to create a custom component to be connected to the standard Simscape blocks, use the Foundation domain definitions. For a complete listing of the Foundation domains, see Foundation Domain Types and Directory Structure.
You need to define a new custom domain only if the Foundation domain definitions do not satisfy your modeling requirements. For more information, see When to Define a New Physical Domain.
Language Syntax
domain | Domain model keywords |
equations | Define component or domain equations |
parameters | Declare domain or component parameters |
variables | Declare domain or component variables |
Topics
Custom Domains
- When to Define a New Physical Domain
A physical domain provides an environment, defined primarily by its Across and Through variables, for connecting the components in a Physical Network. - How to Define a New Physical Domain
To define a new physical domain, you must declare the Through and Across variables associated with it. - Simscape File Types and Structure
Overview of the Simscape file types and structure. - Declaring Domains and Components
Declaration section of domain and component files: purpose, definitions, rules, member summaries. - Declare Through and Across Variables for a Domain
In a domain file, you have to declare the Through and Across variables associated with the domain. - Define Relationship Between Component Variables and Nodes
How to connect Through and Across variables declared in a component file to the domain Through and Across variables. - Declare a Mechanical Rotational Domain
The following file, namedrotational.ssc
, declares a mechanical rotational domain, with angular velocity as an Across variable and torque as a Through variable. - Working with Domain Parameters
The purpose of domain parameters is to propagate the same parameter value to all or some of the components connected to the domain. - Domain Equations
Specify additional equations to propagate to all the components that have nodes of the corresponding domain type. - Attribute Lists
Model attributes and member attributes used in Simscape language.
Foundation Domains
- Foundation Domain Types and Directory Structure
Domain definitions provided with the software. - Electrical Domain
Electrical domain definition provided with the software. - Three-Phase Electrical Domain
Three-phase electrical domain definition provided with the software. - Gas Domain
Gas domain definition provided with the software. - Hydraulic Domain
Use the isothermal liquid domain to model hydraulic systems where the working fluid temperature remains constant during simulation. Hydraulic domain definition is provided with the software for compatibility reasons. However, it can be removed in a future release. - Isothermal Liquid Domain
Isothermal liquid domain definition provided with the software. - Magnetic Domain
Magnetic domain definition provided with the software. - Mechanical Rotational Domain
Mechanical rotational domain definition provided with the software. - Mechanical Translational Domain
Mechanical translational domain definition provided with the software. - Moist Air Domain
Moist air domain definition provided with the software. - Moist Air Source Domain
Moist air source domain definition provided with the software. - Pneumatic Domain
Use the gas domain to model pneumatic systems. Pneumatic domain definition is provided with the software for compatibility reasons. However, it can be removed in a future release. - Thermal Domain
Thermal domain definition provided with the software. - Thermal Liquid Domain
Thermal liquid domain definition provided with the software. - Two-Phase Fluid Domain
Two-phase fluid domain definition provided with the software.