1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright (C) 2004-2010 OpenCFD Ltd.
7 -------------------------------------------------------------------------------
9 This file is part of OpenFOAM.
11 OpenFOAM is free software: you can redistribute it and/or modify it
12 under the terms of the GNU General Public License as published by
13 the Free Software Foundation, either version 3 of the License, or
14 (at your option) any later version.
16 OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
17 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
18 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
21 You should have received a copy of the GNU General Public License
22 along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
24 \*---------------------------------------------------------------------------*/
26 #include "dimensionSet.H"
28 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
30 const Foam::dimensionSet Foam::dimless(0, 0, 0, 0, 0, 0, 0);
32 const Foam::dimensionSet Foam::dimMass(1, 0, 0, 0, 0, 0, 0);
33 const Foam::dimensionSet Foam::dimLength(0, 1, 0, 0, 0, 0, 0);
34 const Foam::dimensionSet Foam::dimTime(0, 0, 1, 0, 0, 0, 0);
35 const Foam::dimensionSet Foam::dimTemperature(0, 0, 0, 1, 0, 0, 0);
36 const Foam::dimensionSet Foam::dimMoles(0, 0, 0, 0, 1, 0, 0);
37 const Foam::dimensionSet Foam::dimCurrent(0, 0, 0, 0, 0, 1, 0);
38 const Foam::dimensionSet Foam::dimLuminousIntensity(0, 0, 0, 0, 0, 0, 1);
40 const Foam::dimensionSet Foam::dimArea(sqr(dimLength));
41 const Foam::dimensionSet Foam::dimVolume(pow3(dimLength));
42 const Foam::dimensionSet Foam::dimVol(dimVolume);
44 const Foam::dimensionSet Foam::dimVelocity(dimLength/dimTime);
45 const Foam::dimensionSet Foam::dimAcceleration(dimVelocity/dimTime);
47 const Foam::dimensionSet Foam::dimDensity(dimMass/dimVolume);
48 const Foam::dimensionSet Foam::dimForce(dimMass*dimAcceleration);
49 const Foam::dimensionSet Foam::dimEnergy(dimForce*dimLength);
50 const Foam::dimensionSet Foam::dimPower(dimEnergy/dimTime);
52 const Foam::dimensionSet Foam::dimPressure(dimForce/dimArea);
53 const Foam::dimensionSet Foam::dimGasConstant(dimEnergy/dimMass/dimTemperature);
54 const Foam::dimensionSet Foam::dimSpecificHeatCapacity(dimGasConstant);
57 // ************************************************************************* //