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, David B. Newell, and Barry N. Taylor:
CODATA Recommended Values of the Fundamental Physical Constants: 2014. http://dx.doi.org/10.5281/zenodo.22826, 2015. See also http://physics.nist.gov/cuu/Constants/index.html

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 1116
D-82230 Weßling
email: [email protected]

Copyright © 1998-2016, 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

Name Description
e=Modelica.Math.exp(1.0)  
pi=2*Modelica.Math.asin(1.0)  
D2R=pi/180 Degree to Radian
R2D=180/pi Radian to Degree
gamma=0.57721566490153286060 see http://en.wikipedia.org/wiki/Euler_constant
eps=ModelicaServices.Machine.eps Biggest number such that 1.0 + eps = 1.0
small=ModelicaServices.Machine.small Smallest number such that small and -small are representable on the machine
inf=ModelicaServices.Machine.inf Biggest Real number such that inf and -inf are representable on the machine
Integer_inf=ModelicaServices.Machine.Integer_inf Biggest Integer number such that Integer_inf and -Integer_inf are representable on the machine
c=299792458 Speed of light in vacuum
g_n=9.80665 Standard acceleration of gravity on earth
G=6.67408e-11 Newtonian constant of gravitation (previous value: 6.6742e-11)
F=9.648533289e4 Faraday constant, C/mol (previous value: 9.64853399e4)
h=6.626070040e-34 Planck constant (previous value: 6.6260693e-34)
k=1.38064852e-23 Boltzmann constant (previous value: 1.3806505e-23)
R=8.3144598 Molar gas constant (previous value: 8.314472)
sigma=5.670367e-8 Stefan-Boltzmann constant (previous value: 5.670400e-8)
N_A=6.022140857e23 Avogadro constant (previous value: 6.0221415e23)
mue_0=4*pi*1.e-7 Magnetic constant
epsilon_0=1/(mue_0*c*c) Electric constant
T_zero=-273.15 Absolute zero temperature
Automatically generated Tue Apr 05 09:37:06 2016.