Skip to content

Commit 6573b38

Browse files
committed
add physical dimensions
- amount_concentration - angular_frequency - charge_density - current_density - diffusion_coefficient - diffusion_flux - electric_field_intensity - electric_flux - electric_flux_density - entropy - heat_flux_density - magnetic_moment - mobility - molar_entropy - molar_mass - molar_volume - specific_entropy - thermal_resistance
1 parent d67f8e7 commit 6573b38

37 files changed

Lines changed: 1147 additions & 0 deletions
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
// Boost.Units - A C++ library for zero-overhead dimensional analysis and
2+
// unit/quantity manipulation and conversion
3+
//
4+
// Copyright (C) 2003-2008 Matthias Christian Schabel
5+
// Copyright (C) 2008 Steven Watanabe
6+
//
7+
// Distributed under the Boost Software License, Version 1.0. (See
8+
// accompanying file LICENSE_1_0.txt or copy at
9+
// http://www.boost.org/LICENSE_1_0.txt)
10+
11+
#ifndef BOOST_UNITS_AMOUNT_CONCENTRATION_DERIVED_DIMENSION_HPP
12+
#define BOOST_UNITS_AMOUNT_CONCENTRATION_DERIVED_DIMENSION_HPP
13+
14+
#include <boost/units/derived_dimension.hpp>
15+
#include <boost/units/physical_dimensions/length.hpp>
16+
#include <boost/units/physical_dimensions/amount.hpp>
17+
18+
namespace boost {
19+
20+
namespace units {
21+
22+
/// derived dimension for amount concentration : L^-3 N
23+
typedef derived_dimension<length_base_dimension,-3,
24+
amount_base_dimension,1>::type amount_concentration_dimension;
25+
26+
} // namespace units
27+
28+
} // namespace boost
29+
30+
#endif // BOOST_UNITS_AMOUNT_CONCENTRATION_DERIVED_DIMENSION_HPP
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
// Boost.Units - A C++ library for zero-overhead dimensional analysis and
2+
// unit/quantity manipulation and conversion
3+
//
4+
// Copyright (C) 2003-2008 Matthias Christian Schabel
5+
// Copyright (C) 2008 Steven Watanabe
6+
//
7+
// Distributed under the Boost Software License, Version 1.0. (See
8+
// accompanying file LICENSE_1_0.txt or copy at
9+
// http://www.boost.org/LICENSE_1_0.txt)
10+
11+
#ifndef BOOST_UNITS_ANGULAR_FREQUENCY_DERIVED_DIMENSION_HPP
12+
#define BOOST_UNITS_ANGULAR_FREQUENCY_DERIVED_DIMENSION_HPP
13+
14+
#include <boost/units/derived_dimension.hpp>
15+
#include <boost/units/physical_dimensions/time.hpp>
16+
#include <boost/units/physical_dimensions/plane_angle.hpp>
17+
18+
namespace boost {
19+
20+
namespace units {
21+
22+
/// derived dimension for angular frequency : T^-1 QP
23+
typedef derived_dimension<time_base_dimension,-1,
24+
plane_angle_base_dimension,1>::type angular_frequency_dimension;
25+
26+
} // namespace units
27+
28+
} // namespace boost
29+
30+
#endif // BOOST_UNITS_ANGULAR_FREQUENCY_DERIVED_DIMENSION_HPP
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
// Boost.Units - A C++ library for zero-overhead dimensional analysis and
2+
// unit/quantity manipulation and conversion
3+
//
4+
// Copyright (C) 2003-2008 Matthias Christian Schabel
5+
// Copyright (C) 2008 Steven Watanabe
6+
//
7+
// Distributed under the Boost Software License, Version 1.0. (See
8+
// accompanying file LICENSE_1_0.txt or copy at
9+
// http://www.boost.org/LICENSE_1_0.txt)
10+
11+
#ifndef BOOST_UNITS_CHARGE_DENSITY_DERIVED_DIMENSION_HPP
12+
#define BOOST_UNITS_CHARGE_DENSITY_DERIVED_DIMENSION_HPP
13+
14+
#include <boost/units/derived_dimension.hpp>
15+
#include <boost/units/physical_dimensions/length.hpp>
16+
#include <boost/units/physical_dimensions/time.hpp>
17+
#include <boost/units/physical_dimensions/current.hpp>
18+
19+
namespace boost {
20+
21+
namespace units {
22+
23+
/// derived dimension for charge density : L^-3 T I
24+
typedef derived_dimension<length_base_dimension,-3,
25+
time_base_dimension,1,
26+
current_base_dimension,1>::type charge_density_dimension;
27+
28+
} // namespace units
29+
30+
} // namespace boost
31+
32+
#endif // BOOST_UNITS_CHARGE_DENSITY_DERIVED_DIMENSION_HPP
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
// Boost.Units - A C++ library for zero-overhead dimensional analysis and
2+
// unit/quantity manipulation and conversion
3+
//
4+
// Copyright (C) 2003-2008 Matthias Christian Schabel
5+
// Copyright (C) 2008 Steven Watanabe
6+
//
7+
// Distributed under the Boost Software License, Version 1.0. (See
8+
// accompanying file LICENSE_1_0.txt or copy at
9+
// http://www.boost.org/LICENSE_1_0.txt)
10+
11+
#ifndef BOOST_UNITS_CURRENT_DENSITY_DERIVED_DIMENSION_HPP
12+
#define BOOST_UNITS_CURRENT_DENSITY_DERIVED_DIMENSION_HPP
13+
14+
#include <boost/units/derived_dimension.hpp>
15+
#include <boost/units/physical_dimensions/length.hpp>
16+
#include <boost/units/physical_dimensions/current.hpp>
17+
18+
namespace boost {
19+
20+
namespace units {
21+
22+
/// derived dimension for current density : L^-2 I
23+
typedef derived_dimension<length_base_dimension,-2,
24+
current_base_dimension,1>::type current_density_dimension;
25+
26+
} // namespace units
27+
28+
} // namespace boost
29+
30+
#endif // BOOST_UNITS_CURRENT_DENSITY_DERIVED_DIMENSION_HPP
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
// Boost.Units - A C++ library for zero-overhead dimensional analysis and
2+
// unit/quantity manipulation and conversion
3+
//
4+
// Copyright (C) 2003-2008 Matthias Christian Schabel
5+
// Copyright (C) 2008 Steven Watanabe
6+
//
7+
// Distributed under the Boost Software License, Version 1.0. (See
8+
// accompanying file LICENSE_1_0.txt or copy at
9+
// http://www.boost.org/LICENSE_1_0.txt)
10+
11+
#ifndef BOOST_UNITS_DIFFUSION_COEFFICIENT_DERIVED_DIMENSION_HPP
12+
#define BOOST_UNITS_DIFFUSION_COEFFICIENT_DERIVED_DIMENSION_HPP
13+
14+
#include <boost/units/derived_dimension.hpp>
15+
#include <boost/units/physical_dimensions/length.hpp>
16+
#include <boost/units/physical_dimensions/time.hpp>
17+
18+
namespace boost {
19+
20+
namespace units {
21+
22+
/// derived dimension for diffusion coefficient : L^2 T^-1
23+
typedef derived_dimension<length_base_dimension,2,
24+
time_base_dimension,-1>::type diffusion_coefficient_dimension;
25+
26+
} // namespace units
27+
28+
} // namespace boost
29+
30+
#endif // BOOST_UNITS_DIFFUSION_COEFFICIENT_DERIVED_DIMENSION_HPP
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
// Boost.Units - A C++ library for zero-overhead dimensional analysis and
2+
// unit/quantity manipulation and conversion
3+
//
4+
// Copyright (C) 2003-2008 Matthias Christian Schabel
5+
// Copyright (C) 2008 Steven Watanabe
6+
//
7+
// Distributed under the Boost Software License, Version 1.0. (See
8+
// accompanying file LICENSE_1_0.txt or copy at
9+
// http://www.boost.org/LICENSE_1_0.txt)
10+
11+
#ifndef BOOST_UNITS_DIFFUSION_FLUX_DERIVED_DIMENSION_HPP
12+
#define BOOST_UNITS_DIFFUSION_FLUX_DERIVED_DIMENSION_HPP
13+
14+
#include <boost/units/derived_dimension.hpp>
15+
#include <boost/units/physical_dimensions/length.hpp>
16+
#include <boost/units/physical_dimensions/time.hpp>
17+
#include <boost/units/physical_dimensions/amount.hpp>
18+
19+
namespace boost {
20+
21+
namespace units {
22+
23+
/// derived dimension for diffusion flux : L^-2 T^-1 N
24+
typedef derived_dimension<length_base_dimension,-2,
25+
time_base_dimension,-1,
26+
amount_base_dimension,1>::type diffusion_flux_dimension;
27+
28+
} // namespace units
29+
30+
} // namespace boost
31+
32+
#endif // BOOST_UNITS_DIFFUSION_FLUX_DERIVED_DIMENSION_HPP
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
// Boost.Units - A C++ library for zero-overhead dimensional analysis and
2+
// unit/quantity manipulation and conversion
3+
//
4+
// Copyright (C) 2003-2008 Matthias Christian Schabel
5+
// Copyright (C) 2008 Steven Watanabe
6+
//
7+
// Distributed under the Boost Software License, Version 1.0. (See
8+
// accompanying file LICENSE_1_0.txt or copy at
9+
// http://www.boost.org/LICENSE_1_0.txt)
10+
11+
#ifndef BOOST_UNITS_ELECTRIC_FIELD_INTENSITY_DERIVED_DIMENSION_HPP
12+
#define BOOST_UNITS_ELECTRIC_FIELD_INTENSITY_DERIVED_DIMENSION_HPP
13+
14+
#include <boost/units/derived_dimension.hpp>
15+
#include <boost/units/physical_dimensions/length.hpp>
16+
#include <boost/units/physical_dimensions/mass.hpp>
17+
#include <boost/units/physical_dimensions/time.hpp>
18+
#include <boost/units/physical_dimensions/current.hpp>
19+
20+
namespace boost {
21+
22+
namespace units {
23+
24+
/// derived dimension for electric field intensity : L M T^-3 I^-1
25+
typedef derived_dimension<length_base_dimension,1,
26+
mass_base_dimension,1,
27+
time_base_dimension,-3,
28+
current_base_dimension,-1>::type electric_field_intensity_dimension;
29+
30+
} // namespace units
31+
32+
} // namespace boost
33+
34+
#endif // BOOST_UNITS_ELECTRIC_FIELD_INTENSITY_DERIVED_DIMENSION_HPP
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
// Boost.Units - A C++ library for zero-overhead dimensional analysis and
2+
// unit/quantity manipulation and conversion
3+
//
4+
// Copyright (C) 2003-2008 Matthias Christian Schabel
5+
// Copyright (C) 2008 Steven Watanabe
6+
//
7+
// Distributed under the Boost Software License, Version 1.0. (See
8+
// accompanying file LICENSE_1_0.txt or copy at
9+
// http://www.boost.org/LICENSE_1_0.txt)
10+
11+
#ifndef BOOST_UNITS_ELECTRIC_FLUX_DERIVED_DIMENSION_HPP
12+
#define BOOST_UNITS_ELECTRIC_FLUX_DERIVED_DIMENSION_HPP
13+
14+
#include <boost/units/derived_dimension.hpp>
15+
#include <boost/units/physical_dimensions/time.hpp>
16+
#include <boost/units/physical_dimensions/current.hpp>
17+
18+
namespace boost {
19+
20+
namespace units {
21+
22+
/// derived dimension for electric flux : T I
23+
typedef derived_dimension<time_base_dimension,1,
24+
current_base_dimension,1>::type electric_flux_dimension;
25+
26+
} // namespace units
27+
28+
} // namespace boost
29+
30+
#endif // BOOST_UNITS_ELECTRIC_FLUX_DERIVED_DIMENSION_HPP
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
// Boost.Units - A C++ library for zero-overhead dimensional analysis and
2+
// unit/quantity manipulation and conversion
3+
//
4+
// Copyright (C) 2003-2008 Matthias Christian Schabel
5+
// Copyright (C) 2008 Steven Watanabe
6+
//
7+
// Distributed under the Boost Software License, Version 1.0. (See
8+
// accompanying file LICENSE_1_0.txt or copy at
9+
// http://www.boost.org/LICENSE_1_0.txt)
10+
11+
#ifndef BOOST_UNITS_ELECTRIC_FLUX_DENSITY_DERIVED_DIMENSION_HPP
12+
#define BOOST_UNITS_ELECTRIC_FLUX_DENSITY_DERIVED_DIMENSION_HPP
13+
14+
#include <boost/units/derived_dimension.hpp>
15+
#include <boost/units/physical_dimensions/length.hpp>
16+
#include <boost/units/physical_dimensions/time.hpp>
17+
#include <boost/units/physical_dimensions/current.hpp>
18+
19+
namespace boost {
20+
21+
namespace units {
22+
23+
/// derived dimension for electric flux density : L^-2 T I
24+
typedef derived_dimension<length_base_dimension,-2,
25+
time_base_dimension,1,
26+
current_base_dimension,1>::type electric_flux_density_dimension;
27+
28+
} // namespace units
29+
30+
} // namespace boost
31+
32+
#endif // BOOST_UNITS_ELECTRIC_FLUX_DENSITY_DERIVED_DIMENSION_HPP
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
// Boost.Units - A C++ library for zero-overhead dimensional analysis and
2+
// unit/quantity manipulation and conversion
3+
//
4+
// Copyright (C) 2003-2008 Matthias Christian Schabel
5+
// Copyright (C) 2008 Steven Watanabe
6+
//
7+
// Distributed under the Boost Software License, Version 1.0. (See
8+
// accompanying file LICENSE_1_0.txt or copy at
9+
// http://www.boost.org/LICENSE_1_0.txt)
10+
11+
#ifndef BOOST_UNITS_ENTROPY_DERIVED_DIMENSION_HPP
12+
#define BOOST_UNITS_ENTROPY_DERIVED_DIMENSION_HPP
13+
14+
#include <boost/units/derived_dimension.hpp>
15+
#include <boost/units/physical_dimensions/length.hpp>
16+
#include <boost/units/physical_dimensions/mass.hpp>
17+
#include <boost/units/physical_dimensions/time.hpp>
18+
#include <boost/units/physical_dimensions/temperature.hpp>
19+
20+
namespace boost {
21+
22+
namespace units {
23+
24+
/// derived dimension for entropy : L^2 M T^-2 Theta^-1
25+
typedef derived_dimension<length_base_dimension,2,
26+
mass_base_dimension,1,
27+
time_base_dimension,-2,
28+
temperature_base_dimension,-1>::type entropy_dimension;
29+
30+
} // namespace units
31+
32+
} // namespace boost
33+
34+
#endif // BOOST_UNITS_ENTROPY_DERIVED_DIMENSION_HPP

0 commit comments

Comments
 (0)