Main Content

이 번역 페이지는 최신 내용을 담고 있지 않습니다. 최신 내용을 영문으로 보려면 여기를 클릭하십시오.

구성요소 방정식

방정식을 작성하여 사용자 지정 구성요소 동작 표현

이 방정식 섹션의 목적은 구성요소의 변수, 파라미터, 입력, 출력, 시간 및 이들 각 항목의 시간 도함수 사이의 수학적 관계를 설정하는 것입니다. 이 페이지에 나열된 항목은 구성요소 방정식과 관련 작업을 정의하는 방법에 대한 자세한 정보를 제공합니다.

언어 구문

assertProgram customized run-time errors and warnings
delayReturn past value of operand
derReturn time derivative of operand
equationsDefine component or domain equations
functionReuse expressions in component equations and in member declarations of domains and components
integPerform time integration of expression
intermediatesDefine intermediate terms for use in equations
tablelookupReturn value based on interpolating set of data points
timeAccess global simulation time
valueConvert variable or parameter to unitless value with specified unit conversion

도움말 항목

  • Defining Component Equations

    The purpose of the equations section in a component file is to establish the mathematical relationships between the variables, parameters, inputs, and outputs of the component, the simulation time, and the time derivatives of each of these entities.

  • Simple Algebraic System

    This example shows implementation for a simple algebraic system.

  • Use Simulation Time in Equations

    This example shows how you can access global simulation time from the equation section.

  • Using Conditional Expressions in Equations

    You can specify conditional equations by using if statements.

  • Using Intermediate Terms in Equations

    Textbooks often define certain equation terms in separate equations, and then substitute these intermediate equations into the main one.

  • Using Lookup Tables in Equations

    You can use the tablelookup function in the equations section of the Simscape™ file to interpolate input values based on a set of data points in a one-dimensional, two-dimensional, three-dimensional, or four-dimensional table.

  • Programming Run-Time Errors and Warnings

    Use the assert construct to implement run-time error and warning messages for a custom block.

  • Initial Equations

    Specify additional equations to be executed during model initialization only.

  • Simscape Functions

    Use Simscape functions to reuse expressions in equations and member declarations of multiple components.

  • Import Symbolic Math Toolbox Equations

    Example of using Symbolic Math Toolbox™ software to solve the physical equations, generate code in the format appropriate for the Simscape language equation section, and incorporate the generated code into the equation section of a component file.