开始使用 Simscape 语言
使用 Simscape 语言,您可以将自定义组件定义为文本文件,并辅以参数化、物理连接和底层方程。您创建的组件可以重用 Simscape 提供的物理域定义,以确保您的组件与标准 Simscape 组件兼容。您也可以添加自己的物理域,并为这些域提供完整的组件库。有关典型工作流和任务的列表以及指向背景信息和示例的链接,请参阅Typical Simscape Language Tasks。
为了帮助您入门,您可以使用 sscnewfile
函数基于组件、域和函数的预定义模板库或基于现有 Simscape 文件创建新的 Simscape 文件。
函数
sscnewfile | Create new Simscape file populated by required and commonly used keywords (自 R2019b 起) |
主题
- What Is the Simscape Language?
Brief overview of the modeling language and its purpose.
- Model Linear Resistor in Simscape Language
Overview of how modeling in Simscape language works, using a linear resistor as an example.
- Typical Simscape Language Tasks
Overview of the typical Simscape language workflows, with links to background information and examples.
- Simscape File Types and Structure
Overview of the Simscape file types and structure.
- Creating Custom Components
Component types, file structure, high-level workflow.
- 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.
- Foundation Domain Types and Directory Structure
Domain definitions provided with the software.