The fixed-attribute is described in Modelica and a value of true means that the start-value must be satisfied during initialization, whereas false means that the start-value is only intended as a guess-value for a non-linear solver. Inherited means that the fixed modifier is removed, and as a consequence, fixed modifier is set from other levels. The actual value with description is shown in the popup-menu.![]()
This dialog entry for start values is activated if one of following is true:
annotation(Dialog(initialDialog=true)).
annotation(Dialog(stateDialog=true, initialDialog=true)).
This requires that you:
function f input Real u; output Real y; external "Java" y='MyPackage.MyClass.Myfunction'(u); end f;For interactive calls it is possible to call Dymola's interpreter from Java. Further documentation is found in the Dymola 6 Additions manual.
Advanced.CheckUnits = true and it is active when checking a package,
function or model as well as when translating a model for simulation.
It includes checking of unit strings and unit compatibility
of equations. Currently Dymola makes a relaxed checking.
It means that an empty unit string, "", is interpreted as unknown
unit. Also number literals are interpreted to have unknown unit.
The unknown unit is propagated according to simple rules;
unknown unit * "unit1" -> unknown unit unknown unit + "unit1" -> "unit1"
model M parameter String s=""; annotation(preInstantiate=MyPackage.foo(s)); end M;Notes:
component.s.
<New variable>
is no longer present in the tree. To add a new name you should instead click on <Add variable>
(which also opens the list of existing variables used in other models).
In the example below we have connected from the output y of the component mSource1 to the expandable connector bus. We are then given a choice of what variable on the bus to connect to and can select '<Add variable>' to browse for existing connections to 'bus' in other models, or click on '<New variable>' to construct a new variable.
By building the circuit in the usual way one then gets![]()
and can then change the default to Resistor using "Change class/All matching choices" in the context-menu of load.![]()
Alternatively one can modify replaceable and constraining class in the Attributes-context menu.
Use the tool![]()
to browse for the constraining class.
This icon is used in general to activate a class-browser.
Both alternatives can give the same model as result. The difference is whether you find it more convenient to build the template directly, or want to start by building a actual model, test it, and then turn it into a template with replaceable components.
sqrt(x) by
sqrt(max(0,x)).
Library developers can already activate this using
Advanced.GuardedSqrt=true; Advanced.AbsSignEvent=false;
Next and Finish buttons.
Dymola is started after the complete installation, including libraries.
Highlighting can be turned on or off in Edit/Options, for example when copying to clipboard or exporting images.
It is always off during File/Export/HTML.
Redeclared components are always shown. The context menu command "Show Redeclared" has been removed.
Advanced.UseConfidenceNumberForStartValues=true.
The initialization problem involves often nonlinear algebraic loops. When solving a nonlinear system of equations, it is important that the iteration variables have good start values to guarantee convergence and as well as convergence to the desired solution in case the nonlinear problem has several solutions. Dymola decreases the size of a nonlinear system by eliminating variables by tearing. It is then a good idea to eliminate variables without start values or variables having less confident start values and keep as iteration variables those variables having more confident start values. Dymola now introduces a natural way to estimate the confidence of start values.
Models are typically built by composing components. The components may include settings for start values. If the top model sets parameters or start values of the components, the idea is to improve the model, not make it worse. When building the model we ought to have better and more specific information than when the models were built. Thus it is reasonable to have more confidence in start values being set from higher hierarchical levels of the model. This approach gives both the model developers and the users good control possibilities. Changing a start value is expected to have immediate effect.
A model has a hierarchical component structure. Each component of a model can be given a unique model component hierarchy level number. The top level model has a level number of 1. The level number increases by 1 for each level down in the model component hierarchy. The model component hierarchy level number is used to give start values a confidence number, where a lower number means that the start value is more confident. Loosely, if the start value is set or modified on level i then the confidence number is i. If a start value is set by a possibly hierarchical modifier at the top level, then this start value has the highest confidence, namely 1 irrespectively on what level, the variable itself is declared.
Previously Dymola was a statically linked application, which means that the application contained all runtime libraries. This caused problems on some Linux distributions because of subtle incompatibilities between the C runtime library and the operating system. Starting with Dymola 6.0b on Linux, the executable program is dynamically linked to the most basic runtime libraries. This means that the native library of the Linux distribution is used, avoiding any incompatibility with the operating system.
With dynamic linking there is a small risk that some of the native dynamic libraries are incompatible with the Dymola application. To resolve this problem, the Dymola distribution for Linux contains a set of known compatible dynamic libraries. These libraries are not normally used, but are available to resolve any compatibility problems. Install Dymola as follows:
dymola/insert/dymola.lic.
DYMOLA to point to the Dymola root directory.
dymola/bin/dymola6. If the program starts you are done installing Dymola.
dymola/bin/dymola.run, which sets up the environment
variable LD_LIBRARY_PATH and then runs Dymola.
If the program starts you are done installing Dymola.
dymola/bin/libs/old to dymola/bin/libs as needed
and try again with Step 4.
This may require some trial-and-error experiments until a running configuration has been found.
support@dynasim.se.
Dymola 6.0b is generated on Red Hat Linux release 7.1; earlier versions supported by Dymola 5.x are not supported any more.
function vectorAdd
input Real x[:];
input Real y[:]=x;
...
If y is not specified the default is that x and y are the same.
Note: This is especially important for automatically constructed record-constructors.
Advanced.TransparentImageBackground=true.
This flag will give you objects which are separated from the
background, with the same color as on the screen (only
the background is transparent).Advanced.TransparentImageObjects=true allows
export of image with transparent objects, not only transparent background.
Transparent objects will be exported as transparent in the image. The
possible drawback is that colors can be changed depending on the
background when the image is inserted into a document.