25#ifndef _WRAPS_C_TFCFLUX_H_
26#define _WRAPS_C_TFCFLUX_H_
35 unsigned int FLUX_FICK;
36 unsigned int FLUX_SECRETE;
37 unsigned int FLUX_UPTAKE;
Handle to a Flux instance.
Definition tfCFlux.h:44
Handle to a Fluxes instance.
Definition tfCFlux.h:52
Handle to a ParticleType instance.
Definition tfCParticle.h:119
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 tfFluxes_getSize(struct tfFluxesHandle *handle, int *size)
Get the 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.
HRESULT tfFluxes_getFlux(struct tfFluxesHandle *handle, unsigned int index, struct tfFluxHandle *flux)
Get a flux.
HRESULT tfFlux_getSize(struct tfFluxHandle *handle, unsigned int *size)
Get the size of the fluxes.
HRESULT tfFluxKindHandle_init(struct tfFluxKindHandle *handle)
Initialize an instance.
HRESULT tfFlux_getDecayCoef(struct tfFluxHandle *handle, unsigned int index, tfFloatP_t *decay_coef)
Get the decay coefficient of 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 tfFlux_setCoef(struct tfFluxHandle *handle, unsigned int index, tfFloatP_t coef)
Set the coefficient of a flux.
HRESULT tfFlux_getTarget(struct tfFluxHandle *handle, unsigned int index, tfFloatP_t *target)
Get the target of a flux.
HRESULT tfFlux_setCutoff(struct tfFluxHandle *handle, unsigned int index, tfFloatP_t cutoff)
Set the cutoff of a flux.
HRESULT tfFlux_getKind(struct tfFluxHandle *handle, unsigned int index, unsigned int *kind)
Get the kind of a flux.
HRESULT tfFlux_getCutoff(struct tfFluxHandle *handle, unsigned int index, tfFloatP_t *cutoff)
Set the cutoff of a flux.
HRESULT tfFlux_setTarget(struct tfFluxHandle *handle, unsigned int index, tfFloatP_t target)
Set the target 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_setDecayCoef(struct tfFluxHandle *handle, unsigned int index, tfFloatP_t decay_coef)
Set the decay coefficient of a flux.