Physical variables
Physical variables - is a Engee tool that helps to check initial conditions and target values of models.
The physical variables window allows you to see which target values of variables have been met at the block level, and also displays the priorities and target values of variables (if specified).
The physical variables window serves as an analytical tool for displaying data and does not provide the ability to manipulate variables, their priorities and values. To interact with variables directly, open the parameters window of the corresponding block. |
To open the physical variables window, click the button in the working area of the model. By default, the physical variables window does not contain any data:
To start working with the physical variables window, open settings window |
Interface
The physical variable window interface is a table that lists all physical variable blocks and all their available variables. The table provides information about the initialisation status, priority, target and actual initial values, and other characteristics for each physical variable:
The physical variables window consists of the following columns:
-
Name - contains the full names of all variables used in the model. The names indicate the block (e.g. Voltage Sensor), its connection port (e.g.
p
orn
), and the physical characteristic measured at that point (v
for voltage ori
for current); -
Status - the current status of the variable is indicated, showing whether the variable has been successfully initialised or, for example, whether there are errors in its value. There are three statuses in total:
-
- is displayed for variables whose initialisation goals have been achieved and for all variables with no set priority;
-
- indicates variables with low priority if their initialisation goals have not been achieved;
-
- is displayed for variables with high priority if their initialisation goals have not been met.
-
-
Priority - displays the priority assigned to the variable (if set). By default
None
. The priority may affect the order in which variables are processed during calculations (see here for details); -
Target - indicates the target value of the variable (if set);
-
Start - displays the actual initial value of the variable calculated by the solver after initialisation of the model. This value is used at the initial moment of time for modelling;
-
Unit - specifies the units of measurement of the variable. This helps to interpret numerical values in a physical context;
-
Eliminated - a tick in this column indicates that the variable has been excluded from the calculations prior to numerical integration. These variables do not participate in the solution of the system, and their preliminary initial values do not affect the result;
-
Determined - a tick in this column indicates that the value of the variable depends on the input data of the system or is predetermined on the basis of equation analysis. Setting priority and target values for such variables usually does not affect the system solution. If you set a high-priority target for a predefined variable, the solver will probably not be able to achieve it, but will spend additional time trying to find an alternative solution;
-
Differential - a tick in this column indicates that the system equations contain time derivatives of the variable in question (its rate of change over time). Such variables often require high priority during initialisation, as their initial values noticeably influence the system behaviour during simulation;
Differential variables play an important role in simulation as they add dynamic behaviour to the system and can create independent time-dependent states. -
Pre start - contains the value of the variable set by the user in the block settings before running the model. This value serves for the initial setting of variables in the preparation stage of the simulation.
Do not confuse the Start and Pre-Start columns:
-
Pre-Start is the initial value set by the user in the block settings;
-
Start is the value calculated by the solver after the model has been initialised.
-
To sort, click on the desired column with the left mouse button:
Variables can be filtered by name:
Update button - recalculates the initial conditions for the model and updates the values displayed in the physical variables window. Use this button after adjusting block parameters values, changing priorities and targets of variables, or rebuilding the model.
Panel Diagnostic*where the overall status of the variables is displayed. For example, the phrase "All variables received" with the icon means that all variables have been successfully initialised and are ready for operation. As with the *Status (variable status) column, three statuses are available:
-
- all variables received;
-
- all high-priority targets have been completed, but some low-priority targets have not been completed;
-
- it is impossible to receive all high-priority variables, not all high-priority targets are fulfilled.
The number next to the filter icon shows the current number of sorted variables.
Interaction with model updates and simulations
Useful features of the physical variables window:
-
Re-opening the physical variables window does not trigger its automatic update. For complex models, calculating initial values for all variables can take some time, and unnecessary updates can cause loss of performance. Therefore, the update button is used to update the data
;
-
When you open the physical variables window, it displays the data from the last simulation;
-
If you run the simulation again, the data will be updated automatically when the physical variables window is open;
-
If you change priorities, variable targets or block parameters, the data in the physical variables window is not automatically updated.