주요 콘텐츠

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

시뮬레이션 및 분석

시뮬레이션 실행, 모델 시각화, 기구학 분석 실행

블록 다이어그램을 업데이트하여 멀티바디 모델을 조립하고 초기 구성을 시각화합니다. 시각화 결과는 멀티바디 탐색기(Multibody Explorer)에서 열립니다. 모델을 시뮬레이션하면 대화형 애니메이션이 재생됩니다. 물리 모델에 적합한 솔버(예: daessc)를 선택하고, 시뮬레이션 중 예상되는 가장 빠르고 의미 있는 변화를 캡처할 수 있도록 최대 시간 스텝을 충분히 작게 지정해야 합니다.

애니메이션을 캡처하려면 카메라 관리자(Camera Manager)를 열어 동적으로 움직이는 카메라를 추가합니다. 동적 카메라는 키프레임 카메라 또는 추적 카메라의 두 가지 유형이 있습니다. 키프레임 카메라는 멀티바디 탐색기(Multibody Explorer)에서 대화형 방식으로 생성된 시점 사이를 이동합니다. 추적 카메라는 모델 내 프레임에 연결되어 해당 프레임을 조준합니다. 애니메이션을 비디오 형식으로 녹화하려면 비디오 생성기(Video Creator) 또는 smwritevideo 함수를 사용하십시오.

KinematicsSolver 클래스를 사용하여 모델의 기구학 표현을 만들고, 기구학 문제를 정식화하여 해를 구할 수 있습니다. KinematicsSolver 객체에는 모델에서 사용 가능한 모든 조인트 변수가 포함되어 있습니다. 프레임 변수로 이를 보완하고, 조인트 변수와 프레임 변수를 모두 분석을 위해 목표값, 추정값, 출력값으로 할당합니다.

멀티바디 탐색기(Multibody Explorer)Visualize and explore multibody models
카메라 관리자(Camera Manager)Create, edit, and delete dynamic cameras
비디오 생성기(Video Creator)Create and configure videos of multibody animations

함수

모두 확장

simscape.multibody.tirreadRead TIR file (R2021b 이후)
smwritevideoConfigure and create multibody animation videos
smwritevideoConfigure and create multibody animation videos

어셈블리 표현

KinematicsSolverSolve kinematics problems for a multibody model

옵션 구성

setVariableUnitChange physical unit of kinematic variable

변수 나열

frameVariablesList kinematic variables associated with frame pairs
initialGuessVariablesList all kinematic variables assigned as initial guesses
jointVelocityVariablesList all kinematic variables associated with joint velocities
jointPositionVariablesList all kinematic variables associated with joint positions
outputVariablesList all kinematic variables assigned as outputs
targetVariablesList kinematic variables assigned as targets

변수 추가

addFrameVariablesCreate kinematic variables from select frame pair in KinematicsSolver object
addInitialGuessVariablesAssign kinematic variables from KinematicsSolver object as guesses
addOutputVariablesAssign kinematic variables from the KinematicsSolver object as outputs
addTargetVariablesAssign kinematic variables from KinematicsSolver object as targets

변수 지우기

clearFrameVariablesDrop all frame variables from the KinematicsSolver object
clearInitialGuessVariablesDrop all guess variables from the KinematicsSolver object
clearOutputVariablesDrop all output variables from the KinematicsSolver object
clearTargetVariablesDrop all target variables from the KinematicsSolver object

변수 제거

removeFrameVariablesDrop select frame variables from the KinematicsSolver object
removeInitialGuessVariablesDrop select guess variables from the KinematicsSolver object
removeOutputVariablesDrop select output variables from the KinematicsSolver object
removeTargetVariablesDrop select target variables from the KinematicsSolver object

분석 실행

generateCodeGenerate C code to run kinematic analysis on KinematicsSolver object
solveRun kinematic analysis for KinematicsSolver object

해에 대한 분석 시각화

closeViewerClose the Kinematics Solver Viewer window
viewSolutionOpen Multibody Explorer to visualize KinematicsSolver solution
simscape.multibody.DynamicsResultDynamics Results of Multibody Models (R2024a 이후)

도움말 항목

기본 시각화

  • Enable Multibody Explorer
    Set the model configuration parameters to ensure that Multibody Explorer opens automatically on model update or simulation.
  • Manipulate the Visualization Viewpoint
    Select a standard view, set the up-axis convention, and use mouse shortcuts to rotate, roll, pan, or zoom a model.
  • Using Operating Points to Initialize Multibody Models
    This example shows how to use operating points to initialize multibody models, specify the initial positions and velocities of the joints in a model, and start simulations of flexible bodies from their deformed states.
  • Update and Simulate a Model
    Workflow steps for updating and simulating a Simscape™ Multibody™ model.
  • Visualize a Model and Its Components
    Visualization is not only a central part of a multibody simulation, but also an essential tool in modeling bodies and verifying their shapes, sizes, frame placements, and colors. Here is an overview of the visualization utilities available in the Simscape Multibody environment and the roles they play in your modeling workflow.
  • Visualize Simscape Multibody Frames
    Use Multibody Explorer frame highlights and Graphic blocks to visualize frames.

고급 시각화

카메라 및 비디오 생성

  • Create a Dynamic Camera
    Use Camera Manager to create or edit a model visualization camera with a moving viewpoint.
  • Create a Model Animation Video
    Save an animation in video format using Video Creator or the smwritevideo function.
  • Visualization Cameras
    Distinction between dynamic cameras and the global camera. Camera Manager as a tool for creating dynamic cameras. Dynamic camera keyframe and tracking modes.
  • Working with Animation
    Review how model animations work and explore the basic controls available for animations.

문제 해결

추천 예제