User manual

34
3.6 Advanced Modelica Support
3.6.1 New Java interface for Dymola (LA)
A new Java interface for Dymola is available in Dymola 2014 FD01, containing a number
of functions to perform operations such as simulating, setting variables, plotting, and
exporting data. For more information about this feature, please see the document
“Introduction to the Java interface for Dymola.pdf” available in the distribution, in
Program
Files (x86)\Dymola 2014 FD01\Documentation
.
The old version of Java interface is still available.
3.6.2 Support of new initialization rules in Modelica
The Modelica Standard Library 3.2.1 supports the new initialization rules in the Modelica
Language Specification Version 3.2 Revision 2, section 8.6. In particular, the item (2) states:
“For all non-discrete (that is continuous-time) Real variables
vc, the equation pre(vc) =
vc
is added to the initialization equations. [If pre(vc)is not present in the flattened model,
a tool may choose not to introduce this equation, or if it was introduced it can eliminate it
(to avoid the introduction of many dummy variables pre
(vc)).]”
Note that a real variable is discrete if it is assigned in a when clause.
In some models the new initialization rules might cause initialization to be over-determined.
The old behavior in Dymola can be retained by setting the flag
Advanced.NewInitializationOfPre=false;
(The full Modelica Language Specification Version 3.2 Revision 2 can be downloaded from
www.modelica.org
.)
3.7 New libraries
3.7.1 Fuel Cell Library
The Fuel Cell Library is well suited for component and system design, analysis and
optimization of fuel cells and fuel cell systems of various types.
The library contains a large number of generic components for modeling of pre-reforming
reactors and fuel cell stacks as well as predefined configurations for easy simulation of Solid
Oxide (SOFC) and Proton Exchange Membrane (PEMFC) fuel cells.
Some highlights:
Well suited for system and component design.
May be used in any fuel cell application domain.
Easy to adapt stack and reactor templates to new structures.