MapleSim - MapleSim Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : MapleSim : MapleSim Application Programming Interface : Deprecated Commands : MapleSim/Export(deprecated)

MapleSim

  

Export(deprecated)

  

generates C library procedures from a continuous MapleSim model or a list of equations

 

Calling Sequence

Parameters

Returns

Options

Description

Calling Sequence

Export (system, in_vars, out_vars, ModelName, param_opts)

Parameters

system

-

list; model equations

in_vars

-

list; input variables with respect to time

out_vars

-

list; output variables with respect to time

opts

-

(optional) equation(s) of the form option = value; specify options for Export

Returns

• 

string

Options

• 

initialconditions = list(equation)

  

Specifies the initial values of the states in the system.

• 

parameters = list(equation)

  

Specifies the values of parameters in the system during initialization.

• 

tvar = name

  

Defines the time variable used in the procedure. The default value is set to the variable t.

• 

simplify =  Or(`truefalse`, `tryhard`)

  

Specifies whether optimization is used to generate the C library to improve the simulation speed by using more memory to save intermediate variables. output_type =  Or(`separated`, `single`)

  

Specifies the behavior of the output of the C integration procedure. With the default setting output_type = separated, the procedure generates two C procedures: one for the state derivatives and the other for the output variables. With the option output_type = single, the procedure only generates one C procedure that handles both states.

Description

• 

Important: The Export command has been deprecated.

• 

The Export command returns a string that contains a library of all the necessary C procedures, which allow you to simulate a continuous system using a solver that you provide. Note: The library does not provide solver routines or a main routine to compute the iteration.

  

Before the functions are generated, the system attempts to perform index 1 reduction to obtain an ordinary differential equation (ODE) system to reduce the time required to compute the system.

  

You can generate two types of C library functions. The first type evaluates all of the state and output variables in one procedure. This method makes the code easier to implement; however, you must keep track of the state variables. The second type evaluates the variables in two procedures: one procedure for the state variables and another for the output variables. This method does not require you to keep track of the variables.

  

The input and output variables must be functions with respect to time, for example, y(t) and u(t).

The options parameters are optional parameters of the form option = value, where option is one of the names listed below. These are keyword parameters; the left side of the equation is the keyword and the right side is the value. Each keyword parameter has a default value that is assigned if the parameter is not passed.

See Also

dsolve

MapleSim

 


Download Help Document

Was this information helpful?



Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam