开始使用 Simscape 语言
用于扩展 Simscape™ 模块库的基本方法和最佳做法
使用 Simscape 语言,您可以将自定义组件定义为文本文件,并辅以参数化、物理连接和底层方程。您创建的组件可以重用 Simscape 提供的物理域定义,以确保您的组件与标准 Simscape 组件兼容。您也可以添加自己的物理域,并为这些域提供完整的组件库。有关典型工作流和任务的列表以及指向背景信息和示例的链接,请参阅典型 Simscape 语言任务。
为了帮助您入门,您可以使用 sscnewfile
函数基于组件、域和函数的预定义模板库或基于现有 Simscape 文件创建新的 Simscape 文件。
函数
sscnewfile | Create new Simscape file populated by required and commonly used keywords |
主题
- 什么是 Simscape 语言?
简要概述建模语言及其目的。
- Model Linear Resistor in Simscape Language
Overview of how modeling in Simscape language works, using a linear resistor as an example.
- 典型 Simscape 语言任务
典型 Simscape 语言工作流的概述,其中包含指向背景信息和示例的链接。
- 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 域类型和目录结构
软件附带的域定义。