Archived OpenModelica forums. Posting is disabled.

Alternative forums include GitHub discussions or StackOverflow (make sure to read the Stack Overflow rules; you need to have well-formed questions)


Forgot password? | Forgot username? | Register

parameter input?

parameter input?

I know it sounds strange, but i think i read it somewhere that a 'parameter input' prrefix is exsist.

I've try it on a model
[code]
Model Foo
parameter input Real x;
parameter input Integer k;
Real y;

equation
y = x*k;
end Foo;
[\code]

saving and instantiating the model did result in any error. I then make a second model
[code]
Model Foo2

Foo foo1 annotation(...);

end Foo2
[\code]

So in Foo2 i can double click on foo1 and open the parameter window like usual.

What interesting is when i exported as FMU, Foo.fmu listed x and k as input where as Foo2 listed foo1.x and foo1.k as parameter.

how does the 'paramter input' combination works? or how does it intended to use? So can x and k be manipualted as input or parameter?

cheers

There are 0 guests and 0 other users also viewing this topic
You are here: