- •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
2 Version information |
3 |
2 Version information
2.1 Changes in version 3.00
The following changes and some bug-fixes have been made:
•The software is no longer freeware
•FreePascal editor has changed name to WinDali Model Editor, and a lot of changes have been made so that it is more a model editor than a general programming editor
•The Simulation program has changed name to WinDali Simulation Interface
•Features regarding time and plotting in the WinDali Simulation Interface have been changed/added – see the section for the WinDali Simulation Interface
•Added a lot of (simplifying) changes to the model structure.
oAll extended parameter calls (for example AddFloatParamExt) does not take IndexOnPage as parameter any more.
oExtended calls to AddDynamic, AddStatic etc. does not take format, precision and digit parameters any more.
•The component modeling interface is no longer supported.
•All datatypes have been changed to allow for change in floating point precision in the model (reserved for future versions). See chapter 6.1.
•Explicit variables have been renamed to Implicit variables
•Post Process and Profile Editor has been added.
•All programs have been prepared for installation on a multiuser-system.
2.2Changes in version 2.20
The following changes and some bug-fixes have been made:
•The meaning of max-min values for static variables has been changed. They do not any longer affect only the user-interface – they are also used in the static-equation solver to limit the values of the static variables within the Newton-Raphson iterations.
•The function AddStaticVarExt has been added.
•Most Add… procedures have been changed to functions. They now return the number assigned to the variable/parameter added.
•Try to right-click on the curve window in the simulation program. You will see a menu, which enables you to easier select the variables you want to plot.
•In the simulation program on the General page a new option called “Remember points” has been added. If checked then all values of all variables in the curve window will be remembered – even if the variable is not selected (plotted). If “Remember points” is unchecked then only values of selected (plotted) variables will be stored.
WinDali |
Morten Juel Skovrup |
4 2 Version information
2.3 Changes in version 2.10
The model file format has changed. This means that models build with previous versions have to be changed to make them work in version 2.10. Note that the changes do not affect the component file format, i.e. models created using components do not have to be changed.
The changes all have to do with specifying the number of variables and parameters. It is no longer required (in fact it is not possible) to specify the number of for example dynamic variables by calling SetNumDynamic. The number of dynamic variables are automatically counted when you call AddDynamic. The same apply for parameters.
More precisely the following functions are obsolete:
SetNumActionBtns(Num : TInteger);
SetNumBoolParams(Num : TInteger);
SetNumChoice(EnumParam,ItemIndex,Num : TInteger);
SetNumDynamic(Num : TInteger);
SetNumEnumChoiceParams(Num : TInteger);
SetNumEnumParams(Num : TInteger);
SetNumExtra(Num : TInteger);
SetNumFloatParams(Num : TInteger);
SetNumInfoLabels(Num : TInteger);
SetNumInitialParams(Num : TInteger);
SetNumIntParams(Num : TInteger);
SetNumListParams(Num : TInteger);
SetNumStatic(StateNum,NumStatic : TInteger);
And all the Add... functions have been changed, so that you no longer have to pass the variable number in the function call. For example:
AddFloatParam(Num : TInteger;var Parameter : TFloat;DefaultValue : TFloat;
Name : PChar;ParamPage : TInteger);
Has been changed to:
AddFloatParam(var Parameter : TFloat;DefaultValue : TFloat;
Name : PChar;ParamPage : TInteger);
See the details under the different functions in chapter 6.
WinDali |
Morten Juel Skovrup |