- Index
- » Programming
- » Modelica Language
- » parameter input?
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
- Arinomo23
- 120 Posts
- Index
- » Programming
- » Modelica Language
- » parameter input?