Modelica.Constants

Library of mathematical constants and constants of nature (e.g., pi, eps, R, sigma)

Information


This package provides often needed constants from mathematics, machine dependent constants and constants from nature. The latter constants (name, value, description) are from the following source:

Peter J. Mohr and Barry N. Taylor (1999):
CODATA Recommended Values of the Fundamental Physical Constants: 1998. Journal of Physical and Chemical Reference Data, Vol. 28, No. 6, 1999 and Reviews of Modern Physics, Vol. 72, No. 2, 2000. See also http://physics.nist.gov/cuu/Constants/

CODATA is the Committee on Data for Science and Technology.

Main Author:
Martin Otter
Deutsches Zentrum für Luft und Raumfahrt e. V. (DLR)
Oberpfaffenhofen
Postfach 11 16
D-82230 Weßling
email: Martin.Otter@dlr.de

Copyright © 1998-2013, Modelica Association and DLR.

This Modelica package is free software and the use is completely at your own risk; it can be redistributed and/or modified under the terms of the Modelica License 2. For license conditions (including the disclaimer of warranty) see Modelica.UsersGuide.ModelicaLicense2 or visit https://www.modelica.org/licenses/ModelicaLicense2.

Extends from Modelica.Icons.Package (Icon for standard packages).

Package Content

NameDescription
e=Modelica.Math.exp(1.0) 
pi=2*Modelica.Math.asin(1.0) 
D2R=pi/180Degree to Radian
R2D=180/piRadian to Degree
gamma=0.57721566490153286060see http://en.wikipedia.org/wiki/Euler_constant
eps=ModelicaServices.Machine.epsBiggest number such that 1.0 + eps = 1.0
small=ModelicaServices.Machine.smallSmallest number such that small and -small are representable on the machine
inf=ModelicaServices.Machine.infBiggest Real number such that inf and -inf are representable on the machine
Integer_inf=ModelicaServices.Machine.Integer_infBiggest Integer number such that Integer_inf and -Integer_inf are representable on the machine
c=299792458Speed of light in vacuum
g_n=9.80665Standard acceleration of gravity on earth
G=6.6742e-11Newtonian constant of gravitation
F=9.64853399e4Faraday constant, C/mol
h=6.6260693e-34Planck constant
k=1.3806505e-23Boltzmann constant
R=8.314472Molar gas constant
sigma=5.670400e-8Stefan-Boltzmann constant
N_A=6.0221415e23Avogadro constant
mue_0=4*pi*1.e-7Magnetic constant
epsilon_0=1/(mue_0*c*c)Electric constant
T_zero=-273.15Absolute zero temperature
Automatically generated Mon Sep 23 17:21:10 2013.