Get information about boundary species.
More...
Get information about boundary species.
◆ getBoundarySpeciesByIndex()
C_DECL_SPEC bool rrcCallConv getBoundarySpeciesByIndex |
( |
RRHandle |
handle, |
|
|
const int |
index, |
|
|
double * |
value |
|
) |
| |
Retrieve the concentration for a particular floating species.
- Parameters
-
- Returns
- Returns true if successful
◆ getBoundarySpeciesConcentrationIds()
Obtain the list of boundary species concentration Ids.
- Parameters
-
[in] | handle | Handle to a RoadRunner instance |
- Returns
- Returns null if it fails, if successful it returns a pointer to a RRStringArrayPtr struct
◆ getBoundarySpeciesConcentrations()
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] | handle | Handle to a RoadRunner instance |
- Returns
- Returns the vector of boundary species concentrations or null if an error occurred
◆ getBoundarySpeciesIds()
Obtain the list of boundary species Ids.
- Parameters
-
[in] | handle | Handle 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] | handle | Handle 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] | handle | Handle to a RoadRunner instance |
| index | The index to the boundary species (corresponds to position in getBoundarySpeciesIds(void)) |
| value | The 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:
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] | handle | Handle to a RoadRunner instance |
| vec | A vector of boundary species concentrations |
- Returns
- Returns true if successful