View Single Post
Posts: 203 | Thanked: 152 times | Joined on May 2009 @ Austria
#5
Originally Posted by Netweaver View Post
how about the user dependent parameters (alcohol clearance rate based on weight/sex) ?

Long long time ago I made a very similar text only program in a programmable calculator (in Basic ... good old days ) and I specifically went to the doctor for 4 specifically timed blood tests, after drinking a clearly measured amount of alcohol to see what my absoption rate and alcohol clearance rate was. Of course the absorption rate is previous food intake dependent.

I even went through the hassle of reading my GP study books on forensic medicine (alcohol testing specific) to get the proper formulas used in court (by doctors) ...

Anyway, my personal parameters were not that far off the empiral formulas taking into account weight and sex.

How do you take those in consideration in your program ?

Luckily I had a very understanding GP, interested in what I was trying to achieve ...

This is my calc function:

Code:
//returns additive permill
float Alcohol::calcAlc(int drinkType) {
    float gkw;
    float A;
    float c;

    float amountMl = m_drinkDefs->at(drinkType).amountMl;
    float percentage = m_drinkDefs->at(drinkType).percentage;

    // http://de.wikipedia.org/wiki/Blutalkoholkonzentration
    gkw = 2.447 - 0.09516 * m_sett->bodyAge + 0.1074 * m_sett->bodyHeight + 0.3362 * m_sett->bodyWeight;
    A = amountMl * percentage * 0.8;
    c = 0.8 * A / (1.055 * gkw);

    return c/100;
}

Ah, the dependence of the gender is still missing, i will correct this too. Its a empiric formula from wikipedia and i think it gives good results...
It depends on weight, bodyhight, age, and in future gender.
I still dont know how i can observe food in the calculation