36 #include "LQRadiotherapyCellKiller.hpp" 37 #include "CancerCellMutationState.hpp" 38 #include "StalkCellMutationState.hpp" 39 #include "BaseUnits.hpp" 41 template<
unsigned DIM>
44 cancerousLinearRadiosensitivity(0.3 *
unit::per_gray),
45 cancerousQuadraticRadiosensitivity(0.03 *
unit::per_gray_squared),
46 normalLinearRadiosensitivity(0.15 *
unit::per_gray),
47 normalQuadraticRadiosensitivity(0.05 *
unit::per_gray_squared),
48 mDose(2.0 *
unit::gray),
55 mAlphaMax(0.3 *
unit::per_gray),
56 mBetaMax(0.03 *
unit::per_gray_squared),
62 template<
unsigned DIM>
68 template<
unsigned DIM>
74 template<
unsigned DIM>
80 template<
unsigned DIM>
86 template<
unsigned DIM>
92 template<
unsigned DIM>
98 template<
unsigned DIM>
104 template<
unsigned DIM>
110 template<
unsigned DIM>
116 template<
unsigned DIM>
122 template<
unsigned DIM>
124 units::quantity<unit::per_absorbed_dose_squared> beta)
130 template<
unsigned DIM>
132 units::quantity<unit::per_absorbed_dose_squared> beta)
138 template<
unsigned DIM>
150 double oxygen = pCell->GetCellData()->GetItem(
"oxygen");
153 units::quantity<unit::per_absorbed_dose> alpha =
mAlphaMax / oer_alpha;
154 units::quantity<unit::per_absorbed_dose_squared> beta =
mBetaMax / (oer_beta * oer_beta);
155 double death_prob = (1.0 - exp(-alpha *
mDose - beta *
mDose *
mDose));
157 if (!pCell->HasApoptosisBegun() && RandomNumberGenerator::Instance()->ranf() < death_prob)
159 pCell->StartApoptosis();
164 double death_prob = (1.0
168 if (!pCell->HasApoptosisBegun() && RandomNumberGenerator::Instance()->ranf() < death_prob)
170 pCell->StartApoptosis();
179 template<
unsigned DIM>
182 for (
typename AbstractCellPopulation<DIM>::Iterator cell_iter = this->mpCellPopulation->Begin();
183 cell_iter != this->mpCellPopulation->End(); ++cell_iter)
189 template<
unsigned DIM>
207 #include "SerializationExportWrapperForCpp.hpp" void CheckAndLabelSingleCellForApoptosis(CellPtr pCell)
std::vector< units::quantity< unit::time > > mRadiationTimes
void SetTimeOfRadiation(std::vector< units::quantity< unit::time > > t)
void OutputCellKillerParameters(out_stream &rParamsFile)
void SetAlphaMax(units::quantity< unit::per_absorbed_dose > value)
void SetBetaMax(units::quantity< unit::per_absorbed_dose_squared > value)
units::quantity< unit::time > GetReferenceTimeScale()
void SetOerBetaMax(double value)
void SetOerAlphaMax(double value)
units::quantity< unit::per_absorbed_dose > mAlphaMax
void SetDoseInjected(units::quantity< unit::absorbed_dose > d)
units::quantity< unit::per_absorbed_dose_squared > cancerousQuadraticRadiosensitivity
units::quantity< unit::absorbed_dose > mDose
LQRadiotherapyCellKiller(AbstractCellPopulation< DIM > *pCellPopulation)
void CheckAndLabelCellsForApoptosisOrDeath()
void SetOerAlphaMin(double value)
units::quantity< unit::per_absorbed_dose_squared > normalQuadraticRadiosensitivity
void SetCancerousRadiosensitivity(units::quantity< unit::per_absorbed_dose > alpha, units::quantity< unit::per_absorbed_dose_squared > beta)
static BaseUnits * Instance()
units::quantity< unit::per_absorbed_dose_squared > mBetaMax
void SetOerBetaMin(double value)
units::quantity< unit::per_absorbed_dose > normalLinearRadiosensitivity
void SetOerConstant(double value)
units::quantity< unit::per_absorbed_dose > cancerousLinearRadiosensitivity
void SetNormalRadiosensitivity(units::quantity< unit::per_absorbed_dose > alpha, units::quantity< unit::per_absorbed_dose_squared > beta)