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
  • » fdiez
  • » Profile

Posts

Posts

I would like to know if it is possible, or anyone has tried to get access to the files generated in the simulation process of a model.
I am most interested on checking the Optimized File that the translation process generates.

I am talking about the process depicted in this foto: http://epf.thingml.org/wikis/sisas/prac … untime.bmp

Thanks for the help,
Flavio

Sep-24-12 16:11:35
modeling of a 2D suspension
Category: Programming

I am trying to recreate a Simulink Model in Modelica to compare a few aspects of both, although I can make it work very well just by writing the code, but I also need to build a similar model with the Graphical...

The simulink model is the following: http://www.mathworks.de/products/simuli … suspn.html

Here is what I have up to now: http://imageshack.us/a/img171/4182/2dsuspension.jpg

It shouldn't be that hard but I am having problems to model (i.e. what should I use) for example the distances to/and the Center of Gravity, and other aspects such as the bounce Z, Theta...

Can someone help me shed some light on the matter? Give me a couple of tipps on how to model this system and such?

Sorry I am still getting started with the Modelica and although it is straightforward to deal with just the equations and such I am having problems to model based on the available Libraries.


Cheers,
Flavio

Sep-13-12 12:18:32
Simplified Automotive Suspension Model

I am trying to recreate a Simulink Model in Modelica to compare a few aspects of both, although I can make it work very well just by writing the code, I also would want to build a similar model with the Graphical Tools present in OpenModelicaEditor...

The simulink model is the following: http://www.mathworks.de/products/simuli … suspn.html

It shouldn't be that hard but I am having a problem to model (i.e. what should I use) for example the distances to/and the Center of Gravity...

Can someone help me shed some light on the matter? Give me a couple of tipps on how to model this system and such?

Sorry I am still getting started with the Modelica and although it is straightforward to deal with just the equations and such I am having problems to model based on the available Libraries.

Cheers,
Flavio

P.s.: I have to have it also "modelled" and not just "coded". Just in case anyone is wondering why don't I just get satisfied with the code... current/wink

Sep-07-12 10:03:33
Possible to connect FMUs?

Hi Patrick,

Thanks for the answer and the tipps!

What I meant when I said "properties" (maybe I used it wrong, sorry!) was the attributes (better?), I mean for example my Flange has essentially an Angle and a respective Angular velocity.

Although when I am using Modelica to model I can simply connect to a MEchanical.Rotational.Inertia 's flange and they so to say communicate, when I export it doesn't in fact keep the attributes (Tau and Phi) attached as a packet called flange but it breaks down in to different signals flange_tau and flange_phi, which in it self is understandable since then you can create a controller for the separate signals.

My problem is I want to for example attach inside modelica a Load (MEchanical.Rotational.Inertia) to my imported FMUBlock dcmotor and I can't do it since I can't attach a signal to the Inertia flange!

I am trying to get the understanding of how it would work so later on I could go for more complex models and try some Importing/Exporting between several IDE's such as Simulink <--> OpenModelica and such.

I did a screenshot from my model (before exporting) together with the broke down properties (when Imported as a FMUBlock) maybe it will help.
http://img843.imageshack.us/img843/7084/iotest.jpg

Sep-06-12 11:58:18
Possible to connect FMUs?

I've been trying to find an answer to this question or even to test it myself but I haven'T been able!

Is it possible to connect FMU's together?

One example:
suppose I have a simple "dcmotor" with a Input that controls the Voltage and an output wich give the speed of the flange...
I export this design and import again. (No problems there)
The FMUBlock works just fine...

Now I want to put it into a design so I can for example make a PI controller to my then "blackbox" dcmotor
How is that possible?

EDIT: I noted I can only add the FMUBlock in the text view, but I still don't know the following:

My model has a flange_b output (from the flange_b for the EMF) but this is not available on the FMUBlock, just his properties Tau and Phi... How can I combine for example to a LOAD?

Cheers,
Flavio

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