Commit Graph
116 Commits
Author SHA1 Message Date
Mateusz Pusz 5c94a40906 build: COMP_XXX renamed to UNITS_COMP_XXX 2021-03-15 21:13:21 +01:00
Mateusz Pusz 8f04bd9cfe build: mp::units CMake target was a bad idea -> mp-units::mp-units is back 2021-02-15 17:06:09 +01:00
Mateusz Pusz 4d965d7f47 fix: 💥 dim_torque now properly divides by an angle (instead of multiply) + default unit name change
Resolves #220
2021-02-15 15:01:56 +01:00
dkavolis 23dd21465d rational powers 2020-12-29 17:04:38 +01:00
Mateusz Pusz cff718301c refactor: quantity_io added 2020-12-28 15:18:36 +01:00
Mateusz Pusz 008dec79ea refactor: si.h usage limited 2020-12-28 14:34:27 +01:00
Mateusz Pusz bf3815a5ee test: Uniform distribution tests fixed 2020-12-23 22:28:46 +01:00
Mateusz Pusz a172f34684 build: Minimum CMake version required set for each file based on its contents 2020-12-21 22:56:00 +01:00
Mateusz Pusz 206712f046 build: Library renamed to mp::units 2020-12-17 23:06:37 +01:00
Mateusz Pusz c5919d2cd8 build: Conan generator changed to provide more transparent dependency handling 2020-12-09 18:49:39 +01:00
Mateusz Pusz d4d23847d8 refactor: DOWNCAST_MODE renamed to UNITS_DOWNCAST_MODE 2020-09-13 18:45:46 +02:00
Mateusz Pusz 6e510b3a2a refactor: modules-like behavior for systems removed to improve broken compile-time
Reffers to #32
2020-09-13 00:11:02 +02:00
Mateusz Pusz 2a56438f1c refactor: file tree with systems defninitions refactored to limit ODR issues
Relates to #32 as with this commit we created something like modules for derived quantities
2020-09-11 18:11:25 +02:00
rbrugo 1061d2ac56 Fixed indentation 2020-09-10 23:09:12 +02:00
rbrugo b0428d623a Added tests for localization 2020-09-10 23:09:12 +02:00
Mateusz Pusz 79558a6d72 refactor: systems defined in terms of SI moved under si namespace 2020-09-10 17:14:33 +02:00
Mateusz Pusz 9cd0cb4105 feat: two argument explicit cast support added 2020-09-10 13:01:38 +02:00
Mateusz Pusz 58daacfd58 fix: unit tests fixed for DOWNCAST_MODE = OFF 2020-09-10 11:33:58 +02:00
Mateusz Pusz 9527b39005 refactor: 💥 q_* UDL renamed to _q_*
We had some fun exploring the STD UDLs for potential collisions,
we have learnt our lesson and know how to proceed.
Now is high time to start behaving and obeying C++ rules.
2020-09-09 19:20:35 +02:00
Mateusz Pusz 3e9d5ca189 refactor: ♻️ unitless renamed to one
Resolves #27
2020-09-09 11:20:55 +02:00
Mateusz Pusz 563b358d5e feat!: 💥 dimensionless quantities refactored
Dimensionless quantities are now represented by quantity types rather
than by plain representation types. Only dimensionless quantities with
`unitless` unit are implicitly convertible from representation types.

`units::exp()` now is a function doing std::exp() on a representation
type (previous `units::exp` class template was renamed to
`units::exponent`).

BREAKING_CHANGE: gcc-9.3 support removed
BREAKING_CHANGE: `exp` and `Exp` renamed to `exponent` and `Exponent`
Resolves #27
Resolves #42
2020-09-08 11:02:16 +02:00
Mateusz Pusz 32779e01f0 Build system refactored to be comatible with ConanCenter 2020-09-06 00:00:06 +02:00
Mateusz Pusz 9cd8bd20a5 fmt tests fixed for MSVC 2020-09-05 22:54:57 +02:00
Mateusz Pusz b318e8d039 VS2019 support added 2020-09-04 23:06:57 +02:00
Mateusz Pusz af996aaed3 catch2 updated to 2.13.0 2020-08-17 21:56:58 +02:00
Mateusz Pusz d171f5451e NTTP ratio support added (resolves #49) 2020-06-27 19:15:46 +02:00
Mateusz Pusz fea072aeb5 warnings.cmake refactored 2020-05-29 10:07:01 +02:00
Ramzi Sabra 2f67372e17 refactored random distribution number wrapper and test 2020-05-28 11:25:15 +02:00
Ramzi Sabra 1ce7949cf5 added STL random number distributions wrappers 2020-05-28 11:25:15 +02:00
Mateusz Pusz ce301748dd Velocity renamed to Speed (resolves #103) 2020-05-10 17:31:47 +02:00
Mateusz Pusz 7e935a4108 Physical units put in the physical namespace (I am sorry) 2020-05-08 22:39:24 +02:00
Mateusz Pusz 1830735544 Unit tests for alias_unit added 2020-05-08 21:18:16 +02:00
Mateusz Pusz 68405ef7f6 Errors in CMake generator expressions fixed 2020-05-08 17:50:28 +02:00
Mateusz Pusz d18480879d Linking with Conan targets only when they exists (resolves #98) 2020-05-08 11:56:07 +02:00
Ramzi Sabra 17ce8d3dc8 replaced back unit test with one using exponent 2020-05-08 10:41:38 +02:00
Ramzi Sabra 6f8bddc832 added more prefixed SI units; added alias_unit and prefixed_alias_unit types 2020-05-08 10:41:38 +02:00
Mateusz Pusz ac0f10184c fabs() removed as abs() is enough 2020-05-06 18:17:49 +02:00
Mike Ford a8ca425e2d Added absolute functions (abs, fabs) and epsilon. 2020-05-06 13:21:31 +02:00
Mateusz Pusz ffd3af42d2 Standard vs Unicode formatting unit tests refactored 2020-05-05 21:26:30 +02:00
rbrugo 9ec5c77602 Added molar heat capacity 2020-04-10 16:36:08 +02:00
rbrugo 7dda8319a2 Added molar energy 2020-04-10 16:36:08 +02:00
rbrugo 89dbc30a92 Added permeability 2020-04-10 16:36:08 +02:00
rbrugo 596161cca5 Added permittivity 2020-04-10 16:36:08 +02:00
rbrugo 1cf0074483 Added charge density 2020-04-10 16:36:08 +02:00
rbrugo 7803da0bdf Added electric field strength 2020-04-10 16:36:08 +02:00
rbrugo 15138286e5 Added thermal conductivity 2020-04-10 16:36:08 +02:00
rbrugo 017e88ca28 Added heat capacity and specific heat capacity 2020-04-10 16:36:08 +02:00
rbrugo 07b5364c97 Added dynamic viscosity 2020-04-10 16:36:08 +02:00
rbrugo 4b4cc70764 Added luminance 2020-04-10 16:36:08 +02:00
rbrugo 8ddd7e1233 Added concentration 2020-04-10 16:36:08 +02:00