Skip to content

Instantly share code, notes, and snippets.

@n7275
Created January 16, 2024 21:10
Show Gist options
  • Save n7275/f05c30d53b180ffe93e1911e3997081e to your computer and use it in GitHub Desktop.
Save n7275/f05c30d53b180ffe93e1911e3997081e to your computer and use it in GitHub Desktop.
NASSP Crew Heat Output
%Heat Output Data
function [heat,water] = heatOutput(temperature)
radiated = [4.351581809194265 162.4752545248869
5.004325259515571 157.88909313725492
7.3232822540781015 140.690987933635
8.30239742956006 134.54880750377075
9.22998022738507 127.34198246606336
10.260627780523976 122.51013386123681
11.239742956005934 116.8593278657617
12.665472071181416 107.85079656862746
13.764829461196246 103.59221813725492
14.89854176964904 98.18709935897436
17.02854671280277 89.50615101809956
18.230968858131487 85.247572586727
19.5364557587741 80.66141119909504
21.288556599110233 75.09250094268478
23.504448838358872 72.3899415535445
24.941176470588236 69.87179487179489
26.51050420168068 68.70463329562595
27.936233316856157 65.63354308069383
28.81228373702422 64.28226338612369
30.50254572417202 59.073694381598784
31.646564508156207 56.66595965309202
33.14285714285714 50.96153846153848
34.17165101334652 45.85572209653094
35.428571428571416 34.61538461538464
36.168067226890756 22.43589743589746
36.63865546218487 12.82051282051276
37.042016806722685 4.166666666666686
37.2792881858626 -3.6128393665158285
37.675852694018786 -8.932527337858204
38.11387790410282 -16.91736189668174
38.6034354918438 -21.4625754147813
39.65469599604549 -28.096130279034696
41.30373208106772 -31.977988310708895
42.21070192782996 -32.272812971342375
43.81851211072666 -29.27542892156862
44.94191794364805 -24.165134803921575];
evap = [-4.27150271873455 0.00613928747759
-3.13779041028175 0.00651058303642
-2.41633712308452 0.00607740488445
-1.34453781512605 0.00532813578911
0.53781512605042 0.00532813578911
2.42770637666831 0.00836706083059
3.56141868512110 0.00948094750709
4.69513099357390 0.01040918640417
5.82884330202669 0.01276072494345
7.73109243697479 0.01864847526188
10.01680672268900 0.02397661105098
12.57142857142850 0.03196881473465
14.52100840336130 0.03996101841831
16.44451309935730 0.04828133340516
17.45454770143350 0.05236558455232
18.97990608007900 0.05992144917458
20.00760892592330 0.06695219579220
21.24990731586750 0.07636056004192
22.52533366287690 0.08810278209002
24.19498269896190 0.10668612480962
25.41114681166580 0.12332944823432
26.42461690558570 0.13745415011827
27.47244191794360 0.15651398880504
29.04786032059880 0.19006319465675
30.07482698961930 0.21522509904554
31.30645081562030 0.25086019030456
31.90422639644090 0.27291514649925
32.80672268907560 0.30636780787369
33.68209342560550 0.34183688460766
34.68697478991590 0.40616384017552
35.20229856648540 0.45180534674509
35.71762234305480 0.50231391926503
36.18141374196730 0.55268635008007
36.74826989619370 0.61939578548377
37.13476272862080 0.66755591359409
37.62432031636180 0.72677755522799
38.03657933761740 0.77834122596095
38.44883835887290 0.82735223972694
38.91262975778540 0.87575061582084
39.47948591201180 0.92299178742305
40.35553633217990 0.97057950154685
41.37146034884540 0.99641106399710
42.62296094908550 0.99991185069467
43.65360850222440 0.99991185069467
44.54683638161140 1.00000000000000];
## A = 238.26894186034866;
## B = -28.892473214983937;
## C = 3.815968139135153;
## D = -0.32027892457900586;
## E = 0.014107335195805381;
## F = -0.0002986813863242517;
## G = 0.000002380908084852954;
##
## heat = A + ...
## B.*temperature + ...
## C.*temperature.^2 + ...
## D.*temperature.^3 + ...
## E.*temperature.^4 + ...
## F.*temperature.^5 + ...
## G.*temperature.^6;
## return;
heat = interp1(radiated(:,1),radiated(:,2),temperature,'linear','extrap');
water = interp1(evap(:,1),evap(:,2),temperature,'linear','extrap');
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment