Adrian Pop <[EMAIL PROTECTED]> writes:
> This is a bug (you should be able to use record too)
> and I already have the fix for it.
> I need to test the fix a bit more and then I'll
> put it in the subversion.

Great! Thanks again for your fast help.

By the way, I have the Modelica language specification version 3.  Is it
possible to tell which portion of the language is already implemented in
OpenModelica?  Or the other way around: Which language specification
version should I use as a reference for OpenModelica?


       Dieter
--
    Best wishes

    H. Dieter Wilhelm
    Darmstadt, Germany


>
> Cheers,
> Adrian Pop/
>
> dieter wrote:
>> dieter <[EMAIL PROTECTED]> writes:
>>> dieter <[EMAIL PROTECTED]> writes:
>>>> are the inner/outer parameter specifiers not (yet) allowed in OM?
>>> Hmm, I just read that they should indeed be available since 1.4.3.
>>> Looks then like a bug to me.
>>
>> when one changes record with class the simulation does *not* fail.
>>
>>      Dieter
>>
>>>       Dieter
>>>
>>>> When I'm extending the following test case with inner/outer parameters
>>>> the simulation fails, even though the flattened model looks right.
>>>>
>>>> Thanks a lot, your puzzled
>>>>
>>>>        Dieter
>>>> ------------------------------------------------------------
>>>> connector Port
>>>>   Real pressure;
>>>>   flow Real flowrate;
>>>> end Port;
>>>>
>>>> record Fluid                       "Water is the default"
>>>> parameter Real density = 1;
>>>>   parameter Real viscosity = 1;
>>>> end Fluid;  
>>>>
>>>> partial model TwoPorts
>>>> //  outer parameter Fluid fluid;
>>>>   Port inPort, outPort;
>>>> equation
>>>>   inPort.flowrate + outPort.flowrate = 0;
>>>> end TwoPorts;
>>>>
>>>> model Pipe
>>>>   extends TwoPorts;
>>>>   parameter Real a = .5;
>>>> equation
>>>>   inPort.pressure = inPort.flowrate * a;
>>>> end Pipe;
>>>>
>>>> model Pump
>>>>   extends TwoPorts;
>>>> equation
>>>>   inPort.flowrate = time - outPort.pressure;//*fluid.density;
>>>> end Pump;
>>>>
>>>> model Ambience
>>>>   Port port;
>>>> equation
>>>>   port.pressure = 0;
>>>> end Ambience;
>>>>
>>>> model Test
>>>> //  inner parameter Fluid fluid;
>>>>   Pump pu;
>>>>   Pipe pi;
>>>>   Ambience am1, am2;
>>>> equation
>>>>   connect( am1.port, pu.inPort);
>>>>   connect( pu.outPort, pi.inPort);
>>>>   connect( pi.outPort, am2.port);
>>>> end Test;
>>>>
>>

Reply via email to