Foundation 域和自定义域
R2026a编写 Simscape™ 文件以表示自定义域并查看 Foundation 域定义
Simscape 软件带有几个预定义域,例如机械平移、机械旋转、电气等。这些域包含在 Foundation 库中,是 Simscape Foundation 模块以及 Simscape 附加产品中的模块(例如 Simscape Fluids™ 或 Simscape Electrical™ 模块)的基础。如果要创建要连接到标准 Simscape 模块的自定义组件,请使用 Foundation 域定义。有关 Foundation 域的完整列表,请参阅Foundation 域类型和目录结构。
仅当 Foundation 域定义不满足建模需求时,才需要定义新的自定义域。有关详细信息,请参阅When to Define a New Physical Domain。
语言语法
domain | Domain model class definition |
equations | Define component or domain equations |
nodes | Define component nodes, that is, conserving ports of block |
parameters | Declare domain or component parameters |
variables | Declare domain or component variables |
主题
自定义域
- 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. - 声明机械旋转域
以下名为rotational.ssc的文件声明了一个机械旋转域,以角速度为势变量,以转矩为流变量。 - 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. - Composite Domains
Composite domains represent a bundle of connections, possibly of different types. Declare a composite domain as a hierarchy of other, primitive or composite, domains. - Attribute Lists
Model attributes and member attributes used in Simscape language.
Foundation 域
- Foundation 域类型和目录结构
软件附带的域定义。 - 电气域
软件附带的电气域定义。 - Three-Phase Electrical Domain
Three-phase electrical domain definition provided with the software. - Gas Domain
Gas domain definition provided with the software. - Isothermal Liquid Domain
Isothermal liquid domain definition provided with the software. - 磁域
软件附带的磁域定义。 - Mechanical Angle-Based Rotational Domain
Angle-based rotational domain definition provided with the software. - Mechanical Position-Based Translational Domain
Position-based 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 Liquid Domain
Thermal liquid domain definition provided with the software. - Two-Phase Fluid Domain
Two-phase fluid domain definition provided with the software.