Skip to content

Instantly share code, notes, and snippets.

Alan Garny agarny

Block or report user

Report or block agarny

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@agarny
agarny / parabola_dae_model.sedml
Created Oct 10, 2019
SED-ML L1V4: example showing how to use CVODE+KINSOL
View parabola_dae_model.sedml
<?xml version='1.0' encoding='UTF-8'?>
<sedML level="1" version="4" xmlns="http://sed-ml.org/sed-ml/level1/version4" xmlns:cellml="http://www.cellml.org/cellml/1.0#">
<listOfModels>
<model id="model" language="urn:sedml:language:cellml.1_0" source="parabola_dae_model.cellml"/>
</listOfModels>
<listOfSimulations>
<uniformTimeCourse id="simulation1" initialTime="0" numberOfSteps="1000" outputEndTime="1000" outputStartTime="0">
<algorithm kisaoID="KISAO:0000019">
<listOfAlgorithmParameters>
<algorithmParameter kisaoID="KISAO:0000211" value="1e-07"/>
@agarny
agarny / noble_model_1962.sedml
Created Oct 9, 2019
SED-ML L1V4: example showing how to plot dV/dt
View noble_model_1962.sedml
<?xml version='1.0' encoding='UTF-8'?>
<sedML level="1" version="4" xmlns="http://sed-ml.org/sed-ml/level1/version4" xmlns:cellml="http://www.cellml.org/cellml/1.0#">
<listOfModels>
<model id="model" language="urn:sedml:language:cellml.1_0" source="noble_model_1962.cellml"/>
</listOfModels>
<listOfSimulations>
<uniformTimeCourse id="simulation1" initialTime="0" numberOfSteps="1000" outputEndTime="1000" outputStartTime="0">
<algorithm kisaoID="KISAO:0000019">
<listOfAlgorithmParameters>
<algorithmParameter kisaoID="KISAO:0000211" value="1e-07"/>
View zhang.py
from math import *
import numpy as np
def initializeConstants(states, variables):
states[0] = 0.092361701692
states[1] = 0.015905380261
states[2] = 0.01445216109
states[3] = 0.04804900895
states[4] = 0.48779845203
View n62.py
from math import *
import numpy as np
def initializeConstants(states, variables):
states[0] = 0.01
states[1] = 0.8
states[2] = 0.01
states[3] = -87.0
variables[0] = -60.0
View hh52.py
from math import *
import numpy as np
def initializeConstants(states, variables):
states[0] = 0.05
states[1] = 0.6
states[2] = 0.325
states[3] = 0.0
variables[0] = 0.3
View fabbri.py
from math import *
import numpy as np
def initializeConstants(states, variables):
states[0] = 0.9308
states[1] = 6.181512e-9
states[2] = 4.595622e-10
states[3] = 0.069199
states[4] = 0.409551
View zhang.c
#include <math.h>
#include <stdio.h>
void initializeConstants(double *states, double *variables)
{
states[0] = 0.092361701692;
states[1] = 0.015905380261;
states[2] = 0.01445216109;
states[3] = 0.04804900895;
states[4] = 0.48779845203;
View n62.c
#include <math.h>
#include <stdio.h>
void initializeConstants(double *states, double *variables)
{
states[0] = 0.01;
states[1] = 0.8;
states[2] = 0.01;
states[3] = -87.0;
variables[0] = -60.0;
View hh52.c
#include <math.h>
#include <stdio.h>
void initializeConstants(double *states, double *variables)
{
states[0] = 0.05;
states[1] = 0.6;
states[2] = 0.325;
states[3] = 0.0;
variables[0] = 0.3;
View fabbri.c
#include <math.h>
#include <stdio.h>
void initializeConstants(double *states, double *variables)
{
states[0] = 0.9308;
states[1] = 6.181512e-9;
states[2] = 4.595622e-10;
states[3] = 0.069199;
states[4] = 0.409551;
You can’t perform that action at this time.