From: SourceForge.net <no...@so...> - 2012-02-15 14:46:28
|
Support Requests item #3487869, was opened at 2012-02-15 06:34 Message generated for change (Comment added) made by raimc You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=744812&aid=3487869&group_id=139893 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Priority: 5 Private: No Submitted By: Michael Hopkins (hopper333) Assigned to: Nobody/Anonymous (nobody) Summary: How do I get at the constants in the ODE models? Initial Comment: Hi I have looked around in the documentation and can't find the answer to this so I thought I would ask here. If I want to adjust constants in the ODE model specifications after they have been loaded, where can I find them? Are there functions for this or do I need to go inside data structures and adjust them 'manually'. Is there a specification of the internal ODE model data structure somewhere? Otherwise, which source files should I be looking in? TIA Michael ---------------------------------------------------------------------- >Comment By: Rainer Machne (raimc) Date: 2012-02-15 06:46 Message: Hi Michael, the ODE Model structure itself only carries initial conidtions and initial parameter values. Actually set or retrieve current values for a simulation is done via the IntegratorInstance interface functions. This http://www.tbi.univie.ac.at/~raim/odeSolver/doc/api/group__integrator.html may in part be outdated but most of the functions are available. Probably more then those! I guess, you have seen my previous message suggesting you use the latest version at github? it probably has more interface functions for you. In short: You need a VariableIndex which you can obtain via the ODEModel structure, then you can use this index to get and set variable or parameter values in any of the derived IntegratorInstance objects, e.g., via IntegratorInstance_getVariableValue (integratorInstance_t *engine, variableIndex_t *vi); The examples folder should have several example C programs for these interfaces. Thanks, Rainer ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=744812&aid=3487869&group_id=139893 |