Please wait...
×

Error

Posted Tue, 13 Mar 2018 14:03:14 GMT by christianleprince
Good day

I would like to have some insight about how to write equations or which function(s) to use in the model editor in the following situations:

1- Splitting an influent flow into flows per time interval (say 2 hours interval, over a 24 hours period). So basically, being able to extract the flow every 2 hours.

2- Calculating the mean/average of some variables in general. I found the function "double MSLUGetMean(double ID)" but I don't really understand it, with the buffer idea.

Thank you in advance.
Posted Wed, 14 Mar 2018 03:21:54 GMT by Enrico Remigi WEST Product Owner
Hi,
[quote author=christianleprince link=topic=20830.msg27164#msg27164 date=1520949794]
1- Splitting an influent flow into flows per time interval (say 2 hours interval, over a 24 hours period). So basically, being able to extract the flow every 2 hours.
[/quote]
I don't fully understand: is it a 'scheduler' (i.e. x1 m3/d from t0 until t1; x2 m3/d from t2 until t3; etc.) that you would like to create? or a generator? I don't see how would you use a flow splitter in these cases ..

[quote author=christianleprince link=topic=20830.msg27164#msg27164 date=1520949794]
2- Calculating the mean/average of some variables in general. I found the function "double MSLUGetMean(double ID)" but I don't really understand it, with the buffer idea.
[/quote]
Please check the MSL Reference Guide.
Posted Wed, 14 Mar 2018 10:09:43 GMT by christianleprince
Hi Enrico

Thanks for the responses.

I was actually referring to a scheduler which will allow me to assign a specific flow value over an interval, as you mentioned.

Just for interest and maybe to clarify, what is the difference between the scheduler and the generator and how can I model that generator ?

Thanks
Posted Wed, 14 Mar 2018 11:17:21 GMT by Enrico Remigi WEST Product Owner
Hi Christian,
you cannot model a [b]true scheduler[/b] in WEST.

A generator is a model that produces, in your case, a vector of the state components, based on a given time-dependent function, e.g. sine.

You must be signed in to post in this forum.