wmayer
cad0d01883
Base: modernize C++11
...
* remove redundant void-arg
* use nullptr
* replace deprecated headers
2022-01-25 20:21:30 +01:00
0penBrain
66c513c698
[Core] Fix Quantity construction with value as double + unit as string
2022-01-21 14:56:11 +01:00
Preslav
5030d8bb6d
Added stiffness units to FreeCAD [mN/m, N/m, kN/m, MN/m]
2021-08-16 12:27:41 +01:00
wmayer
e4f98b4512
Base: add convenience functions to create a QString from quantity or double
2021-04-20 14:07:20 +02:00
donovaly
6c67300d62
[Base] add electrical conductivity
...
- this is necessary to perform electrodynamics simulations. Since the typical values are in the range of 1e6 S/m, we need the new units kS and MS
- since this is for simulations, also add electrical conductivity to the FEM material cards
2021-03-25 17:13:52 +01:00
luz paz
01b21e0d06
Base: Fix header uniformity, whitespace, and doxygen
...
[skip ci]
2020-11-22 18:12:16 +01:00
donovaly
d1b354fc6b
add units Gauss, Weber and Oersted
2020-01-07 07:36:22 -03:00
donovaly
68ea38cc8d
add the units Ohm and Siemens
2020-01-05 15:00:46 +01:00
luz.paz
011e5aedfa
src/Base: [skip ci] fix header uniformity
...
This PR fixes header uniformity across all `src/Base` files
2019-12-25 11:38:58 +01:00
donovaly
b255475d7c
missing parts from from commit 33b8054228
...
- also add keV and MeV since these are the units used in practice
2019-12-24 13:31:00 +01:00
wmayer
2484cd56ef
Units: extend parser to accept mph, sqft and cft. Fix a bug in imperial civil schema
2019-12-23 19:55:21 +01:00
donovaly
a6a043a6f2
also add unit THz as requested
2019-12-23 16:49:45 +01:00
donovaly
edd97de6a2
add units Mpsi, cal and kcal
...
- also ass missing parts from commit 0021efbf
2019-12-23 16:49:45 +01:00
wmayer
e1b7ef10c7
add posibility to use a unit schema other then the system schema to represent a quantity
2019-12-21 13:35:14 +01:00
donovaly
26196ae612
add mJ and kW
...
- also some fixes
- add conversions for forces
2019-12-19 13:31:12 +01:00
donovaly
4b99ee28ce
generate QuantityLexer.c
...
- also set proper unit conversions
- fix MilliWatt and MilliMole
2019-12-19 13:31:12 +01:00
donovaly
94bae36cee
add the following units:
...
- mmol
- ml
- bar
- mbar
- kJ
- kWh
- eV
- C
- T
- F (p, n, u, m)
- H (n, u, m)
2019-12-19 13:31:12 +01:00
wmayer
617a8d7598
Support for Frequency in quantity parser
2019-10-21 11:49:55 +02:00
wmayer
5ae635ac64
fix various flaws detected by PVS
2019-03-01 22:52:41 +01:00
wandererfan
fefe83ecbb
Add ImperialCivil Units Schema
...
- units for civil engineering - ft, ft2, ft3, mph,
and angles as degrees/minutes/seconds
2018-12-06 08:57:17 -03:00
wmayer
9e8be1aa23
extend QuantityFormat to set denominator independent of user settings
2018-09-17 12:38:46 +02:00
hokieengr
f8dcd64fa2
Added support for fractional inch user setting.
2018-09-17 10:32:04 +02:00
wmayer
13b3abef35
direct support of Volt in units framework
2017-09-04 12:08:29 +02:00
wmayer
dd66a9c9fc
add method toFormat to get number format from character
2017-08-20 18:50:13 +02:00
Kunda
de2392eb18
source typo fixes pt5
...
+ cleaning up some more non-short-URLs
Issue #2914
2017-03-04 13:07:13 -03:00
wmayer
47b41a7883
fixes #0002460 : Use keyword 'explicit' for Quantity constructor
2016-11-05 23:21:42 +01:00
wmayer
61b62ee314
add class QuantityFormat to control user string of Quantity
...
do some code refactoration to reduce duplicate code
2016-08-06 19:06:29 +02:00
Eivind Kvedalen
d62f9425fb
Quantity: Added -= and += operators.
2016-04-02 12:01:04 +02:00
Eivind Kvedalen
337bd00de0
Added Quantity::operator>(...).
2015-02-13 21:53:58 +01:00
wmayer
f53c22417e
+ remove unneeded semicolons
2014-05-08 17:32:23 +02:00
jriegel
8da9922f18
fix user preferred
2013-12-10 23:32:25 +01:00
jriegel
f265f551c2
Switching Quantity parser to UTF8
2013-12-09 23:50:52 +01:00
jriegel
21c517eff0
Some fixes in unit system
2013-12-08 19:48:13 +01:00
jriegel
b16190181b
some fixes and comparison interface for Unit and Quantity python objects
2013-12-06 00:06:58 +01:00
jriegel
69a4bbc46a
Implement the three major unit system schemas
2013-12-05 18:16:31 +01:00
jriegel
4837cc7061
fix error of gcc and remove old parser code.
2013-12-05 08:42:33 +01:00
jriegel
27becf2e7b
Some fixes in the unit system
2013-12-03 19:57:29 +01:00
jriegel
6ff12d9a4b
new userString methode
2013-12-03 19:03:12 +01:00
jriegel
87c8d5b022
Switching the UnitsApi to the new Quantity system
2013-12-03 19:03:08 +01:00
jriegel
a5739ee1ea
fis for fix for spelling....
2013-12-02 21:06:10 +01:00
jriegel
15648c1bcc
Fix some spelling
2013-12-02 19:50:51 +01:00
jriegel
0612ebcb28
Adding Unit definition to the python modul
2013-11-30 21:46:36 +01:00
jriegel
62e71613b2
Shifting standard unit definitions
2013-11-30 17:58:24 +01:00
jriegel
128075f196
Add limits to the InputField
2013-11-29 18:24:17 +01:00
jriegel
ae8898561a
implementing UnitsCalculator and disable changes in Sketcher
2013-11-09 07:34:56 +01:00
wmayer
3a27371ba9
+ Fix gcc build errors/improve whitespaces
2013-09-26 15:39:25 +02:00
jriegel
c8cc4a179a
integrate Quantities into PropertyView and activate preferences again
2013-09-25 21:59:24 +02:00
jriegel
7fe834ffbe
first finished implementation of Quantity parser
2013-09-24 11:00:51 +02:00
jriegel
bf3371a95d
implementing Quantity further
2013-09-10 18:27:24 +02:00
jriegel
8d53370ffe
Start new Unit and Quantity system
2013-08-11 23:03:34 +02:00