Skip to content

Commit 897f00f

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 897f00f

37 files changed

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

0 commit comments

Comments
 (0)