Добавил:
Upload
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз:
Предмет:
Файл:Магистры Термодинамическое подобие / Программы / CoolPack2004 / Refrigerant / Model and programs / WinDali.pdf
X
- •Disclaimer
- •Contact information
- •Version information
- •Changes in version 3.00
- •Changes in version 2.20
- •Changes in version 2.10
- •Introduction
- •Typing convention
- •Terms used in this document
- •System structure
- •Creating a simple model
- •SetupProblem
- •ModelEquations
- •EndCalc
- •Compiling
- •Simulation
- •Model file format
- •Common parameters and datatypes
- •SetupProblem
- •SetupModel
- •SetupState
- •SetTimeFactor
- •SolverSettings
- •Dynamic variables
- •States
- •Static variables
- •Parameter pages
- •Initial Parameters
- •Floating point parameters
- •Integer parameters
- •Boolean parameters
- •List parameters
- •Enumerated parameters
- •Enumerated choice parameters
- •Explicit variables
- •Action buttons
- •Info Labels
- •HideSampleTime
- •Model help file
- •PreCalc
- •SetStartState
- •AddExplicitVar
- •SetSampleTime
- •ModelEquations
- •StateShift
- •OnStateChange
- •OnSolution
- •OnSample
- •EndCalc
- •OnQuit
- •OnUIValueChange
- •Running simulations from the model
- •OnSaveSettings
- •OnLoadSettings
- •Using Initial parameters
- •SetInitial
- •SetGuess
- •AddDynVar
- •AddStatVar
- •Mathematical text
- •Debugging
- •Common problems
- •Using refrigerant equations
- •WinDali Model Editor
- •Compiler Options
- •Environment Options
- •WinDali Simulation Interface
- •Menu commands
- •Online parameters
- •Varying parameters
- •Dali solver
- •Using Profiles in models
- •Generating profiles
- •Using profiles in a model
- •Using Post Process
- •Distributing models
- •References
44 6 Model file format
|
State Change Procedure |
|
OnStateChange |
ModelEquations |
OnSolution |
Figure 8a. State Change Procedure.
The Sample Check Procedure calls the following procedures in the Model file:
OnSolution
State change procedure
No Yes
Forced state change?
OnSample
No Yes
Sample time?
Figure 8c. Sample Check Procedure.
Note that the State Change Procedure is called within the Sample Check Procedure if the state is forced to change in th OnSample procedure.
6.9 EndCalc
Called once when the simulation stops. Can be used to free memory allocated in PreCalc, and to do some final calculations on explicit variables.
6.10 OnQuit
Is called when the user exits the Simulation Program or changes the model. Can be used to do some final clean up.
WinDali |
Morten Juel Skovrup |
Соседние файлы в папке Model and programs