## Modelica

Modelica Standard Library

### Information

Package Modelica is a standardized and pre-defined package that is developed together with the Modelica language from the Modelica Association, see http://www.Modelica.org. It is also called Modelica Standard Library. It provides constants, types, connectors, partial models and model components in various disciplines.

The Modelica package is free software and can be redistributed and/or modified under the terms of the Modelica License and the accompanying disclaimer, displayed at the end of this documentation.

The Modelica package consists currently of the following subpackages

       Constants   Mathematical and physical constants (pi, eps, h, ...)
       Icons       Icon definitions of general interest
       Math        Mathematical functions (such as sin, cos)
       SIunits     SI-unit type definitions (such as Voltage, Torque)

       Blocks      Input/output blocks.
       Electrical  Electric and electronic components.
       Mechanics   Mechanical components
                   (currently: 1D-rotational and 1D-translational components)
       Thermal     Thermal components
                   (currently: 1-D heat transfer with lumped elements)

In the Modelica package the following conventions are used:

- Class and instance names are written in upper and lower case letters, e.g., "ElectricCurrent". An underscore is only used at the end of a name to characterize a lower or upper index, e.g., body_low_up.
- Type names start always with an upper case letter. Instance names start always with a lower case letter with only a few exceptions, such as "T" for a temperature instance, if this is common sense.
- A package XXX has its interface definitions in subpackage XXX.Interfaces, e.g., Electrical.Interfaces.
- Preferred instance names for connectors:

        p,n: positive and negative side of a partial model.
        a,b: side "a" and side "b" of a partial model
             (= connectors are completely equivalent).

Main Author:
  People from the Modelica Association
  Homepage: http://www.Modelica.org

Release Notes:

- Version 1.5 (December 16, 2002)
  Encapsulated all example models, added new package Thermal.HeatTransfer for modeling of lumped heat transfer, added model LossyGear in Mechanics.Rotational to model gear efficiency and bearing friction according to a new theory in a robust way, added 10 new models in Electrical.Analog and added several other new models and improved existing models. In total, 55 new components have been added. A description of the changes is available.
- Version 1.4.1 (June 28, 2001)
  Several minor bugs fixed. New models: Modelica.Blocks.Interfaces.IntegerInPort/IntegerOutPort, Modelica.Blocks.Math.TwoInputs/TwoOutputs Modelica.Electrical.Analog.Ideal.IdealOpAmp3Pin, Modelica.Mechanics.Rotational.Move, Modelica.Mechanics.Translational.Move.
- Version 1.4.1beta1 (February 12, 2001)
  Adapted to Modelica 1.4
- Version 1.3.2beta2 (June 20, 2000)
  - New subpackage Modelica.Mechanics.Translational
  - Changes to Modelica.Mechanics.Rotational:
    New elements:

           IdealGearR2T    Ideal gear transforming rotational in translational motion.
           Position        Forced movement of a flange with a reference angle
                           given as input signal
           RelativeStates  Definition of relative state variables

  - Changes to Modelica.SIunits:
    Introduced new types:
    type Temperature = ThermodynamicTemperature;
    types DerDensityByEnthalpy, DerDensityByPressure, DerDensityByTemperature, DerEnthalpyByPressure, DerEnergyByDensity, DerEnergyByPressure
    Attribute "final" removed from min and max values in order that these values can still be changed to narrow the allowed range of values.
    Quantity="Stress" removed from type "Stress", in order that a type "Stress" can be connected to a type "Pressure".
  - Changes to Modelica.Icons:
    New icons for motors and gearboxes.
  - Changes to Modelica.Blocks.Interfaces:
    Introduced a replaceable signal type into Blocks.Interfaces.InPort/OutPort:

           replaceable type SignalType = Real

    in order that the type of the signal of an input/output block can be changed to a physical type, for example:

           Sine sin1(outPort(redeclare type SignalType=Modelica.SIunits.Torque))

- Version 1.3.1 (Dec. 13, 1999)
  First official release of the library.

THE MODELICA LICENSE (Version 1.1 of June 30, 2000)

Redistribution and use in source and binary forms, with or without modification are permitted, provided that the following conditions are met:

1. The author and copyright notices in the source files, these license conditions and the disclaimer below are (a) retained and (b) reproduced in the documentation provided with the distribution.
2. Modifications of the original source files are allowed, provided that a prominent notice is inserted in each changed file and the accompanying documentation, stating how and when the file was modified, and provided that the conditions under (1) are met.
3. It is not allowed to charge a fee for the original version or a modified version of the software, besides a reasonable fee for distribution and support. Distribution in aggregate with other (possibly commercial) programs as part of a larger (possibly commercial) software distribution is permitted, provided that it is not advertised as a product of your own.

DISCLAIMER

The software (sources, binaries, etc.) in their original or in a modified form are provided "as is" and the copyright holders assume no responsibility for its contents what so ever. Any express or implied warranties, including, but not limited to, the implied warranties of merchantability and fitness for a particular purpose are disclaimed. In no event shall the copyright holders, or any party who modify and/or redistribute the package, be liable for any direct, indirect, incidental, special, exemplary, or consequential damages, arising in any way out of the use of this software, even if advised of the possibility of such damage.

Copyright © 1999-2002, Modelica Association.