Skip to content

Dosing not working. #1045

Answered by kylebaron
Ravua1992 asked this question in Q&A
Jan 25, 2023 · 5 comments · 2 replies
Discussion options

You must be logged in to vote

Hi @Ravua1992 -

First thing:

double V_D = (2/3*pi*pow(r_D,3))/1.0e15;

should be

double V_D = (2.0/3.0*pi*pow(r_D,3))/1.0e15;

I think 2/3 will evaluate to 0 and you can see all of the outputs are NaN.

Next:

This statement is in $MAIN

double R0_m1 = CD86_p;

but CD86_p is a compartment I think. Until you figure out the model, you might put this math under $ODE; just to prevent this from happening.

Once I do that, I'm still getting numerical problems solving the model. I'd go back through the math and see where there might be other issues to resolve.

Kyle

Replies: 5 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by Ravua1992
Comment options

You must be logged in to vote
1 reply
@Ravua1992
Comment options

Comment options

You must be logged in to vote
1 reply
@Ravua1992
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants