주요 콘텐츠

일반적인 Simscape 언어 작업

R2026b

Simscape™ 블록 라이브러리에는 밸브, 저항기, 스프링 같은 엔지니어링 컴포넌트를 나타내는 다양한 블록이 포함되어 있습니다. 하지만 이러한 사전 구축된 블록만으로는 특정 엔지니어링 요구 사항을 충족하기에 충분하지 않을 수 있습니다. 기존 블록 라이브러리를 확장해야 하는 경우 Simscape 언어를 사용하여 사용자 지정된 컴포넌트나 새로운 물리 도메인을 텍스트 파일로 정의할 수 있습니다. 그런 다음 텍스트 컴포넌트를 모델 다이어그램에서 사용할 수 있는 추가 Simscape 블록 라이브러리로 변환합니다.

아래 표에는 일반적인 작업과 함께 배경 정보 및 예제에 대한 링크가 나열되어 있습니다.

작업배경 정보예제
방정식을 기반으로 사용자 지정 컴포넌트 모델 만들기

Creating Custom Components

Declaring Domains and Components

Defining Component Equations

Model Linear Resistor in Simscape Language

Declare a Spring Component

Mechanical Component — Spring

Electrical Component — Ideal Capacitor

No-Flow Component — Voltage Sensor

Grounding Component — Electrical Reference

다른 컴포넌트로 구성된 사용자 지정 컴포넌트 모델 만들기

About Composite Components

Declaring Member Components

Parameterizing Composite Components

Specifying Component Connections

Composite Component — DC Motor

Simscape 컴포넌트 파일로부터 사용자 지정 블록 생성하기

Selecting Component File Directly from Block

Customizing the Block Name and Appearance

Deploy a Component File in Block Diagram

Customize Block Display

Simscape 라이브러리에 사용자 지정 블록 라이브러리 추가하기

Building Custom Block Libraries

Using Source Protection for Simscape Files

Customizing the Library Name and Appearance

Customizing the Block Name and Appearance

Create a Custom Block Library

Customize Block Display

연관된 Through 및 Across 변수를 포함하는 새 도메인을 정의한 다음, 이를 사용자 지정 컴포넌트에서 사용하기

When to Define a New Physical Domain

Declaring Domains and Components

Declare a Mechanical Rotational Domain

Propagation of Domain Parameters

도메인 전체에 적용되는 파라미터(예: 유체 온도)를 모델의 나머지 부분에 제공하는 컴포넌트 만들기

Working with Domain Parameters

Custom Library with Propagation of Domain Parameters

서로 다른 작동 모드들의 이산 집합을 특성으로 갖는 컴포넌트(예: 자동차 클러치) 만들기

Mode Chart Modeling

Switch with Hysteresis

참고 항목

도움말 항목