@@ -66,6 +66,8 @@ public abstract partial class HeatFluxTestsBase
66
66
protected abstract double MicrowattsPerSquareMeterInOneWattPerSquareMeter { get ; }
67
67
protected abstract double MilliwattsPerSquareMeterInOneWattPerSquareMeter { get ; }
68
68
protected abstract double NanowattsPerSquareMeterInOneWattPerSquareMeter { get ; }
69
+ protected abstract double PoundsForcePerFootSecondInOneWattPerSquareMeter { get ; }
70
+ protected abstract double PoundsPerSecondCubedInOneWattPerSquareMeter { get ; }
69
71
protected abstract double WattsPerSquareFootInOneWattPerSquareMeter { get ; }
70
72
protected abstract double WattsPerSquareInchInOneWattPerSquareMeter { get ; }
71
73
protected abstract double WattsPerSquareMeterInOneWattPerSquareMeter { get ; }
@@ -84,6 +86,8 @@ public abstract partial class HeatFluxTestsBase
84
86
protected virtual double MicrowattsPerSquareMeterTolerance { get { return 1e-5 ; } }
85
87
protected virtual double MilliwattsPerSquareMeterTolerance { get { return 1e-5 ; } }
86
88
protected virtual double NanowattsPerSquareMeterTolerance { get { return 1e-5 ; } }
89
+ protected virtual double PoundsForcePerFootSecondTolerance { get { return 1e-5 ; } }
90
+ protected virtual double PoundsPerSecondCubedTolerance { get { return 1e-5 ; } }
87
91
protected virtual double WattsPerSquareFootTolerance { get { return 1e-5 ; } }
88
92
protected virtual double WattsPerSquareInchTolerance { get { return 1e-5 ; } }
89
93
protected virtual double WattsPerSquareMeterTolerance { get { return 1e-5 ; } }
@@ -106,6 +110,8 @@ public void WattPerSquareMeterToHeatFluxUnits()
106
110
AssertEx . EqualTolerance ( MicrowattsPerSquareMeterInOneWattPerSquareMeter , wattpersquaremeter . MicrowattsPerSquareMeter , MicrowattsPerSquareMeterTolerance ) ;
107
111
AssertEx . EqualTolerance ( MilliwattsPerSquareMeterInOneWattPerSquareMeter , wattpersquaremeter . MilliwattsPerSquareMeter , MilliwattsPerSquareMeterTolerance ) ;
108
112
AssertEx . EqualTolerance ( NanowattsPerSquareMeterInOneWattPerSquareMeter , wattpersquaremeter . NanowattsPerSquareMeter , NanowattsPerSquareMeterTolerance ) ;
113
+ AssertEx . EqualTolerance ( PoundsForcePerFootSecondInOneWattPerSquareMeter , wattpersquaremeter . PoundsForcePerFootSecond , PoundsForcePerFootSecondTolerance ) ;
114
+ AssertEx . EqualTolerance ( PoundsPerSecondCubedInOneWattPerSquareMeter , wattpersquaremeter . PoundsPerSecondCubed , PoundsPerSecondCubedTolerance ) ;
109
115
AssertEx . EqualTolerance ( WattsPerSquareFootInOneWattPerSquareMeter , wattpersquaremeter . WattsPerSquareFoot , WattsPerSquareFootTolerance ) ;
110
116
AssertEx . EqualTolerance ( WattsPerSquareInchInOneWattPerSquareMeter , wattpersquaremeter . WattsPerSquareInch , WattsPerSquareInchTolerance ) ;
111
117
AssertEx . EqualTolerance ( WattsPerSquareMeterInOneWattPerSquareMeter , wattpersquaremeter . WattsPerSquareMeter , WattsPerSquareMeterTolerance ) ;
@@ -127,6 +133,8 @@ public void FromValueAndUnit()
127
133
AssertEx . EqualTolerance ( 1 , HeatFlux . From ( 1 , HeatFluxUnit . MicrowattPerSquareMeter ) . MicrowattsPerSquareMeter , MicrowattsPerSquareMeterTolerance ) ;
128
134
AssertEx . EqualTolerance ( 1 , HeatFlux . From ( 1 , HeatFluxUnit . MilliwattPerSquareMeter ) . MilliwattsPerSquareMeter , MilliwattsPerSquareMeterTolerance ) ;
129
135
AssertEx . EqualTolerance ( 1 , HeatFlux . From ( 1 , HeatFluxUnit . NanowattPerSquareMeter ) . NanowattsPerSquareMeter , NanowattsPerSquareMeterTolerance ) ;
136
+ AssertEx . EqualTolerance ( 1 , HeatFlux . From ( 1 , HeatFluxUnit . PoundForcePerFootSecond ) . PoundsForcePerFootSecond , PoundsForcePerFootSecondTolerance ) ;
137
+ AssertEx . EqualTolerance ( 1 , HeatFlux . From ( 1 , HeatFluxUnit . PoundPerSecondCubed ) . PoundsPerSecondCubed , PoundsPerSecondCubedTolerance ) ;
130
138
AssertEx . EqualTolerance ( 1 , HeatFlux . From ( 1 , HeatFluxUnit . WattPerSquareFoot ) . WattsPerSquareFoot , WattsPerSquareFootTolerance ) ;
131
139
AssertEx . EqualTolerance ( 1 , HeatFlux . From ( 1 , HeatFluxUnit . WattPerSquareInch ) . WattsPerSquareInch , WattsPerSquareInchTolerance ) ;
132
140
AssertEx . EqualTolerance ( 1 , HeatFlux . From ( 1 , HeatFluxUnit . WattPerSquareMeter ) . WattsPerSquareMeter , WattsPerSquareMeterTolerance ) ;
@@ -149,6 +157,8 @@ public void As()
149
157
AssertEx . EqualTolerance ( MicrowattsPerSquareMeterInOneWattPerSquareMeter , wattpersquaremeter . As ( HeatFluxUnit . MicrowattPerSquareMeter ) , MicrowattsPerSquareMeterTolerance ) ;
150
158
AssertEx . EqualTolerance ( MilliwattsPerSquareMeterInOneWattPerSquareMeter , wattpersquaremeter . As ( HeatFluxUnit . MilliwattPerSquareMeter ) , MilliwattsPerSquareMeterTolerance ) ;
151
159
AssertEx . EqualTolerance ( NanowattsPerSquareMeterInOneWattPerSquareMeter , wattpersquaremeter . As ( HeatFluxUnit . NanowattPerSquareMeter ) , NanowattsPerSquareMeterTolerance ) ;
160
+ AssertEx . EqualTolerance ( PoundsForcePerFootSecondInOneWattPerSquareMeter , wattpersquaremeter . As ( HeatFluxUnit . PoundForcePerFootSecond ) , PoundsForcePerFootSecondTolerance ) ;
161
+ AssertEx . EqualTolerance ( PoundsPerSecondCubedInOneWattPerSquareMeter , wattpersquaremeter . As ( HeatFluxUnit . PoundPerSecondCubed ) , PoundsPerSecondCubedTolerance ) ;
152
162
AssertEx . EqualTolerance ( WattsPerSquareFootInOneWattPerSquareMeter , wattpersquaremeter . As ( HeatFluxUnit . WattPerSquareFoot ) , WattsPerSquareFootTolerance ) ;
153
163
AssertEx . EqualTolerance ( WattsPerSquareInchInOneWattPerSquareMeter , wattpersquaremeter . As ( HeatFluxUnit . WattPerSquareInch ) , WattsPerSquareInchTolerance ) ;
154
164
AssertEx . EqualTolerance ( WattsPerSquareMeterInOneWattPerSquareMeter , wattpersquaremeter . As ( HeatFluxUnit . WattPerSquareMeter ) , WattsPerSquareMeterTolerance ) ;
@@ -211,6 +221,14 @@ public void ToUnit()
211
221
AssertEx . EqualTolerance ( NanowattsPerSquareMeterInOneWattPerSquareMeter , ( double ) nanowattpersquaremeterQuantity . Value , NanowattsPerSquareMeterTolerance ) ;
212
222
Assert . Equal ( HeatFluxUnit . NanowattPerSquareMeter , nanowattpersquaremeterQuantity . Unit ) ;
213
223
224
+ var poundforceperfootsecondQuantity = wattpersquaremeter . ToUnit ( HeatFluxUnit . PoundForcePerFootSecond ) ;
225
+ AssertEx . EqualTolerance ( PoundsForcePerFootSecondInOneWattPerSquareMeter , ( double ) poundforceperfootsecondQuantity . Value , PoundsForcePerFootSecondTolerance ) ;
226
+ Assert . Equal ( HeatFluxUnit . PoundForcePerFootSecond , poundforceperfootsecondQuantity . Unit ) ;
227
+
228
+ var poundpersecondcubedQuantity = wattpersquaremeter . ToUnit ( HeatFluxUnit . PoundPerSecondCubed ) ;
229
+ AssertEx . EqualTolerance ( PoundsPerSecondCubedInOneWattPerSquareMeter , ( double ) poundpersecondcubedQuantity . Value , PoundsPerSecondCubedTolerance ) ;
230
+ Assert . Equal ( HeatFluxUnit . PoundPerSecondCubed , poundpersecondcubedQuantity . Unit ) ;
231
+
214
232
var wattpersquarefootQuantity = wattpersquaremeter . ToUnit ( HeatFluxUnit . WattPerSquareFoot ) ;
215
233
AssertEx . EqualTolerance ( WattsPerSquareFootInOneWattPerSquareMeter , ( double ) wattpersquarefootQuantity . Value , WattsPerSquareFootTolerance ) ;
216
234
Assert . Equal ( HeatFluxUnit . WattPerSquareFoot , wattpersquarefootQuantity . Unit ) ;
@@ -241,6 +259,8 @@ public void ConversionRoundTrip()
241
259
AssertEx . EqualTolerance ( 1 , HeatFlux . FromMicrowattsPerSquareMeter ( wattpersquaremeter . MicrowattsPerSquareMeter ) . WattsPerSquareMeter , MicrowattsPerSquareMeterTolerance ) ;
242
260
AssertEx . EqualTolerance ( 1 , HeatFlux . FromMilliwattsPerSquareMeter ( wattpersquaremeter . MilliwattsPerSquareMeter ) . WattsPerSquareMeter , MilliwattsPerSquareMeterTolerance ) ;
243
261
AssertEx . EqualTolerance ( 1 , HeatFlux . FromNanowattsPerSquareMeter ( wattpersquaremeter . NanowattsPerSquareMeter ) . WattsPerSquareMeter , NanowattsPerSquareMeterTolerance ) ;
262
+ AssertEx . EqualTolerance ( 1 , HeatFlux . FromPoundsForcePerFootSecond ( wattpersquaremeter . PoundsForcePerFootSecond ) . WattsPerSquareMeter , PoundsForcePerFootSecondTolerance ) ;
263
+ AssertEx . EqualTolerance ( 1 , HeatFlux . FromPoundsPerSecondCubed ( wattpersquaremeter . PoundsPerSecondCubed ) . WattsPerSquareMeter , PoundsPerSecondCubedTolerance ) ;
244
264
AssertEx . EqualTolerance ( 1 , HeatFlux . FromWattsPerSquareFoot ( wattpersquaremeter . WattsPerSquareFoot ) . WattsPerSquareMeter , WattsPerSquareFootTolerance ) ;
245
265
AssertEx . EqualTolerance ( 1 , HeatFlux . FromWattsPerSquareInch ( wattpersquaremeter . WattsPerSquareInch ) . WattsPerSquareMeter , WattsPerSquareInchTolerance ) ;
246
266
AssertEx . EqualTolerance ( 1 , HeatFlux . FromWattsPerSquareMeter ( wattpersquaremeter . WattsPerSquareMeter ) . WattsPerSquareMeter , WattsPerSquareMeterTolerance ) ;
0 commit comments