|
Boost-Commit : |
From: boost_at_[hidden]
Date: 2008-05-19 12:36:23
Author: matthiasschabel
Date: 2008-05-19 12:36:22 EDT (Mon, 19 May 2008)
New Revision: 45546
URL: http://svn.boost.org/trac/boost/changeset/45546
Log:
add some additional derived physical dimensions
Added:
sandbox/units/boost/units/physical_dimensions/energy_density.hpp (contents, props changed)
sandbox/units/boost/units/physical_dimensions/heat_capacity.hpp (contents, props changed)
sandbox/units/boost/units/physical_dimensions/molar_energy.hpp (contents, props changed)
sandbox/units/boost/units/physical_dimensions/molar_heat_capacity.hpp (contents, props changed)
sandbox/units/boost/units/physical_dimensions/specific_energy.hpp (contents, props changed)
sandbox/units/boost/units/physical_dimensions/specific_heat_capacity.hpp (contents, props changed)
sandbox/units/boost/units/physical_dimensions/thermal_conductivity.hpp (contents, props changed)
Text files modified:
sandbox/units/boost/units/physical_dimensions.hpp | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
Modified: sandbox/units/boost/units/physical_dimensions.hpp
==============================================================================
--- sandbox/units/boost/units/physical_dimensions.hpp (original)
+++ sandbox/units/boost/units/physical_dimensions.hpp 2008-05-19 12:36:22 EDT (Mon, 19 May 2008)
@@ -32,19 +32,25 @@
#include <boost/units/physical_dimensions/dose_equivalent.hpp>
#include <boost/units/physical_dimensions/dynamic_viscosity.hpp>
#include <boost/units/physical_dimensions/energy.hpp>
+#include <boost/units/physical_dimensions/energy_density.hpp>
#include <boost/units/physical_dimensions/force.hpp>
#include <boost/units/physical_dimensions/frequency.hpp>
+#include <boost/units/physical_dimensions/heat_capacity.hpp>
#include <boost/units/physical_dimensions/illuminance.hpp>
#include <boost/units/physical_dimensions/kinematic_viscosity.hpp>
#include <boost/units/physical_dimensions/luminance.hpp>
#include <boost/units/physical_dimensions/luminous_flux.hpp>
#include <boost/units/physical_dimensions/mass_density.hpp>
+#include <boost/units/physical_dimensions/molar_heat_capacity.hpp>
#include <boost/units/physical_dimensions/momentum.hpp>
#include <boost/units/physical_dimensions/power.hpp>
#include <boost/units/physical_dimensions/pressure.hpp>
+#include <boost/units/physical_dimensions/specific_energy.hpp>
+#include <boost/units/physical_dimensions/specific_heat_capacity.hpp>
#include <boost/units/physical_dimensions/specific_volume.hpp>
#include <boost/units/physical_dimensions/stress.hpp>
#include <boost/units/physical_dimensions/surface_density.hpp>
+#include <boost/units/physical_dimensions/thermal_conductivity.hpp>
#include <boost/units/physical_dimensions/velocity.hpp>
#include <boost/units/physical_dimensions/volume.hpp>
#include <boost/units/physical_dimensions/wavenumber.hpp>
Added: sandbox/units/boost/units/physical_dimensions/energy_density.hpp
==============================================================================
--- (empty file)
+++ sandbox/units/boost/units/physical_dimensions/energy_density.hpp 2008-05-19 12:36:22 EDT (Mon, 19 May 2008)
@@ -0,0 +1,30 @@
+// Boost.Units - A C++ library for zero-overhead dimensional analysis and
+// unit/quantity manipulation and conversion
+//
+// Copyright (C) 2003-2008 Matthias Christian Schabel
+// Copyright (C) 2008 Steven Watanabe
+//
+// Distributed under the Boost Software License, Version 1.0. (See
+// accompanying file LICENSE_1_0.txt or copy at
+// http://www.boost.org/LICENSE_1_0.txt)
+
+#ifndef BOOST_UNITS_ENERGY_DENSITY_DERIVED_DIMENSION_HPP
+#define BOOST_UNITS_ENERGY_DENSITY_DERIVED_DIMENSION_HPP
+
+#include <boost/units/derived_dimension.hpp>
+#include <boost/units/physical_dimensions/length.hpp>
+#include <boost/units/physical_dimensions/mass.hpp>
+#include <boost/units/physical_dimensions/time.hpp>
+
+namespace boost {
+
+namespace units {
+
+/// derived dimension for energy density : L^-1 M^1 T^-2
+typedef derived_dimension<length_base_dimension,-1,mass_base_dimension,1,time_base_dimension,-2>::type energy_density_dimension;
+
+} // namespace units
+
+} // namespace boost
+
+#endif // BOOST_UNITS_ENERGY_DENSITY_DERIVED_DIMENSION_HPP
Added: sandbox/units/boost/units/physical_dimensions/heat_capacity.hpp
==============================================================================
--- (empty file)
+++ sandbox/units/boost/units/physical_dimensions/heat_capacity.hpp 2008-05-19 12:36:22 EDT (Mon, 19 May 2008)
@@ -0,0 +1,31 @@
+// Boost.Units - A C++ library for zero-overhead dimensional analysis and
+// unit/quantity manipulation and conversion
+//
+// Copyright (C) 2003-2008 Matthias Christian Schabel
+// Copyright (C) 2008 Steven Watanabe
+//
+// Distributed under the Boost Software License, Version 1.0. (See
+// accompanying file LICENSE_1_0.txt or copy at
+// http://www.boost.org/LICENSE_1_0.txt)
+
+#ifndef BOOST_UNITS_HEAT_CAPACITY_DERIVED_DIMENSION_HPP
+#define BOOST_UNITS_HEAT_CAPACITY_DERIVED_DIMENSION_HPP
+
+#include <boost/units/derived_dimension.hpp>
+#include <boost/units/physical_dimensions/length.hpp>
+#include <boost/units/physical_dimensions/mass.hpp>
+#include <boost/units/physical_dimensions/time.hpp>
+#include <boost/units/physical_dimensions/temperature.hpp>
+
+namespace boost {
+
+namespace units {
+
+/// derived dimension for heat capacity : L^2 M T^-2 Theta^-1
+typedef derived_dimension<length_base_dimension,2,mass_base_dimension,1,time_base_dimension,-2,temperature_base_dimension,-1>::type heat_capacity_dimension;
+
+} // namespace units
+
+} // namespace boost
+
+#endif // BOOST_UNITS_HEAT_CAPACITY_DERIVED_DIMENSION_HPP
Added: sandbox/units/boost/units/physical_dimensions/molar_energy.hpp
==============================================================================
--- (empty file)
+++ sandbox/units/boost/units/physical_dimensions/molar_energy.hpp 2008-05-19 12:36:22 EDT (Mon, 19 May 2008)
@@ -0,0 +1,34 @@
+// Boost.Units - A C++ library for zero-overhead dimensional analysis and
+// unit/quantity manipulation and conversion
+//
+// Copyright (C) 2003-2008 Matthias Christian Schabel
+// Copyright (C) 2008 Steven Watanabe
+//
+// Distributed under the Boost Software License, Version 1.0. (See
+// accompanying file LICENSE_1_0.txt or copy at
+// http://www.boost.org/LICENSE_1_0.txt)
+
+#ifndef BOOST_UNITS_MOLAR_ENERGY_DERIVED_DIMENSION_HPP
+#define BOOST_UNITS_MOLAR_ENERGY_DERIVED_DIMENSION_HPP
+
+#include <boost/units/derived_dimension.hpp>
+#include <boost/units/physical_dimensions/length.hpp>
+#include <boost/units/physical_dimensions/mass.hpp>
+#include <boost/units/physical_dimensions/time.hpp>
+#include <boost/units/physical_dimensions/amount.hpp>
+
+namespace boost {
+
+namespace units {
+
+/// derived dimension for molar energy : L^2 M T^-2 N^-1
+typedef derived_dimension<length_base_dimension,2,
+ mass_base_dimension,1,
+ time_base_dimension,-2,
+ amount_base_dimension,-1>::type molar_energy_dimension;
+
+} // namespace units
+
+} // namespace boost
+
+#endif // BOOST_UNITS_MOLAR_ENERGY_DERIVED_DIMENSION_HPP
Added: sandbox/units/boost/units/physical_dimensions/molar_heat_capacity.hpp
==============================================================================
--- (empty file)
+++ sandbox/units/boost/units/physical_dimensions/molar_heat_capacity.hpp 2008-05-19 12:36:22 EDT (Mon, 19 May 2008)
@@ -0,0 +1,36 @@
+// Boost.Units - A C++ library for zero-overhead dimensional analysis and
+// unit/quantity manipulation and conversion
+//
+// Copyright (C) 2003-2008 Matthias Christian Schabel
+// Copyright (C) 2008 Steven Watanabe
+//
+// Distributed under the Boost Software License, Version 1.0. (See
+// accompanying file LICENSE_1_0.txt or copy at
+// http://www.boost.org/LICENSE_1_0.txt)
+
+#ifndef BOOST_UNITS_MOLAR_HEAT_CAPACITY_DERIVED_DIMENSION_HPP
+#define BOOST_UNITS_MOLAR_HEAT_CAPACITY_DERIVED_DIMENSION_HPP
+
+#include <boost/units/derived_dimension.hpp>
+#include <boost/units/physical_dimensions/length.hpp>
+#include <boost/units/physical_dimensions/mass.hpp>
+#include <boost/units/physical_dimensions/time.hpp>
+#include <boost/units/physical_dimensions/temperature.hpp>
+#include <boost/units/physical_dimensions/amount.hpp>
+
+namespace boost {
+
+namespace units {
+
+/// derived dimension for molar heat capacity : L^2 M T^-2 Theta^-1 N^-1
+typedef derived_dimension<length_base_dimension,2,
+ mass_base_dimension,1,
+ time_base_dimension,-2,
+ temperature_base_dimension,-1,
+ amount_base_dimension,-1>::type molar_heat_capacity_dimension;
+
+} // namespace units
+
+} // namespace boost
+
+#endif // BOOST_UNITS_MOLAR_HEAT_CAPACITY_DERIVED_DIMENSION_HPP
Added: sandbox/units/boost/units/physical_dimensions/specific_energy.hpp
==============================================================================
--- (empty file)
+++ sandbox/units/boost/units/physical_dimensions/specific_energy.hpp 2008-05-19 12:36:22 EDT (Mon, 19 May 2008)
@@ -0,0 +1,30 @@
+// Boost.Units - A C++ library for zero-overhead dimensional analysis and
+// unit/quantity manipulation and conversion
+//
+// Copyright (C) 2003-2008 Matthias Christian Schabel
+// Copyright (C) 2008 Steven Watanabe
+//
+// Distributed under the Boost Software License, Version 1.0. (See
+// accompanying file LICENSE_1_0.txt or copy at
+// http://www.boost.org/LICENSE_1_0.txt)
+
+#ifndef BOOST_UNITS_SPECIFIC_ENERGY_DERIVED_DIMENSION_HPP
+#define BOOST_UNITS_SPECIFIC_ENERGY_DERIVED_DIMENSION_HPP
+
+#include <boost/units/derived_dimension.hpp>
+#include <boost/units/physical_dimensions/length.hpp>
+#include <boost/units/physical_dimensions/time.hpp>
+
+namespace boost {
+
+namespace units {
+
+/// derived dimension for specific energy : L^2 T^-2
+typedef derived_dimension<length_base_dimension,2,
+ time_base_dimension,-2>::type specific_energy_dimension;
+
+} // namespace units
+
+} // namespace boost
+
+#endif // BOOST_UNITS_SPECIFIC_ENERGY_DERIVED_DIMENSION_HPP
Added: sandbox/units/boost/units/physical_dimensions/specific_heat_capacity.hpp
==============================================================================
--- (empty file)
+++ sandbox/units/boost/units/physical_dimensions/specific_heat_capacity.hpp 2008-05-19 12:36:22 EDT (Mon, 19 May 2008)
@@ -0,0 +1,32 @@
+// Boost.Units - A C++ library for zero-overhead dimensional analysis and
+// unit/quantity manipulation and conversion
+//
+// Copyright (C) 2003-2008 Matthias Christian Schabel
+// Copyright (C) 2008 Steven Watanabe
+//
+// Distributed under the Boost Software License, Version 1.0. (See
+// accompanying file LICENSE_1_0.txt or copy at
+// http://www.boost.org/LICENSE_1_0.txt)
+
+#ifndef BOOST_UNITS_SPECIFIC_HEAT_CAPACITY_DERIVED_DIMENSION_HPP
+#define BOOST_UNITS_SPECIFIC_HEAT_CAPACITY_DERIVED_DIMENSION_HPP
+
+#include <boost/units/derived_dimension.hpp>
+#include <boost/units/physical_dimensions/length.hpp>
+#include <boost/units/physical_dimensions/time.hpp>
+#include <boost/units/physical_dimensions/temperature.hpp>
+
+namespace boost {
+
+namespace units {
+
+/// derived dimension for specific heat capacity : L^2 T^-2 Theta^-1
+typedef derived_dimension<length_base_dimension,2,
+ time_base_dimension,-2,
+ temperature_base_dimension,-1>::type specific_heat_capacity_dimension;
+
+} // namespace units
+
+} // namespace boost
+
+#endif // BOOST_UNITS_SPECIFIC_HEAT_CAPACITY_DERIVED_DIMENSION_HPP
Added: sandbox/units/boost/units/physical_dimensions/thermal_conductivity.hpp
==============================================================================
--- (empty file)
+++ sandbox/units/boost/units/physical_dimensions/thermal_conductivity.hpp 2008-05-19 12:36:22 EDT (Mon, 19 May 2008)
@@ -0,0 +1,34 @@
+// Boost.Units - A C++ library for zero-overhead dimensional analysis and
+// unit/quantity manipulation and conversion
+//
+// Copyright (C) 2003-2008 Matthias Christian Schabel
+// Copyright (C) 2008 Steven Watanabe
+//
+// Distributed under the Boost Software License, Version 1.0. (See
+// accompanying file LICENSE_1_0.txt or copy at
+// http://www.boost.org/LICENSE_1_0.txt)
+
+#ifndef BOOST_UNITS_THERMAL_CONDUCTIVITY_DERIVED_DIMENSION_HPP
+#define BOOST_UNITS_THERMAL_CONDUCTIVITY_DERIVED_DIMENSION_HPP
+
+#include <boost/units/derived_dimension.hpp>
+#include <boost/units/physical_dimensions/length.hpp>
+#include <boost/units/physical_dimensions/mass.hpp>
+#include <boost/units/physical_dimensions/time.hpp>
+#include <boost/units/physical_dimensions/temperature.hpp>
+
+namespace boost {
+
+namespace units {
+
+/// derived dimension for thermal_conductivity : L^1 M^1 T^-3 Theta^-1
+typedef derived_dimension<length_base_dimension,1,
+ mass_base_dimension,1,
+ time_base_dimension,-3,
+ temperature_base_dimension,-1>::type thermal_conductivity_dimension;
+
+} // namespace units
+
+} // namespace boost
+
+#endif // BOOST_UNITS_THERMAL_CONDUCTIVITY_DERIVED_DIMENSION_HPP
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk