Skip to content

Commit 962cd26

Browse files
committed
FDS Verification: Add header to file
1 parent ec41e9e commit 962cd26

File tree

2 files changed

+39
-36
lines changed

2 files changed

+39
-36
lines changed
Lines changed: 35 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,35 @@
1-
0.00,0.00000,8.00000,400.00000,0.00000
2-
0.05,15.06456,7.98968,232.55814,-0.38744
3-
0.10,24.77772,7.96255,163.93443,-0.69082
4-
0.15,31.96033,7.92102,126.58228,-0.96759
5-
0.20,37.66209,7.86598,103.09278,-1.23258
6-
0.25,42.39045,7.79787,86.95652,-1.49130
7-
0.30,46.42981,7.71691,75.18797,-1.74632
8-
0.35,49.95567,7.62327,66.22517,-1.99894
9-
0.40,53.08397,7.51705,59.17160,-2.24994
10-
0.45,55.89536,7.39830,53.47594,-2.49979
11-
0.50,58.44817,7.26708,48.78049,-2.74878
12-
0.55,60.78600,7.12343,44.84305,-2.99713
13-
0.60,62.94225,6.96738,41.49378,-3.24498
14-
0.65,64.94312,6.79894,38.61004,-3.49243
15-
0.70,66.80949,6.61814,36.10108,-3.73957
16-
0.75,68.55832,6.42499,33.89831,-3.98644
17-
0.80,70.20354,6.21950,31.94888,-4.23310
18-
0.85,71.75674,6.00168,30.21148,-4.47958
19-
0.90,73.22767,5.77154,28.65330,-4.72590
20-
0.95,74.62461,5.52909,27.24796,-4.97210
21-
1.00,75.95465,5.27434,25.97403,-5.21818
22-
1.05,77.22391,5.00728,24.81390,-5.46417
23-
1.10,78.43769,4.72792,23.75297,-5.71007
24-
1.15,79.60066,4.43627,22.77904,-5.95590
25-
1.20,80.71688,4.13233,21.88184,-6.20166
26-
1.25,81.78997,3.81611,21.05263,-6.44737
27-
1.30,82.82315,3.48760,20.28398,-6.69302
28-
1.35,83.81927,3.14680,19.56947,-6.93863
29-
1.40,84.78091,2.79373,18.90359,-7.18420
30-
1.45,85.71036,2.42839,18.28154,-7.42973
31-
1.50,86.60972,2.05076,17.69912,-7.67522
32-
1.55,87.48087,1.66086,17.15266,-7.92069
33-
1.60,88.32553,1.25869,16.63894,-8.16612
34-
1.65,89.14526,0.84425,16.15509,-8.41153
1+
Time,x,z,u,w
2+
0.00000,0.00000,8.00000,400.00000,0.00000
3+
0.05000,15.06456,7.98968,232.55814,-0.38744
4+
0.10000,24.77772,7.96255,163.93443,-0.69082
5+
0.15000,31.96033,7.92102,126.58228,-0.96759
6+
0.20000,37.66209,7.86598,103.09278,-1.23258
7+
0.25000,42.39045,7.79787,86.95652,-1.49130
8+
0.30000,46.42981,7.71691,75.18797,-1.74632
9+
0.35000,49.95567,7.62327,66.22517,-1.99894
10+
0.40000,53.08397,7.51705,59.17160,-2.24994
11+
0.45000,55.89536,7.39830,53.47594,-2.49979
12+
0.50000,58.44817,7.26708,48.78049,-2.74878
13+
0.55000,60.78600,7.12343,44.84305,-2.99713
14+
0.60000,62.94225,6.96738,41.49378,-3.24498
15+
0.65000,64.94312,6.79894,38.61004,-3.49243
16+
0.70000,66.80949,6.61814,36.10108,-3.73957
17+
0.75000,68.55832,6.42499,33.89831,-3.98644
18+
0.80000,70.20354,6.21950,31.94888,-4.23310
19+
0.85000,71.75674,6.00168,30.21148,-4.47958
20+
0.90000,73.22767,5.77154,28.65330,-4.72590
21+
0.95000,74.62461,5.52909,27.24796,-4.97210
22+
1.00000,75.95465,5.27434,25.97403,-5.21818
23+
1.05000,77.22391,5.00728,24.81390,-5.46417
24+
1.10000,78.43769,4.72792,23.75297,-5.71007
25+
1.15000,79.60066,4.43627,22.77904,-5.95590
26+
1.20000,80.71688,4.13233,21.88184,-6.20166
27+
1.25000,81.78997,3.81611,21.05263,-6.44737
28+
1.30000,82.82315,3.48760,20.28398,-6.69302
29+
1.35000,83.81927,3.14680,19.56947,-6.93863
30+
1.40000,84.78091,2.79373,18.90359,-7.18420
31+
1.45000,85.71036,2.42839,18.28154,-7.42973
32+
1.50000,86.60972,2.05076,17.69912,-7.67522
33+
1.55000,87.48087,1.66086,17.15266,-7.92069
34+
1.60000,88.32553,1.25869,16.63894,-8.16612
35+
1.65000,89.14526,0.84425,16.15509,-8.41153

Verification/Sprinklers_and_Sprays/flat_fire.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11

22
# This script just computes the exact solution of the flat_fire case.
33

4+
import pandas as pd
45
import numpy as np
56

67
V_0 = 400
@@ -28,6 +29,7 @@
2829
- g * tvec / 2 \
2930
- g / (2 * K * V_0)
3031

31-
mat = np.column_stack((tvec, xexact, yexact, uexact, vexact))
32-
np.savetxt('flat_fire.csv', mat, delimiter=',', fmt=['%.2f', '%.5f', '%.5f', '%.5f', '%.5f'])
32+
df = pd.DataFrame(np.column_stack((tvec, xexact, yexact, uexact, vexact)), columns=['Time', 'x', 'z', 'u', 'w'])
33+
34+
df.to_csv('flat_fire.csv', float_format='%.5f', index=False)
3335

0 commit comments

Comments
 (0)