Using Class SimControl.Cycle.Mixer
Being derived from the cycle simulation control class, this class indicates that the Mixer simulator is a cycle simulator.
When a Project Model is created, an object named Default is created for the user to supply input values that the cycle-driven simulation control mechanism is needed. The intrinsic attributes, defined in Class Cycle are explained in the SansGUI manuals. The attributes specific to Mixer are listed below.
Solver Type (iSolver): requests the simulator to use one of the following solution methods: 1) Naive Gauss Elimination, 2) LU Decomposition, and 3) Call MATLAB Engine. Both 1) and 2) use implementations of the corresponding algorithms written in either C/C++ or Fortran. The third method requires the user to have the MATLAB software from The Mathworks, Inc. With the exception of 1) Naive Gauss Elimination, the inverse matrix of the original constant matrix will be calculated for further analysis.
Time Increment (iTimeInc): indicates the time step for a model that contains variable sources. This is ignored if all the input sources to the model are constant and the simulation is run is limited to a single cycle.
Current Time (iCurTime): registers the simulated time from the beginning of the simulation (0). In this implementation, it is not reset to 0 before a new simulation run; therefore, the user may want to change the value to 0 right before clicking on the Run In-Process button in the Run toolbar. If not reset, the simulated time will start from what has been left off.
Number of Reactors (iNumReactor): counts the number of reactors in the user configured model in the Project Model. This field is updated by the simulator automatically during the initialization stage of a simulation run; therefore, the users do not have to count the number of reactors by themselves. However, the user may need to set it to 0 before a simulation run when, in some rare situations, the simulator cannot set it back to 0 for the next run.
None.
Although this class is defined, it is actually not used.
Mixer Example for SansGUI Version 1.0
Copyright © 2001-2003 ProtoDesign, Inc. All rights reserved.