Advertising
- ncilfone
- Monday, July 16th, 2012 at 9:12:56am MDT
- double Total = 0;
- Pos p;
- for(p.x = 0; p.x < nextGrid.getRange().x; ++p.x)
- for(p.y = 0; p.y < nextGrid.getRange().y; ++p.y)
- {
- // // Degradation of sTNF
- // nextGrid.setTNF(p, nextGrid.TNF(p) * TNFdegRate);
- // Total += nextGrid.TNF(p);
- // Degradation of sTNF
- nextGrid.incTNF(p, (-1.0 * nextGrid.TNF(p) * _PARAM(PARAM_GR_K_DEG) * dt));
- Total += nextGrid.TNF(p);
- // Degradation of il10
- nextGrid.incil10(p, (-1.0 * nextGrid.il10(p) * _PARAM(PARAM_GR_I_K_DEG) * dt));
- // Degradation of CCL2
- nextGrid.incCCL2(p, (-1.0 * nextGrid.CCL2(p) * _PARAM(PARAM_GR_CHEMOKINE_K_DEG) * dt));
- // Degradation of CCL5
- nextGrid.incCCL5(p, (-1.0 * nextGrid.CCL5(p) * _PARAM(PARAM_GR_CHEMOKINE_K_DEG) * dt));
- // Degradation of CXCL9
- nextGrid.incCXCL9(p, (-1.0 * nextGrid.CXCL9(p) * _PARAM(PARAM_GR_CHEMOKINE_K_DEG) * dt));
- if (_PARAM(PARAM_GR_SEC_RATE_ATTRACTANT) != 0)
- {
- // Degradation of MacAttractant
- nextGrid.incmacAttractant(p, (-1.0 * nextGrid.macAttractant(p) * _PARAM(PARAM_GR_CHEMOKINE_K_DEG) * dt));
- }
- // Unbinding of sTNF from ShedTNFR2
- nextGrid.incshedTNFR2(p, (-1.0 * nextGrid.shedTNFR2(p) * _PARAM(PARAM_GR_KD2) * _PARAM(PARAM_GR_K_ON2) * dt));
- // Addition of sTNF from unbinding from ShedTNFR2
- nextGrid.incTNF(p, (1.0 * nextGrid.shedTNFR2(p) * _PARAM(PARAM_GR_KD2) * _PARAM(PARAM_GR_K_ON2) * dt));
- }
- std::cout << "Total Conc: " << Total << std::endl;
advertising
Update the Post
Either update this post and resubmit it with changes, or make a new post.
You may also comment on this post.
Please note that information posted here will expire by default in one month. If you do not want it to expire, please set the expiry time above. If it is set to expire, web search engines will not be allowed to index it prior to it expiring. Items that are not marked to expire will be indexable by search engines. Be careful with your passwords. All illegal activities will be reported and any information will be handed over to the authorities, so be good.