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
  • Index
  • » Users
  • » Falkyr
  • » Profile

Posts

Posts

Apr-27-11 18:23:29
Category: Programming

Thank you very much. I implemented it like you show and this works fine!

Now i got another problem: The compiler deletes some of my equations because he thinks they aren't valid. But if i connect the parts in a row by hand, everything works well. current/sad How can i trace back where this failure occurs?

Apr-27-11 17:06:09
Category: Programming

Hi there,

i'm just new in programming with Modelica or better if i say i use SimulationX with the Modelica-part. After a few weeks i'm now at a point i can't get on, so i hope you'll help me current/smile
Here is my problem:

I want to connect some parts dynamically. So the user can handle, how much HeatedPipes (a part of the standard library) he want to connect in a row. I define it like
->HeatedPipe[n] , where n is the number of parts.
In addition i'd like to assign some parameters, which should be valid for all lonely parts. For example i add a temperature temp.
-> HeatedPipe[n](T0=temp)
That's the point where the problem is. The failure is that my programm thinks T0 is a n-vector whereat temp is a scalar.

So, i don't know how to handle this. May one of you give me a good hint?

Thank you!

  • Index
  • » Users
  • » Falkyr
  • » Profile
You are here: