Foundation 域和自定义域
编写 Simscape™ 文件以表示自定义域并查看 Foundation 域定义
Simscape 软件带有几个预定义域,例如机械平移、机械旋转、电气等。这些域包含在 Foundation 库中,是 Simscape Foundation 模块以及 Simscape 附加产品中的模块(例如 Simscape Fluids™ 或 Simscape Electrical™ 模块)的基础。如果要创建要连接到标准 Simscape 模块的自定义组件,请使用 Foundation 域定义。有关 Foundation 域的完整列表,请参阅Foundation Domain Types and Directory Structure。
仅当 Foundation 域定义不满足建模需求时,才需要定义新的自定义域。有关详细信息,请参阅When to Define a New Physical Domain。
语言语法
domain | Domain model keywords |
equations | Define component or domain equations |
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. - 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 域
- 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.