Commit Graph

45 Commits

Author SHA1 Message Date
Chris Hennes
3b42d4afac Base: PR6497 move return statement to new line 2022-03-29 12:34:34 -05:00
wmayer
e4435cdcba Base/App: fix warnings from code analysers:
* convert old-style-casts to explicit C++ casts where possible
* make some implicit conversions explicit
2022-03-06 23:49:30 +01:00
Uwe
9ec0bcdcf2 [Base] Units and Uui: remove unused includes 2022-02-24 11:08:56 +01:00
wmayer
4d87039635 Base: modernize C++11
* remove redundant void-arg
* use nullptr
* replace deprecated headers
2022-01-25 20:21:30 +01:00
wmayer
88ded38ca1 Base: only handle Base::ParserError exceptions for quantity expressions 2022-01-22 01:15:12 +01:00
Preslav
4ab37fc0ca Added stiffness units to FreeCAD [mN/m, N/m, kN/m, MN/m] 2021-08-16 12:27:41 +01:00
donovaly
bcc669b930 [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
d5f6c096b8 Base: Fix header uniformity, whitespace, and doxygen
[skip ci]
2020-11-22 18:12:16 +01:00
qingfengxia
5da01ab8b0 Base: add VolExpansionCoeff and complete KinematicViscosity unit 2020-05-23 00:03:09 +02:00
luz.paz
d36c3ebe57 Trivial code formatting for some {.cpp,.h} files 2020-04-06 12:55:27 +02:00
donovaly
66354b3c58 add units Gauss, Weber and Oersted 2020-01-07 07:36:22 -03:00
donovaly
05dadb4c75 add the units Ohm and Siemens 2020-01-05 15:00:46 +01:00
luz.paz
6f11ed298a 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
82dc8e88f5 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
3500451a04 Basic support for Frequency as unit 2019-10-20 18:14:56 +02:00
Dietmar Czekay
c3f0288ea5 add VacuumPermittivity and fix adding user values to material editor in FEM 2019-09-04 11:29:09 -03:00
Bernd Hahnebach
aa67d56361 Units: add AngleOfFriction as another parameter with Angle unit 2019-04-30 07:41:56 +02:00
wmayer
239c20b71f PVS: V705 It is possible that 'else' block was forgotten or commented out, thus altering the program's operation logics. 2019-02-17 19:54:24 +01:00
Bernd Hahnebach
57a0acffc0 Units: add various Material stress properties 2019-02-14 21:11:22 +01:00
wmayer
71f0f1a6d5 density is not an SI base unit 2018-03-28 11:47:08 +02:00
wmayer
7480544967 fix typo 2018-03-11 18:34:18 +01:00
Frederic Bonnard
651d2fd751 Fix "Unit overflow in pow()" error
During tests on Debian/Ubuntu :
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=836983 a problem was
found when raising a unit to a negative power on some architectures.
By default some architectures have "char" being
unsigned such as the ones listed here and others (
https://wiki.debian.org/ArchitectureSpecificsMemo ).
I just forced the sign-ness of pow()'s argument which fixes the issue.
2017-12-08 17:38:35 +01:00
wmayer
9aab910981 add derived unit electric potential 2017-10-16 21:56:13 +02:00
Oliver Oxtoby
38fa712032 Base: Add DynamicViscosity and SpecificEnergy units 2017-08-20 16:50:11 +02:00
wmayer
1673ab801e use specialized exception classes 2017-04-28 18:49:11 +02:00
Bernd Hahnebach
0f90e25638 Base: add unit for kinematic viscosity 2017-03-18 22:07:24 +01:00
wmayer
7716e94042 fix whitespaces 2016-12-21 17:08:36 +01:00
vdwalts
9a3b750fb7 Base: Units for FEM, new heat and heat flux functions 2016-12-21 11:27:41 -02:00
kgoao
96a705dc7d FEM: FemConstraintHeatflux: Add DFLUX option to heat flux constraint 2016-12-21 11:27:41 -02:00
wmayer
464a8f3860 Coverity issues:
129643
129654
129689
129714
2016-08-16 14:05:52 +02:00
wmayer
1c89c566c9 whitespace improvements 2016-08-04 17:45:04 +02:00
vdwalts
f9c5661096 Base: Units: add units for thermomechanical analysis 2016-08-04 17:45:04 +02:00
wmayer
7544444d63 issue #0002625: Wrong dimension (str) from Unit 2016-07-17 13:14:06 +02:00
wmayer
09e1483f10 improve whitespaces 2016-07-17 12:46:46 +02:00
wwmayer
e7441149f0 + fix many minor warnings, activate -Wall for gcc 2015-08-02 22:32:18 +02:00
Przemo Firszt
7d8fb99cea Units: Add Density to internal schema
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-07-31 14:04:14 -03:00
Eivind Kvedalen
c61c12d834 Unit: Added overflow/underflow checking. 2015-06-25 10:40:00 +02:00
jriegel
d5d9ea9c30 Add unti support to Sketcher 2013-12-15 22:47:47 +01:00
jriegel
272e60671b some fixes and comparison interface for Unit and Quantity python objects 2013-12-06 00:06:58 +01:00
jriegel
eb5cc8ed6c Implement the three major unit system schemas 2013-12-05 18:16:31 +01:00
jriegel
714f591294 Make Unit string output parsably and add Pascale and Newtons 2013-11-10 16:33:35 +01:00
jriegel
44c07da571 integrate Quantities into PropertyView and activate preferences again 2013-09-25 21:59:24 +02:00
wmayer
2df5fcc63f + Fix gcc build error 2013-09-25 11:11:59 +02:00
jriegel
3ee7b20927 first finished implementation of Quantity parser 2013-09-24 11:00:51 +02:00
jriegel
e23febcf32 Start new Unit and Quantity system 2013-08-11 23:03:34 +02:00