Commit b3853783 authored by HEMERY Mathieu's avatar HEMERY Mathieu
Browse files

Start reflow of hybrid

parent be9b1b66
:- module(hybrid,
[
hybrid_dynamic_simulation/3,
hybrid_static_simulation/2,
hybrid_static_simulation/5,
hybrid_dynamic_simulation/3,
hybrid_dynamic_simulation/6
]
).
......@@ -27,6 +27,10 @@ It seems like species names like ABC-DFG-{HIJ} make the simulation not work, typ
and concentration is 1. The simulation method currently used is the
Rosenbrock method.').
%! hybrid_static_simulation(+ODEFilename, +StochFilename)
%
% Fast front-end for the hybrid_static_simulation/5 predicate
hybrid_static_simulation(ODEFilename, StochFilename) :-
biocham_command,
doc('This is a hybrid simulation with a static partitioning of the reactions.
......@@ -36,6 +40,13 @@ hybrid_static_simulation(ODEFilename, StochFilename) :-
(by present(_,_)) in input files. '),
hybrid_static_simulation(ODEFilename, StochFilename, 'out_static.bc', '1', 20).
%! hybrid_static_simulation(+ODEFilename, +StochFilename, +OutFilename, +Volume, +Time)
%
% implement the static separation between continuous and stochastic species
% blend the two files in OutFilename and read it to execute a call to the rosenbrock
% integrator.
hybrid_static_simulation(ODEFilename, StochFilename, OutFilename, Volume, Time) :-
biocham_command,
%============================%
......@@ -1126,7 +1137,14 @@ print_show_option(Hybrid_originals,Stream) :-
nl(Stream)
).
/************************/
/* DYNAMIC PARTITIONING */
/************************/
%! hybrid_dynamic_simulation(+InputFile, +PropTresh, +PartTresh)
%
% Fast front-end for the hybrid_dynamic_simulation/5 predicate
hybrid_dynamic_simulation(InputFile,PropTresh,PartTresh) :-
biocham_command,
......@@ -1141,8 +1159,11 @@ hybrid_dynamic_simulation(InputFile,PropTresh,PartTresh) :-
out all the species initial value (by present(_,_)) in input files.'),
hybrid_dynamic_simulation(InputFile,'out_dynamic.bc',1,20,PropTresh,PartTresh).
/* This predicat will write all the information needed in a .bc file
Then, this new fresh file is loaded and a numerical simulation with the Rosenbrock method takes place */
%! hybrid_dynamic_simulation(InputFile,OutFilename,Volume,Time,PropTresh,PartTresh) :-
%
% This predicate work by first writing all the information needed in a .bc file
% this bc_file is then loaded and a rosenbrock numerical simulation takes place
hybrid_dynamic_simulation(InputFile,OutFilename,Volume,Time,PropTresh,PartTresh) :-
biocham_command,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment