|
Tissue Forge C 0.2.1
Interactive, particle-based physics, chemistry and biology modeling and simulation environment
|


Go to the source code of this file.
Data Structures | |
| struct | tfFluxKindHandle |
| struct | tfFluxHandle |
| Handle to a Flux instance. More... | |
| struct | tfFluxesHandle |
| Handle to a Fluxes instance. More... | |
Functions | |
| HRESULT | tfFluxKindHandle_init (struct tfFluxKindHandle *handle) |
| Initialize an instance. | |
| HRESULT | tfFlux_getSize (struct tfFluxHandle *handle, unsigned int *size) |
| Get the size of the fluxes. | |
| HRESULT | tfFlux_getKind (struct tfFluxHandle *handle, unsigned int index, unsigned int *kind) |
| Get the kind of a flux. | |
| HRESULT | tfFlux_getTypeIds (struct tfFluxHandle *handle, unsigned int index, unsigned int *typeid_a, unsigned int *typeid_b) |
| Get the type ids of a flux. | |
| HRESULT | tfFlux_getCoef (struct tfFluxHandle *handle, unsigned int index, tfFloatP_t *coef) |
| Get the coefficient of a flux. | |
| HRESULT | tfFlux_setCoef (struct tfFluxHandle *handle, unsigned int index, tfFloatP_t coef) |
| Set the coefficient of a flux. | |
| HRESULT | tfFlux_getDecayCoef (struct tfFluxHandle *handle, unsigned int index, tfFloatP_t *decay_coef) |
| Get the decay coefficient of a flux. | |
| HRESULT | tfFlux_setDecayCoef (struct tfFluxHandle *handle, unsigned int index, tfFloatP_t decay_coef) |
| Set the decay coefficient of a flux. | |
| HRESULT | tfFlux_getTarget (struct tfFluxHandle *handle, unsigned int index, tfFloatP_t *target) |
| Get the target of a flux. | |
| HRESULT | tfFlux_setTarget (struct tfFluxHandle *handle, unsigned int index, tfFloatP_t target) |
| Set the target of a flux. | |
| HRESULT | tfFlux_getCutoff (struct tfFluxHandle *handle, unsigned int index, tfFloatP_t *cutoff) |
| Set the cutoff of a flux. | |
| HRESULT | tfFlux_setCutoff (struct tfFluxHandle *handle, unsigned int index, tfFloatP_t cutoff) |
| Set the cutoff of a flux. | |
| HRESULT | tfFluxes_getSize (struct tfFluxesHandle *handle, int *size) |
| Get the number of individual flux objects. | |
| HRESULT | tfFluxes_getFlux (struct tfFluxesHandle *handle, unsigned int index, struct tfFluxHandle *flux) |
| Get a flux. | |
| HRESULT | tfFluxes_fluxFick (struct tfFluxesHandle *handle, struct tfParticleTypeHandle *A, struct tfParticleTypeHandle *B, const char *name, tfFloatP_t k, tfFloatP_t decay, tfFloatP_t cutoff) |
| Creates and binds a Fickian diffusion flux. | |
| HRESULT | tfFluxes_secrete (struct tfFluxesHandle *handle, struct tfParticleTypeHandle *A, struct tfParticleTypeHandle *B, const char *name, tfFloatP_t k, tfFloatP_t target, tfFloatP_t decay, tfFloatP_t cutoff) |
| Creates a secretion flux by active pumping. | |
| HRESULT | tfFluxes_uptake (struct tfFluxesHandle *handle, struct tfParticleTypeHandle *A, struct tfParticleTypeHandle *B, const char *name, tfFloatP_t k, tfFloatP_t target, tfFloatP_t decay, tfFloatP_t cutoff) |
| Creates an uptake flux by active pumping. | |
| HRESULT tfFlux_getCoef | ( | struct tfFluxHandle * | handle, |
| unsigned int | index, | ||
| tfFloatP_t * | coef ) |
Get the coefficient of a flux.
| handle | populated handle |
| index | flux index |
| coef | flux coefficient |
| HRESULT tfFlux_getCutoff | ( | struct tfFluxHandle * | handle, |
| unsigned int | index, | ||
| tfFloatP_t * | cutoff ) |
Set the cutoff of a flux.
| handle | populated handle |
| index | flux index |
| cutoff | flux cutoff |
| HRESULT tfFlux_getDecayCoef | ( | struct tfFluxHandle * | handle, |
| unsigned int | index, | ||
| tfFloatP_t * | decay_coef ) |
Get the decay coefficient of a flux.
| handle | populated handle |
| index | flux index |
| decay_coef | flux decay coefficient |
| HRESULT tfFlux_getKind | ( | struct tfFluxHandle * | handle, |
| unsigned int | index, | ||
| unsigned int * | kind ) |
Get the kind of a flux.
| handle | populated handle |
| index | flux index |
| kind | flux kind |
| HRESULT tfFlux_getSize | ( | struct tfFluxHandle * | handle, |
| unsigned int * | size ) |
Get the size of the fluxes.
| handle | populated handle |
| size | flux size |
| HRESULT tfFlux_getTarget | ( | struct tfFluxHandle * | handle, |
| unsigned int | index, | ||
| tfFloatP_t * | target ) |
Get the target of a flux.
| handle | populated handle |
| index | flux index |
| target | flux target |
| HRESULT tfFlux_getTypeIds | ( | struct tfFluxHandle * | handle, |
| unsigned int | index, | ||
| unsigned int * | typeid_a, | ||
| unsigned int * | typeid_b ) |
Get the type ids of a flux.
| handle | populated handle |
| index | flux index |
| typeid_a | id of first type |
| typeid_b | id of second type |
| HRESULT tfFlux_setCoef | ( | struct tfFluxHandle * | handle, |
| unsigned int | index, | ||
| tfFloatP_t | coef ) |
Set the coefficient of a flux.
| handle | populated handle |
| index | flux index |
| coef | flux coefficient |
| HRESULT tfFlux_setCutoff | ( | struct tfFluxHandle * | handle, |
| unsigned int | index, | ||
| tfFloatP_t | cutoff ) |
Set the cutoff of a flux.
| handle | populated handle |
| index | flux index |
| cutoff | flux cutoff |
| HRESULT tfFlux_setDecayCoef | ( | struct tfFluxHandle * | handle, |
| unsigned int | index, | ||
| tfFloatP_t | decay_coef ) |
Set the decay coefficient of a flux.
| handle | populated handle |
| index | flux index |
| decay_coef | flux decay coefficient |
| HRESULT tfFlux_setTarget | ( | struct tfFluxHandle * | handle, |
| unsigned int | index, | ||
| tfFloatP_t | target ) |
Set the target of a flux.
| handle | populated handle |
| index | flux index |
| target | flux target |
| HRESULT tfFluxes_fluxFick | ( | struct tfFluxesHandle * | handle, |
| struct tfParticleTypeHandle * | A, | ||
| struct tfParticleTypeHandle * | B, | ||
| const char * | name, | ||
| tfFloatP_t | k, | ||
| tfFloatP_t | decay, | ||
| tfFloatP_t | cutoff ) |
Creates and binds a Fickian diffusion flux.
Fickian diffusion flux implements the analogous reaction:
![\[ a.S \leftrightarrow b.S ; k \left(1 - \frac{r}{r_{cutoff}} \right)\left(a.S - b.S\right) ,
\]](../../form_5.png)
![\[ a.S \rightarrow 0 ; \frac{d}{2} a.S ,
\]](../../form_6.png)
![\[ b.S \rightarrow 0 ; \frac{d}{2} b.S ,
\]](../../form_7.png)
where 






| handle | handle to populate |
| A | first type |
| B | second type |
| name | name of species |
| k | flux transport coefficient |
| decay | flux decay coefficient |
| cutoff | flux cutoff distance |
| HRESULT tfFluxes_getFlux | ( | struct tfFluxesHandle * | handle, |
| unsigned int | index, | ||
| struct tfFluxHandle * | flux ) |
Get a flux.
| handle | populated handle |
| index | flux index |
| flux | flux |
| HRESULT tfFluxes_getSize | ( | struct tfFluxesHandle * | handle, |
| int * | size ) |
Get the number of individual flux objects.
| handle | populated handle |
| size | number of individual flux objects |
| HRESULT tfFluxes_secrete | ( | struct tfFluxesHandle * | handle, |
| struct tfParticleTypeHandle * | A, | ||
| struct tfParticleTypeHandle * | B, | ||
| const char * | name, | ||
| tfFloatP_t | k, | ||
| tfFloatP_t | target, | ||
| tfFloatP_t | decay, | ||
| tfFloatP_t | cutoff ) |
Creates a secretion flux by active pumping.
Secretion flux implements the analogous reaction:
![\[ a.S \rightarrow b.S ; k \left(1 - \frac{r}{r_{cutoff}} \right)\left(a.S - a.S_{target} \right) ,
\]](../../form_15.png)
![\[ a.S \rightarrow 0 ; \frac{d}{2} a.S ,
\]](../../form_16.png)
![\[ b.S \rightarrow 0 ; \frac{d}{2} b.S ,
\]](../../form_17.png)
where 






| handle | handle to populate |
| A | first type |
| B | second type |
| name | name of species |
| k | flux transport coefficient |
| target | flux target |
| decay | flux decay coefficient |
| cutoff | flux cutoff distance |
| HRESULT tfFluxes_uptake | ( | struct tfFluxesHandle * | handle, |
| struct tfParticleTypeHandle * | A, | ||
| struct tfParticleTypeHandle * | B, | ||
| const char * | name, | ||
| tfFloatP_t | k, | ||
| tfFloatP_t | target, | ||
| tfFloatP_t | decay, | ||
| tfFloatP_t | cutoff ) |
Creates an uptake flux by active pumping.
Uptake flux implements the analogous reaction:
![\[ a.S \rightarrow b.S ; k \left(1 - \frac{r}{r_{cutoff}}\right)\left(b.S - b.S_{target} \right)\left(a.S\right) ,
\]](../../form_18.png)
![\[ a.S \rightarrow 0 ; \frac{d}{2} a.S ,
\]](../../form_16.png)
![\[ b.S \rightarrow 0 ; \frac{d}{2} b.S ,
\]](../../form_17.png)
where 






| handle | handle to populate |
| A | first type |
| B | second type |
| name | name of species |
| k | flux transport coefficient |
| target | flux target |
| decay | flux decay coefficient |
| cutoff | flux cutoff distance |
| HRESULT tfFluxKindHandle_init | ( | struct tfFluxKindHandle * | handle | ) |
Initialize an instance.
| handle | handle to populate |