Grundlagen- und benutzerdefinierte Domänen
R2026bDie Software Simscape wird mit mehreren vordefinierten Domänen bereitgestellt, z. B. mechanische Translation, mechanische Rotation und Elektrik. Diese Domänen sind in der „Foundation“-Bibliothek enthalten und bilden die Grundlage der „Foundation“-Blöcke von Simscape und der Blöcke in den Add-on-Produkten von Simscape (z. B. die Blöcke Simscape Fluids™ oder Simscape Electrical™). Wenn Sie eine benutzerdefinierte Komponente mit den Simscape-Standardblöcken verbinden möchten, verwenden Sie die Definitionen der Grundlagen-Domänen. Eine vollständige Liste der Grundlagen-Domänen finden Sie unter Foundation Domain Types and Directory Structure.
Sie müssen nur dann eine neue benutzerdefinierte Domäne definieren, wenn die Definitionen der Grundlagen-Domänen Ihren Modellierungsanforderungen nicht entsprechen. Weitere Informationen finden Sie unter When to Define a New Physical Domain.
Sprachsyntax
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 |
Themen
Benutzerdefinierte Domänen
- 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. - 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.
Grundlagen-Domänen
- Foundation Domain Types and Directory Structure
Domain definitions provided with the software. - Elektrische Domäne
Die Definition der elektrischen Domäne wird mit der Software geliefert. - 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. - Magnetic Domain
Magnetic 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. - 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.