You are here

ModelsForum

Discussion of models, techniques, tips and tricks.

creating and running tcl scripts vs. C++ programs

Hi,

I have been looking for documentation on how to run scripts vs. C++ programs, and can't find a whole lot.

So, I have a few questions:

- Can one run a simile tcl script from the command line in UNIX/LINUX?

- I am having a little trouble understanding the syntax to run a model "run control" versus other objects, so very simple example of how to run a model that does not require a run window to pop up would be very helpful.

Forums: 

Retrieving the first value of a variable timeseries

I have a variable X which I need to set to a fixed value equal to the first value from a timeseries Y. The timeseries Y changes every time I run the model and is of variable length so I need to be able to set the variable X on the fly (since the model is completely automated).

Forums: 

Loading external multiple time series for multiple instances

It is not clear from the online documentation how to load multiple timeseries for multiple instances of a submodel from an external data file or files. The "File...Parameters" menu does not allow me to choose multiple columns to represent the multiple timeseries for each instance of the submodel but states that I need (TIME x 3 of REAL).

In other words, for submodel instance 1 I have timeseries 1, for submodel instance 2 I have timeseries 2 and for submodel instance 3 I have timeseries 3.

Forums: 

Storing values in a nested population model!

I'm not sure I'll be able to describe my problem in a post, much easier to understand with a view of my model, but here goes:

I am modeling a population of "shoots" that vary their growth according to environmental conditions. Each of these shoots also lays down rhizomatous internodes ("nodes") as they grow. The biomass a shoot partitions into a growing "roots%rhizomes" compartment is used to drive the creation of a new internode that is contained within a population submodel for the "nodes" (nested within the "shoot" population model).

Forums: 

Importing data/ interpolating/ very slow

Hello,

I have the following data to import in my model:
time(days), concentration
0, 0.0959
0.13, 0.0838
0.29, 0.0746
0.51, 0.0663
1.01, 0.0586
2.02, 0.0443
3.02, 0.0381
3.03, 0
3.23, 0
3.4, 0
6.06, 0.0117

Forums: 

circularity problems

Hi everyone,
I built a model in simile involving a fair amount of delay-functions, but for example connecting a variable that involves only values from previos time steps to another variable always ends up with the popping of an error message, simile is stating a circularity problem (the circularity exists only in visual terms) mathematically the model could be calculated just fine. Having this problem simile won't even run the model, so what do I need to change or tell either one of my variables to be able to run the model?
Thanks,
Franziska

Forums: 

Getting 30 values out of a 140 value array

hello,

i was wondering if there was an easier way to get values out of an array
than what i am previously getting.

i need the first 20 values, and then every 30 values after that
out of a 140 value array.

i think i should use
element([array],1) + element([array],2)...........+ element([array],30)

but how can i condense this command?

cheers

LS

Forums: 

entering .CSV data into simile

Hello

I am currently running a model with around 20 different compartments each with a unique name and each with a unique initial value. These unique initial values change from site to site, and measurements of each site gives different values which are recorded in a spreadsheet.

any way, to cut to the chase, i want to be able to change the values
in each compartment to represent each site without clicking on each compartment, going to the table icon, reloading the (changed)CSV file and column heading value etc etc etc...

Forums: 

Separately-built submodels

I'd like to know...is anyone actually using submodels built as separate .dlls?
--Jasper

Forums: 

removing a proportion of compX at time(x)

Hey there,

im having a problem removing a proportion of compartment X via the outflow at time X

for example i have 100 in compartment X at time 100. I have been using the formula

if age (which is time(1)-init_time(1)) ==100 then 0.08*compX else 0

this is not working to take 8% of the compartment out via the flow and nothing else. i think it is taking nothing out.

So i tried to use the formula

if age>100 and age

this takes out too much.

Forums: 

Pages

Subscribe to RSS - ModelsForum