CellML Discussion List

Text archives Help


[cellml-discussion] Procedural code generation added to cellml.org


Chronological Thread 
  • From: ak.miller at auckland.ac.nz (Andrew Miller)
  • Subject: [cellml-discussion] Procedural code generation added to cellml.org
  • Date: Fri, 21 Jul 2006 16:58:58 +1200

Hi all,

The cellml.org website now allows you to convert CellML models into C
source code, which can be used to run ODE initial value problems.

The new functionality can be accessed in two ways:
* You can select a repository model from http://www.cellml.org/models,
and then
click on the "Procedural code" tab. This will show you HTML
formatted information
about the generated code, and include source code you can copy and
paste into your own code.
* You can temporary upload your own model onto our site at
http://www.cellml.org/ccgs/. The URL
of the uploaded model includes 32 characters of random data known
only to you, and it will expire
if no one accesses it for 20 minutes, so you can even use this
facility with unpublished/proprietary
models (finished models which you want to share with others should
instead go through the model
submission process at http://www.cellml.org/models). You will then
be able to view the code for the
model. In either case, you can also download a C file which you can
link with a suitable integrator.

Note that the only language currently offered is C. However, we plan to
further extend the supported set of languages. The CellML team would be
interested to know what languages would be most useful to you. Any
discussion on this should be sent to the cellml-discussion at cellml.org
mailing list.

Note that many repository models are insufficiently complete for the
process to work correctly (it requires that the model is neither
over-constrained, due to excess equations, nor under-constrained). Many
of the repository models leave out initial conditions or parameters, and
so are under-constrained. Attempting to view the code for an
under-constrained model will give an error, listing the variables that
could not be computed.

For an example of a correctly constrained model, please see
http://www.cellml.org/models/beard_2005_version01/pmr_view_model_code

Best Regards,
Andrew Miller




  • [cellml-discussion] Procedural code generation added to cellml.org, Andrew Miller, 07/21/2006

Archive powered by MHonArc 2.6.18.

Top of page