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 72 forks source link

KundurSMIB #59

Closed MaximeBaudette closed 8 years ago

MaximeBaudette commented 8 years ago

Task list for the KundurSMIB system:

MaximeBaudette commented 8 years ago

Modelica doesn't allow what I wanted to do with the data record, so I give up the idea

dietmarw commented 8 years ago

And what exactly was it you wanted?

MaximeBaudette commented 8 years ago

I wanted to build something like a struct in Matlab, to store the parametrisation of a model. But I didn't succeed. Modelica was complaining about redefinitions, when some parameters have the same name.

I would like to have a single record that can store a lot of parameters in the following structure. record.compo1.param1 record.compo1.param2 record.compo2.param1 record.compo2.param2 record.compo3.param1 record.compo3.param2

dietmarw commented 8 years ago

You mean as in Modelica.Electrical.Machines.Utilities.ParameterRecords.InductionMachineData? You can also nest records within records. But if in doubt (i.e., before giving up ;-)) asking on http://stackoverflow.com/questions/tagged/modelica often helps

MaximeBaudette commented 8 years ago

Something like that, but in the case where several parameters have the same name. I tried nesting records, but then I could not access all the parameter list from the top layer's GUI. I guess I could find a workaround to have that parameter list organized as I wish, but it would only be at the cost of user friendliness.

tinrabuzin commented 8 years ago

@MaximeBaudette We have a CSV file with some of the results from the PSAT. I can add it to the repo along with the model if you want.

lvanfretti commented 8 years ago

Shouldn't you close this issue now? I think the model works great! @tinrabuzin

tinrabuzin commented 8 years ago

@lvanfretti It was @MaximeBaudette who took it over from me. I'm not sure what is the current status of this but I have a plan to include it in the tutorial. We were also thinking about writing the tutorial in wiki...

lvanfretti commented 8 years ago

@tinrabuzin I'm not sure I want to put our tutorial on the wiki as a priority right now, you can see my other email on the new task that we should focus on for free time...

MaximeBaudette commented 8 years ago

you're right @lvanfretti, I finished the models, and made all the validation, it can be closed