Open TwinGan opened 3 weeks ago
@TwinGan and @FedericoTartarini If I interprete correctly, we can fix the difference either by making an addition to R or removing the addition in py. I am fine with both and suggest we go for the version, that is closer to the reference values. @FedericoTartarini What was the source again for the reference values for 2-node model?
@TwinGan and @marcelschweiker please find below my comments.
The code from Gagge is
The two-node code from Mark Fountain is as follows.
I have also attached both documents for your reference. Please let me know what do you think.
Gagge et al_1986_A standard predictive index of human reponse to the thermal environemnt.pdf
Fountain_A derivation of the Gagge 2-node model.pdf
I am not sure why this is happening. It must be something related to how we initialise the simulation. One must be skipping the first run.
I think there is an issue in pythermalcomfort and we need to return w with more decimals, I think I have already partially fixed this in the new version of pythermalcomfort. I should not be returning w with only one dwecimal value. Please have a look at the code in development. If the code is not there yet I will fix it as soon as I have time.
@TwinGan, Marcel and I looked into the code and we have noticed that the code is actually the same. The difference you mentioned in point 1 is not there. However, we identified an issue caused by the iteration and this is what it is causing the error.
I will fix point 2 and 3 in the new version of pythermalcomfort.
Differences caused by additional code logic unique to Python
e_skin
,m_rsw
(regsw
in R) When w > w_max, thee_rsw
will be assign toprsw * emax
which will make m_rsw become different because the reassign logic.