glowgreen.clearance module¶
- class glowgreen.clearance.Clearance_1m(model, model_params, distance)¶
Bases:
objectClass for the dose rate clearance function from a radioactive person.
Supply an exponential or biexponential model of the dose rate at some distance (between 1 and 3 m) from the radioactive person as a function of the time from administration of the radioactive substance.
The dose rate at 1 m is calculated assuming it drops off with distance as the inverse 1.5 power.
- Parameters:
model (str) – Type of clearance, either ‘exponential’ or ‘biexponential’.
model_params (list) – Model parameters in terms of dose rate at
distance. Ifmodelis ‘exponential’,model_paramsis [initial dose rate (uSv/h) atdistance, effective half-life (h)]. Ifmodelis ‘biexponential’,model_paramsis [initial dose rate (uSv/h) atdistance, fraction of first component (0 to 1), half-life (h) of first component, half-life (h) of second component].distance (int or float) – Distance (m) from radioactive person.
- Raises:
ValueError – If
modelnot one of ‘exponential’ or ‘biexponential’.TypeError – If
model_paramsnot list.ValueError – If
model_paramsnot length 2 for exponential.ValueError – If
model_paramsnot length 4 for biexponential.TypeError – If element in
model_paramsnot int or float.TypeError – If
distancenot int or float.ValueError – If
distancenot between 1 and 3 m, inclusive.
- at_timedelta(timedelta, init=None)¶
Return the dose rate (uSv/h) at 1 m from the radioactive person at
timedelta(h) after administration. Ifinitis provided and is not None, instead evaluate attimedeltathe clearance function with initial valueinit.For example, set
initto the administered activity to return the activity on board the person attimedelta.- Parameters:
timedelta (int or float) – Time (h) from administration.
init (int or float, optional) – Initial value of clearance function. Default is the initial dose rate at 1 m.
- Raises:
TypeError – If
timedeltanot int or float.ValueError – If
timedeltaless than 0.TypeError – If
initnot None and not int or float.ValueError – If
initnot None and less than 0.
- Returns:
The dose rate at 1 m from the radioactive person at
timedeltaifinitis None, else the clearance function with initial valueinitevaluated attimedelta.- Return type:
float
- get_timedelta(val, init=None)¶
Return the time (h) from administration to when the dose rate at 1 m from the radioactive person reaches
val(uSv/h). Ifinitis provided and is not None, the clearance function is used with initial valueinitinstead of the initial dose rate at 1 m.For example, set
initto the administered activity to return the time for the activity on board the radioactive person to reachval.- Parameters:
val (int or float) – Value to be reached by clearance function. If
initis None, this is a dose rate (uSv/h) at 1 m.init (int or float, optional) – Initial value of the clearance function. Default is the initial dose rate at 1 m.
- Raises:
TypeError – If
valnot int or float.ValueError – If
valnot greater than 0.TypeError – If
initnot None and not int or float.ValueError – If
initnot None and not greater than 0.ValueError – If
valgreater than or equal to initial value of clearance function.
- Returns:
Time (h) from administration to when the clearance function reaches
val.- Return type:
float
- residence_time()¶
Return the whole body residence time (a.k.a. time-integrated activity coefficient) for the radioactive person.
- Returns:
Residence time (h).
- Return type:
float