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

Posts

Posts

Hi,
is it possible to plot  weather data from file ?
Are there any examples or guides ?

any ideas ?

Feb-26-13 20:44:08
Category: Programming

wonderful!

Feb-25-13 18:56:54
Category: Programming

ok.
Thanks.
But there are website with simple worked examples, with .mo files ?

don't work:

Code:

model test3

  Modelica.Blocks.Sources.Clock clock1 annotation(Placement(visible = true, transformation(origin = {-62.6324,64.1452}, extent = {{-12,-12},{12,12}}, rotation = 0)));
  Modelica.Blocks.Routing.Multiplex2 multiplex21 annotation(Placement(visible = true, transformation(origin = {9.0772,52.0423}, extent = {{-12,-12},{12,12}}, rotation = 0)));
  Modelica.Blocks.Routing.DeMultiplex2 demultiplex21 annotation(Placement(visible = true, transformation(origin = {59.3041,50.8321}, extent = {{-12,-12},{12,12}}, rotation = 0)));
  Modelica.Blocks.Sources.Constant const(k = 1) annotation(Placement(visible = true, transformation(origin = {-64.1453,19.6671}, extent = {{-12,-12},{12,12}}, rotation = 0)));
equation
  connect(const.y,multiplex21.u2[1]) annotation(Line(points = {{-50.9453,19.6671},{-10.2874,19.6671},{-10.2874,44.8423},{-5.3228,44.8423}}));
  connect(demultiplex21.u[1],multiplex21.y[1]) annotation(Line(points = {{44.9041,50.8321},{30.2572,50.8321},{30.2572,52.0423},{22.2772,52.0423}}));
  connect(multiplex21.u1[1],clock1.y) annotation(Line(points = {{-5.3228,59.2423},{-47.8064,59.2423},{-47.8064,64.1452},{-49.4324,64.1452}}));
  connect(multiplex21.u1[1],clock1.y) annotation(Line(points = {{2.24145,58.6372},{-47.8064,58.6372},{-47.8064,64.1452},{-49.4324,64.1452}}));
end test3;

the error is:

Code:

Symbolic    14:12:27        0:0-0:0    Too few equations, underdetermined system. The model has 9 equation(s) and 10 variable(s)

Hi,
I'm studying OpenModelica software. So, I would to do a mux signal (time and a costant signal) and demuxing same signal.
I have this code:

Code:


model test3
  Modelica.Blocks.Sources.Clock clock1 annotation(Placement(visible = true, transformation(origin = {-62.6324,64.1452}, extent = {{-12,-12},{12,12}}, rotation = 0)));
  Modelica.Blocks.Routing.Multiplex2 multiplex21 annotation(Placement(visible = true, transformation(origin = {9.0772,52.0423}, extent = {{-12,-12},{12,12}}, rotation = 0)));
  Modelica.Blocks.Routing.DeMultiplex2 demultiplex21 annotation(Placement(visible = true, transformation(origin = {59.3041,50.8321}, extent = {{-12,-12},{12,12}}, rotation = 0)));
  Modelica.Blocks.Sources.Constant const(k = 1) annotation(Placement(visible = true, transformation(origin = {-64.1453,19.6671}, extent = {{-12,-12},{12,12}}, rotation = 0)));
equation
  connect(const.y,multiplex21.u2[1]) annotation(Line(points = {{-50.9453,19.6671},{-10.2874,19.6671},{-10.2874,44.8423},{-5.3228,44.8423}}));
  connect(demultiplex21.u[1],multiplex21.y[1]) annotation(Line(points = {{44.9041,50.8321},{30.2572,50.8321},{30.2572,52.0423},{22.2772,52.0423}}));
  connect(multiplex21.u1[1],clock1.y[1]) annotation(Line(points = {{-5.3228,59.2423},{-47.8064,59.2423},{-47.8064,64.1452},{-49.4324,64.1452}}));
  connect(multiplex21.u1[1],clock1.y) annotation(Line(points = {{2.24145,58.6372},{-47.8064,58.6372},{-47.8064,64.1452},{-49.4324,64.1452}}));
end test3;

but not work; error is:

Code:

Translation    12:42:30        0:0-0:0    Error occurred while flattening model test3

Translation    12:42:30        0:0-0:0    Variable clock1.y[1] not found in scope test3
Translation    12:42:30        0:0-0:0    Illegal subscript [1] for dimensions  in component clock1

The screenshoot of diagram view is:

http://i46.tinypic.com/2hmqa6w.jpg
Where am I wrong?

Feb-24-13 14:45:23
Category: Programming

Hi all,
I would like to learn Modelica language but I'm a newbie...
So I need simple example or tutorial step by step for understand functional logic
Where I can find this examples (also video, pdf, university course, etc.)?
Thanks.
Bye

sjoelund.se wrote:

You can force an install, no problem (it's only a little unsafe). OMShell will then work and OMShell-terminal probably will not.


Or wait a day or so and nightly builds will allow OMShell to be installed without OMShell-terminal as a dependency.

ok. but I must remove in source.list

Code:

deb http://build.openmodelica.org/apt stable contrib

and insert:

Code:

deb http://build.openmodelica.org/apt nightly contrib

It's correct ?

ok. thanks.
Notebook and connection editor work.
But Omshell ?
I can installing this ...or not ?

Hi,
I tried to install openmodelica in Ubuntu 10.04, unsuccessfully. 
1. I added the following line to the /etc/apt/sources.list:

Code:

deb http://build.openmodelica.org/apt stable contrib

2. I imported (and verified) the GPG key used to sign the releases:

Code:

wget -q http://build.openmodelica.org/apt/openmodelica.asc -O- | sudo apt-key add -

sudo apt-key fingerprint

3. so, I updated and installed Openmodelica:

Code:

sudo apt-get update

sudo apt-get install openmodelica

but, I have an error about omshell:

Code:

sudo apt-get install openmodelica

Lettura elenco dei pacchetti... Fatto
Generazione albero delle dipendenze       
Lettura informazioni sullo stato... Fatto
Alcuni pacchetti non possono essere installati. Questo può voler dire
che è stata richiesta una situazione impossibile oppure, se si sta
usando una distribuzione in sviluppo, che alcuni pacchetti richiesti
non sono ancora stati creati o sono stati rimossi da Incoming.
Le seguenti informazioni possono aiutare a risolvere la situazione:

I seguenti pacchetti hanno dipendenze non soddisfatte:
  openmodelica: Dipende: omshell ma non sta per essere installato
                Dipende: omshell-terminal ma non sta per essere installato
E: Pacchetto danneggiato

How I can to do ?

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