|
TPCCLIB
|
Simulation of A-V difference using compartmental model. More...
Go to the source code of this file.
Functions | |
| int | simC3vb (double *t, double *cab, const int nr, double f, double k1, double k2, double k3, double k4, double k5, double k6, double *cvb, double *ct) |
Simulation of A-V difference using compartmental model.
Definition in file sim_av.c.
| int simC3vb | ( | double * | t, |
| double * | cab, | ||
| const int | nr, | ||
| double | f, | ||
| double | k1, | ||
| double | k2, | ||
| double | k3, | ||
| double | k4, | ||
| double | k5, | ||
| double | k6, | ||
| double * | cvb, | ||
| double * | ct ) |
Simulate venous blood TAC using 1-3 tissue compartment model (compartments in series)
Memory for cvb must be allocated in the calling program. To retrieve the tissue TAC, pointer to allocated memory for ct can be given.
The units of rate constants must be related to the time unit; 1/min and min, or 1/sec and sec.
| t | Array of time values; must be in increasing order. |
| cab | Array of arterial blood activities. |
| nr | Number of values (samples) in TACs. |
| f | Perfusion; must be f>=K1. |
| k1 | Rate constant of the model; must be K1<=f. |
| k2 | Rate constant of the model. |
| k3 | Rate constant of the model. |
| k4 | Rate constant of the model. |
| k5 | Rate constant of the model. |
| k6 | Rate constant of the model. |
| cvb | Pointer for venous blood TAC array to be simulated; must be allocated |
| ct | Pointer for tissue TAC to be simulated, or NULL |
Definition at line 88 of file sim_av.c.