Custom Components - MapleSim Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


An Overview of MapleSim Custom Components

 

Description

Creating Custom Components

See Also

Description

Custom components are specialized modeling components that you define using, for example, differential algebraic equations in Maple; an external C Code/Library definition; or Modelica code.

Custom components are useful when you require components that behave in a very specific manner and there are no components in the standard MapleSim component library which meet these requirements.

For more detailed information on custom components, including examples, see Chapter 3 of the MapleSim User Guide: Creating Custom Modeling Components

Creating Custom Components

You can create custom components using MapleSim templates, the Modelica Code Editor, and MapleSim apps. A standard MapleSim installation has the following templates to help you create custom components.:

• 

DAE Custom Component Template: If you are comfortable using Maple commands, you can use the DAE Custom Component Template to enter your model equations in Maple, then generate the corresponding MapleSim component. For more information, see Using the MapleSim DAE Custom Component Template or see Chapter 6 Section 5: Using the Custom Component Template in the MapleSim User Guide for examples of how to generate a MapleSim custom component using Maple commands.

• 

External C Code/Library Definition App: If you prefer to work in C code, use the External C Code/Library Definition app to generate a MapleSim Component from C code. For more information, see Using the External C Code/DLL Custom Component App.

• 

Modelica Code Editor: If you are familiar with the Modelica language, use the Modelica Code Editor to create MapleSim components. For more information, see Creating a Modelica Custom Component.

• 

Custom Port App: Generate custom ports that can be used by other custom components. For an example, see Chapter 6, Section 5 of the MapleSim User Guide: Custom Ports.

 

Templates are accessed by clicking Load a Maple Worksheet ( ) in the main toolbbar, and apps are found by clicking  Show Apps Manager ( ). Other MapleSim Add-on products may provide additional templates or apps for creating custom components.

 

Note: For general instructions on how to create a custom component from an template or app, see Creating a Custom Component from a Template or App.

See Also

Creating a Custom Component from a Template or App

Using the MapleSim DAE Custom Component Template

Creating a Modelica Custom Component

Editing a Custom Component

Creating a Hierarchy for a Model in the Local Components Tab

Trademark Attributions

MapleSim User Guide: Tutorials on Creating Custom Components from Maple Commands

MapleSim User Guide: Tutorial on Creating a MapleSim Custom Component From C Code