SimplifyModel - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


BlockImporter

  

SimplifyModel

  

simplify the equations of a BlockImporter system record

 

Calling Sequence

Parameters

Options

Description

Examples

Calling Sequence

SimplifyModel( sys, opts )

Parameters

sys

-

record; system data

opts

-

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

Options

• 

inplace = truefalse

  

If true, the simplified equations replace the original equations in sys. If false, a new record is created and the original record is not modified. The default is false.

• 

method = default or tryhard

  

Selects the method used to simplify the equations. The default is default.

Description

• 

The SimplifyModel command simplifies the equations of a BlockImporter data structure.

• 

The sys parameter is a record of the data structure, which is defined in BlockImporter[datastructure].

Examples

withBlockImporter:

Create an example of an imported data structure.

sysBlockImporter:-Example

sysrecordequations,initialeqs,inputvars,notes,outputvars,parameters,procs,sourceeqs,statevars

(1)

PrintSummarysys

Equations [24]:

State Variables [3]:

Initial Equations [3]:

Source Equations [2]:

Input Variables [2]:

Output Variables [1]:

Parameters [2]:

u10,1,1=y2,1,1,u2,2,1=y3,1,1,u2,1,1=y4,1,1,u8,1,1=y6,1,1,u9,1,1=y7,1,1,u4,1,1=y8,1,1,u3,1,1=y8,1,1,u11,1,1=y9,1,1,u9,2,1=y10,1,1,u5,1,1=y11,1,1,u8,2,1=y11,1,1,y2,1,1=u2,1,1+u2,2,1,y3,1,1=u3,1,1,Dx4,1=u4,1,1,y4,1,1=x4,1,SinkScope,5,1,1=u5,1,1,y6,1,1=SourceStep,6,1,y7,1,1=SourceStep,7,1,y8,1,1=u8,1,1u8,2,1,y9,1,1=u9,1,1+u9,2,1,Dx10,1=K0,a1x10,1+u10,1,1,y10,1,1=x10,1,Dx11,1=K0,a2x11,1+u11,1,1,y11,1,1=x11,1

x4,1,x10,1,x11,1

x4,10=0,x10,10=0,x11,10=0

SourceStep,6,1=0t<11otherwise&comma;SourceStep,7,1=0t<40.1otherwise

SourceStep,6,1&comma;SourceStep,7,1

SinkScope,5,1,1

K0,a1=2.&comma;K0,a2=1.

(2)

SimplifyModelsys&comma;inplace

sys

(3)

PrintSummarysys

Equations [4]:

State Variables [3]:

Initial Equations [3]:

Source Equations [2]:

Input Variables [2]:

Output Variables [1]:

Parameters [2]:

Dx4,1=SourceStep,6,1SinkScope,5,1,1&comma;Dx10,1=K0,a1x10,1+Dx4,1+x4,1&comma;Dx11,1=K0,a2x11,1+SourceStep,7,1+x10,1&comma;SinkScope,5,1,1=x11,1

x4,1&comma;x10,1&comma;x11,1

x4,10=0&comma;x10,10=0&comma;x11,10=0

SourceStep,6,1=0t<11otherwise&comma;SourceStep,7,1=0t<40.1otherwise

SourceStep,6,1&comma;SourceStep,7,1

SinkScope,5,1,1

K0,a1=2.&comma;K0,a2=1.

(4)

See Also

BlockImporter

BlockImporter[datastructure]