itesla / ipsl

The iTesla Power System Library is a Modelica library developed as part of the iTesla project. The library contains a set of power system component models for phasor time domain simulations.
Mozilla Public License 2.0
23 stars 71 forks source link

Package #180

Closed NathyGuam closed 6 years ago

NathyGuam commented 7 years ago

Good morning I am modeling a power system, but I have a problem, I create the file as a package but this one is not created or displayed, same as the generator group, the same is not created the package although the package icon appears in the File address is only the name of the package, but not the package (39bus.mo) and does not appear (package.mo). Someone who can help me please, since your information will be very helpful. Thank you very much.

machadosaia commented 7 years ago

Good morning @NathyGuam ,

Modelica does not accept model names starting by a number so we recommend you to change 39bus by an accepted model name, for example bus39. After that you should do two things:

  1. Create the file package.mo (if we have understood you well, you have already done it).

  2. Add the bus39 to the file package.order.

Regards.

NathyGuam commented 7 years ago

Sorry if I create the file with the name of IEEE39 and design with all the elements, but I do not know how to create the package that is needed to open the file because I just click the file (IEEE39) and the file is opened The correct thing is to go to the package first to load the file directly, it's a thesis project that I'm doing. Please if you can help me with that problem

machadosaia commented 7 years ago

If you want to create the model IEEE39 inside a package named, for example, IEEE you should do the following steps:

a.Create a folder name IEEE.

b.Inside this folder create the following three files:

b.1.package.order containing the following line:

IEEE39

b.2.package.mo containing the following: within ; package IEEE end IEEE;

b.3.IEEE39.mo containing all its elements. The first line should be within IEEE; because it is inside this package.

Doing that and opening the package.mo with OpenModelica you will see that:

image

Finally if you want to add this to the iPSL library, for example, inside iPSL/Examples you should update the following files:

  1. Add the folder IEEE created in the previous process inside the folder iPSL/Examples.

  2. iPSL/Examples/package.order: add the line IEEE

  3. iPSL/Examples/IEEE/package.mo: update the first line to within iPSL.Examples;

  4. iPSL/Examples/IEEE/IEEE39.mo: update the first line to: within iPSL.Examples.IEEE;

Doing that and opening with OpenModelica the iPSL you will see that:

image

NathyGuam commented 7 years ago

good morning Already create those files but I do not have the packages of IEEE39 and also the package of Generation_Groups, in addition the icons of the groupbus at the moment of dragging them to the sheet to insert I get a message like this: The model GroupBus1 is defined as partial. The component will be added as a replaceable component. Thanks for the help and sorry for the inconvenience

archivo.docx

viruezr commented 7 years ago

Sorry @NathyGuam we do not completely understand your issue. In Modelica website you can find more information about how to create libraries, packages and models.

NathyGuam commented 6 years ago

Good afternoon please if you can help me, design a system of 39 bars but when placing the controllers the system does not compile, I am using the PSL type 4 generator of PSAT please if someone suggests that AVR use. The information they give me will be very valuable.

NathyGuam commented 6 years ago

Good afternoon please if you can help me, design a system of 39 bars but when placing the controllers the system does not compile, I am using the PSL type 4 generator of PSAT please if someone suggests that AVR use. The information they give me will be very valuable.

petitrenaudseb commented 6 years ago

Good Morning @NathyGuam Which kind of AVR do you use ? Have you try tro compile your system with set point instead of AVR ?

NathyGuam commented 6 years ago

GOOD MORNING I am using this IPSL/Electrical/Controls/PSAT/AVR/AvrtipeII and please could you tell me what it is or how do I do the Set point ?

petitrenaudseb commented 6 years ago

You only have to replace your AVR by a constant (fixed value, equivalent to a set point)

NathyGuam commented 6 years ago

AVR.docx THE WAY OF CONNECTION AS YOU SEE THIS IS NOT OK?