libroadrunner C API
Functions
Boundary species group

Get information about boundary species. More...

Functions

C_DECL_SPEC RRVectorPtr rrcCallConv getBoundarySpeciesConcentrations (RRHandle handle)
 Retrieve the concentrations for all the boundary species in a vector. More...
 
C_DECL_SPEC bool rrcCallConv setBoundarySpeciesByIndex (RRHandle handle, const unsigned int index, const double value)
 Set the concentration for a particular boundary species. More...
 
C_DECL_SPEC bool rrcCallConv getBoundarySpeciesByIndex (RRHandle handle, const int index, double *value)
 Retrieve the concentration for a particular floating species. More...
 
C_DECL_SPEC bool rrcCallConv setBoundarySpeciesConcentrations (RRHandle handle, const RRVectorPtr vec)
 Set the boundary species concentration to the vector vec. More...
 
C_DECL_SPEC int rrcCallConv getNumberOfBoundarySpecies (RRHandle handle)
 Returns the number of boundary species in the model. More...
 
C_DECL_SPEC RRStringArrayPtr rrcCallConv getBoundarySpeciesIds (RRHandle handle)
 Obtain the list of boundary species Ids. More...
 
C_DECL_SPEC RRStringArrayPtr rrcCallConv getBoundarySpeciesConcentrationIds (RRHandle handle)
 Obtain the list of boundary species concentration Ids. More...
 

Detailed Description

Get information about boundary species.

Function Documentation

◆ getBoundarySpeciesByIndex()

C_DECL_SPEC bool rrcCallConv getBoundarySpeciesByIndex ( RRHandle  handle,
const int  index,
double *  value 
)

Retrieve the concentration for a particular floating species.

Parameters
[in]handleHandle to a RoadRunner instance
indexThe index to the boundary species (corresponds to position in getBoundarySpeciesIds(RRHandle handle))
valueThe value returned by the method
Returns
Returns true if successful

◆ getBoundarySpeciesConcentrationIds()

C_DECL_SPEC RRStringArrayPtr rrcCallConv getBoundarySpeciesConcentrationIds ( RRHandle  handle)

Obtain the list of boundary species concentration Ids.

Parameters
[in]handleHandle to a RoadRunner instance
Returns
Returns null if it fails, if successful it returns a pointer to a RRStringArrayPtr struct

◆ getBoundarySpeciesConcentrations()

C_DECL_SPEC RRVectorPtr rrcCallConv getBoundarySpeciesConcentrations ( RRHandle  handle)

Retrieve the concentrations for all the boundary species in a vector.

Example:

C_DECL_SPEC RRVectorPtr rrcCallConv getBoundarySpeciesConcentrations(RRHandle handle)
Retrieve the concentrations for all the boundary species in a vector.
Structure for a simple vector of doubles.
Definition: rrc_types.h:58
Parameters
[in]handleHandle to a RoadRunner instance
Returns
Returns the vector of boundary species concentrations or null if an error occurred

◆ getBoundarySpeciesIds()

C_DECL_SPEC RRStringArrayPtr rrcCallConv getBoundarySpeciesIds ( RRHandle  handle)

Obtain the list of boundary species Ids.

Parameters
[in]handleHandle to a RoadRunner instance
Returns
Returns null if it fails, if successful it returns a pointer to a RRStringArrayPtr struct

◆ getNumberOfBoundarySpecies()

C_DECL_SPEC int rrcCallConv getNumberOfBoundarySpecies ( RRHandle  handle)

Returns the number of boundary species in the model.

Parameters
[in]handleHandle to a RoadRunner instance

◆ setBoundarySpeciesByIndex()

C_DECL_SPEC bool rrcCallConv setBoundarySpeciesByIndex ( RRHandle  handle,
const unsigned int  index,
const double  value 
)

Set the concentration for a particular boundary species.

Parameters
[in]handleHandle to a RoadRunner instance
indexThe index to the boundary species (corresponds to position in getBoundarySpeciesIds(void))
valueThe concentration of the species to set
Returns
Returns true if successful

◆ setBoundarySpeciesConcentrations()

C_DECL_SPEC bool rrcCallConv setBoundarySpeciesConcentrations ( RRHandle  handle,
const RRVectorPtr  vec 
)

Set the boundary species concentration to the vector vec.

Example:

setVectorElement (myVector, 0, 1.2);
setVectorElement (myVector, 1, 5.7);
setVectorElement (myVector, 2, 3.4);
C_DECL_SPEC int rrcCallConv getNumberOfBoundarySpecies(RRHandle handle)
Returns the number of boundary species in the model.
C_DECL_SPEC bool rrcCallConv setBoundarySpeciesConcentrations(RRHandle handle, const RRVectorPtr vec)
Set the boundary species concentration to the vector vec.
C_DECL_SPEC RRVectorPtr rrcCallConv createVector(int size)
Create a new vector with a given size.
C_DECL_SPEC int rrcCallConv setVectorElement(RRVectorPtr vector, int index, double value)
Set a particular element in a vector.
void * RRHandle
Void pointer to a RoadRunner instance.
Definition: rrc_types.h:50
Parameters
[in]handleHandle to a RoadRunner instance
vecA vector of boundary species concentrations
Returns
Returns true if successful