mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-16 10:08:36 +03:00
0030800: Foundation Classes, UnitsAPI - poise dynamic viscosity unit is not defined correctly
Definition of Poise unit corrected. Added test bugs fclasses bug30800
This commit is contained in:
parent
6522304c17
commit
d430d12909
@ -260,7 +260,7 @@ pound force per square inch psi
|
|||||||
M L T I K N J P S
|
M L T I K N J P S
|
||||||
DYNAMIC VISCOSITY 1 -1 -1 0 0 0 0 0 0
|
DYNAMIC VISCOSITY 1 -1 -1 0 0 0 0 0 0
|
||||||
....................................................................................................................................
|
....................................................................................................................................
|
||||||
poise Po 1 gf/cm\xB2.s
|
poise Po 1 g/cm/s
|
||||||
poiseuille Pl 10 Po
|
poiseuille Pl 10 Po
|
||||||
....................................................................................................................................
|
....................................................................................................................................
|
||||||
M L T I K N J P S
|
M L T I K N J P S
|
||||||
|
@ -263,7 +263,7 @@ static const char UnitsAPI_Units_dat[] =
|
|||||||
" M L T I K N J P S\n"
|
" M L T I K N J P S\n"
|
||||||
"DYNAMIC VISCOSITY 1 -1 -1 0 0 0 0 0 0\n"
|
"DYNAMIC VISCOSITY 1 -1 -1 0 0 0 0 0 0\n"
|
||||||
"....................................................................................................................................\n"
|
"....................................................................................................................................\n"
|
||||||
"poise Po 1 gf/cm\xB2.s\n"
|
"poise Po 1 g/cm/s\n"
|
||||||
"poiseuille Pl 10 Po\n"
|
"poiseuille Pl 10 Po\n"
|
||||||
"....................................................................................................................................\n"
|
"....................................................................................................................................\n"
|
||||||
" M L T I K N J P S\n"
|
" M L T I K N J P S\n"
|
||||||
|
14
tests/bugs/fclasses/bug30800
Normal file
14
tests/bugs/fclasses/bug30800
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
puts "# =========================================================================================="
|
||||||
|
puts "# 0030800: Foundation Classes, UnitsAPI - poise dynamic viscosity unit is not defined correctly"
|
||||||
|
puts "# =========================================================================================="
|
||||||
|
puts ""
|
||||||
|
|
||||||
|
puts "Check that 1 Poise is 0.1 Pa*s"
|
||||||
|
if { [regexp {result: ([0-9.e+-]+)} [unitconvtoSI 1. Po] res poise_si] } {
|
||||||
|
checkreal "Poise in SI (Pa*s)" $poise_si 0.1 1e-6 1e-6
|
||||||
|
} else {
|
||||||
|
puts "Error: cannot convert Poise to SI"
|
||||||
|
}
|
||||||
|
|
||||||
|
puts "Check that 1 Poise is 0.001 kg/cm/s"
|
||||||
|
checkreal "Poise in kg/cm/s" [unit 1. Po kg/cm/s] 0.001 1e-6 1e-6
|
Loading…
x
Reference in New Issue
Block a user