﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
3357	inStream ignores min/max modifiers on stream connector flow variables	palm86@…	Per Östlund	"I might be mistaken, but simple tests so far seem to confirm that OpenModelica does not currently take min/max modifiers of flow variables in stream connectors into account in order to simplify expressions for inStream.

Consider the following simple scheme:

A (volume) -> B (flow) -> C (volume)

If it is known that the flow direction will always be from A to C, one can declare the connector for A as:

AdvectionPort adv(q(max=0)) // supposing that q is the flow variable of a stream connector defined in AdvectionPort

Similarly, the connector for C could be:

AdvectionPort adv(q(min=0)).

However, this does not seem to influence the equations generated when the model is flattened. That is, expressions such as

smooth(0, if A.adv.q > 0.0 then ...);
smooth(0, if C.adv.q > 0.0 then ...);

are still generated, even though it is asserted that A.adv.q > 0.0 will always be false and C.adv.q > 0.0 will always be true."	defect	closed	normal	1.9.4	Frontend	trunk	fixed	inStream simplification	Martin Sjölund
