|
TPCCLIB
|
Simulation of 3-tissue CM with compartments 2 and 3 in parallel. More...
#include "tpcclibConfig.h"#include <stdio.h>#include <stdlib.h>#include <math.h>#include <time.h>#include <string.h>#include "tpccm.h"Go to the source code of this file.
Functions | |
| int | simC3p (double *t, double *ca, const int nr, const double k1, const double k2, const double k3, const double k4, const double k5, const double k6, double *ct, double *cta, double *ctb, double *ctc) |
| int | simC3vp (double *t, double *ca, double *cb, const int nr, const double k1, const double k2, const double k3, const double k4, const double k5, const double k6, const double f, const double vb, const double fa, const int vvm, double *cpet, double *cta, double *ctb, double *ctc, double *ctab, double *ctvb) |
Simulation of 3-tissue CM with compartments 2 and 3 in parallel.
Definition in file sim3cmp.c.
| int simC3p | ( | double * | t, |
| double * | ca, | ||
| const int | nr, | ||
| const double | k1, | ||
| const double | k2, | ||
| const double | k3, | ||
| const double | k4, | ||
| const double | k5, | ||
| const double | k6, | ||
| double * | ct, | ||
| double * | cta, | ||
| double * | ctb, | ||
| double * | ctc ) |
Simulate tissue TAC using 1-3 tissue compartment model (2nd and 3rd compartments in parallel) and plasma TAC, at plasma TAC times.
Memory for ct must be allocated in the calling program. To retrieve the separate tissue compartment TACs, pointer to allocated memory for cta, ctb and/or ctc can be given; if compartmental TACs are not required, NULL pointer can be given instead.
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. |
| ca | Array of arterial activities. |
| nr | Number of values in TACs. |
| k1 | Rate constant of the model. |
| 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. |
| ct | Pointer for TAC array to be simulated; must be allocated. |
| cta | Pointer for 1st compartment TAC to be simulated, or NULL. |
| ctb | Pointer for 2nd compartment TAC to be simulated, or NULL. |
| ctc | Pointer for 3rd compartment TAC to be simulated, or NULL. |
Definition at line 33 of file sim3cmp.c.
| int simC3vp | ( | double * | t, |
| double * | ca, | ||
| double * | cb, | ||
| const int | nr, | ||
| const double | k1, | ||
| const double | k2, | ||
| const double | k3, | ||
| const double | k4, | ||
| const double | k5, | ||
| const double | k6, | ||
| const double | f, | ||
| const double | vb, | ||
| const double | fa, | ||
| const int | vvm, | ||
| double * | cpet, | ||
| double * | cta, | ||
| double * | ctb, | ||
| double * | ctc, | ||
| double * | ctab, | ||
| double * | ctvb ) |
Simulate tissue TAC using 1-3 tissue compartment model (2nd and 3rd compartments in parallel) and plasma TAC, at plasma TAC times, considering also arterial and venous vasculature.
Memory for ct must be allocated in the calling program. To retrieve the separate tissue compartment TACs, pointer to allocated memory for cta, ctb, ctc, ctab, and/or ctvb can be given; if compartmental TACs are not required, NULL pointer can be given instead.
The units of rate constants must be related to the time unit; 1/min and min, or 1/sec and sec. If blood flow is set to 0, function assumes that f>>k1, and Cvb=Cab.,
| t | Array of time values. |
| ca | Array of arterial plasma activities. |
| cb | Array of arterial blood activities. |
| nr | Number of values in TACs. |
| k1 | Rate constant of the model. |
| 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. |
| f | Blood flow; if 0, function assumes that f>>k1, and Cvb=Cab. |
| vb | Vascular volume fraction. |
| fa | Arterial fraction of vascular volume. |
| vvm | Vascular volume modelling: set to 0 to use Cpet = Vb*Cb + (1-Vb)*Ct, or set to 1 to use Cpet = Vb*Cb + Ct. |
| cpet | Pointer for TAC array to be simulated; must be allocated. |
| cta | Pointer for 1st compartment TAC to be simulated, or NULL. |
| ctb | Pointer for 2nd compartment TAC to be simulated, or NULL. |
| ctc | Pointer for 3rd compartment TAC to be simulated, or NULL. |
| ctab | Pointer for arterial TAC in tissue, or NULL. |
| ctvb | Pointer for venous TAC in tissue, or NULL. |
Definition at line 140 of file sim3cmp.c.