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

Posts

Posts

Feb-27-19 09:46:45
Is it possible to open Dymola-encrypted models or commercial libraries with OpenModelica ?

Hi,

I have a question about decript :

In the user's guide, it is written :

"This means that anyone who has an OpenModelica version with encryption support can encrypt or decrypt files."

Does it means that the libraryKey code is useless ? For example if a module is encrypted using a code, it can however be decripted by another, even if the libraryKey code is unknown ?

Thanks by advance for your answer.

Yvan

Dec-06-18 16:02:04
Not possible anymore to launch my library

I have already created a lot of components that works well, but since few days, I can't create any new component. It make fail the lauch of my library, and I have the red message below .

I can't work anymore ! this post is a kinf of may day .... Many thanks for any help.

[1] 16:50:25 Traduction Erreur
[C:/dev/OpenModelica64bit/OMCompiler/Compiler/FrontEnd/ClassLoader.mo: 346:13-346:88]: Internal error Expected file N:\support_appli\18\AIR_(YA)\Vacmod\2018-12-06\1648\/Vacmod/Components.mo to exist

[2] 16:50:25 Ecriture Erreur
Failed to load package Vacmod () using MODELICAPATH N:\support_appli\18\AIR_(YA)\Vacmod\2018-12-06\1648\;C:/OpenModelica1.12.0-dev-64bit/lib/omlibrary.

Feb-13-18 15:55:32
Can't compile due to inner and outer problem

I face problem implementing a set of custom libraries using inner and outer functionnality, as it is done in fluid library with the System component.
If anyone could help ....

I face difficulties to understand how does work the annotations for Access Control to Protect Intellectual Property of packages.
I have created a package containing some components.
But all is still visible, and the annotations have no effects.
I have used the indications described in §18.9 of the spec below, but unsuccessfully

https://www.modelica.org/documents/ModelicaSpec33.pdf

If I could have some ideas and information about how to use these functions (= how to make a protected package)

Many thanks.



(don't know how to delete this topic)

It's ok now. I've read the book and have created my very first 100% graphical custom circuit model. This kind of "hello world" finally works. Thanks again.

Many thanks.I'm going to read this carefully
Anyway, it seems to me a little bit complex and quite prehistoric to build icons line by line with text code ....
I imagined that it would be easier with some intergated easy tools ....

I face difficulties to find a tutorial or a method  to create graphical custom components.
For example, I have a basic code below that works, but I would like to see and connect the components in the graphical interface. 
I know that I should use the "annotation" statements , but how to do it ?
Thanks by advance for any help on this topic.


**************************************************
package Essai3

type Voltage=Real(unit="V");
type Current=Real(unit="A");

connector Pin
  Voltage v;
  flow Current i;
end Pin;

partial model TwoPin
Pin p,n;
Voltage v "Différence de potentiel";
Current i "Intensité";
equation
  v=p.v-n.v;
  p.i+n.i=0;
  i=p.i;
end TwoPin;

model TensionSinusoidale "source tension sinusoidale"
extends TwoPin;
parameter Real Ac (start=10);
parameter Real f (start=10);
          Real MonPi=3.1416;
equation
  v=Ac*sin(2*MonPi*f*time);
end TensionSinusoidale;

model Resistor
extends TwoPin;
parameter Real R(start=10);
equation
  v=R*i;
end Resistor;


model Ground "masse idéale"
Pin P;
equation
P.v=0.0;
end Ground;


  model Circuit
    // Déclaration des composants
    TensionSinusoidale Alim(Ac = 200, f = 50);
    Resistor R1(R = 2);
    Ground G;
  equation
// Description des connexions
    connect(Alim.p, R1.p);
    connect(Alim.n, G.P);
    connect(R1.n, G.P);
  end Circuit;

end Essai3;


Thank you very much !
It works ! So I can go on with the discovery of Modelica and Omedit

I am new in Modelica, and I would find some help on how to plot a variable ?
Using the code below, nothing is plotted !? What did I forget ? Where can I find some help ?
Many thanks.

class Essai2

type Voltage=Real(unit="V");
type Current=Real(unit="A");

connector Pin
  Voltage v;
  flow Current i;
end Pin;

partial model TwoPin
Pin p,n;
Voltage v "Différence de potentiel";
Current i "Intensité";
equation
  v=p.v-n.v;
  p.i+n.i=0;
  i=p.i;
end TwoPin;

model TensionSinusoidale "source tension sinusoidale"
extends TwoPin;
parameter Real Ac (start=10);
parameter Real f (start=10);
          Real MonPi=3.1416;
equation
  v=Ac*sin(2*MonPi*f*time);
end TensionSinusoidale;

model Resistor
extends TwoPin;
parameter Real R(start=10);
equation
  v=R*i;
end Resistor;

model Ground "masse idéale"
Pin P;
equation
p.v=0.0;
end Ground;

  model Circuit
    // Déclaration des composants
    TensionSinusoidale Alim(Ac = 250, f = 50);
    Resistor R1(R = 2);
    Ground G;
  equation
// Description des connexions
    connect(Alim.p, R1.p);
    connect(Alim.n, G);
    connect(R1.n, G);
  end Circuit;
 
end Essai2;

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