Using an appropriate integration method
Posted: Thu Feb 09, 2012 4:28 am
I'm working on a model which has 4 states, as follows:
When I use "cnexp" the mechanism compiles but there is error during simulation.
When I use "sparse" method I cannot compile the mechanism.
When i use "runge" method everything works fine but as far as I understand this method of integration is not what you advice us to use. Do you?
What should I do to be able to use CVODE and variable time step methods too?
Other useful info:
1 ms < tau1 < 8 ms
3 ms < tau2 < 100 ms
100 ms < tau2 < 1000 ms
Code: Select all
A' = -A/tau1
B' = -B/tau2
C' = -C/tau3
g' = (wC*C + wB*B)*(inf-g)/tau
When I use "sparse" method I cannot compile the mechanism.
When i use "runge" method everything works fine but as far as I understand this method of integration is not what you advice us to use. Do you?
What should I do to be able to use CVODE and variable time step methods too?
Other useful info:
1 ms < tau1 < 8 ms
3 ms < tau2 < 100 ms
100 ms < tau2 < 1000 ms