Download MOSAIC User Guide

Transcript
62
Evaluation
• Load the equation system into the Evaluation Editor and select the
tab Variable Specification
• Declare z as a state variable by moving it to the table named State
Variables (to do so, select z in the table Disign Variables and press
[<<]).
• Specify the values for the design variables and the state variables in
the corresponding table cells.
• Specify 1e − 7 as the start value and 1e7 as the end value of the
differential variable t in the corresponding fields at the right hand side
of the user interface.
• Go to the tab named Evaluation and make sure that the language
specificator C++ BzzMath DAE Obj is activated in Code Gen in the
Execute section. Press [Generate Code] and then [Evaluate] to solve
the equation system on the modeling server.
• Select the tab Results and in the now visible section select the tab
DE Plot Results and tick the box for the variable x in the column
Plot of the variables table.
• On the lower right hand side of the user interface, below X-Axis Scale
select Logarithmic.
• Activate the graph of the variable z by ticking its box in the variables
table.
• HINT: If a selected graph does not show after ticking the corresponding
box, unselect it and then select it again.
• Activate the graph of the variable y. The values of y are too small
to visualize changes in the same graph with x and z without any
adjustments. To make the changes of y over t visible in the graph,
specify a scaling factor of 1e4 in the column Resizing in the row of y.
Here is the end of this tutorial section. You have learned how to work
with differential equations and how to use the plotting functionality of MOSAIC.