christiankral / PhotoVoltaics

Modelica library for the simulation of photo voltaic cells and modules
Other
26 stars 18 forks source link

Change output path of result files #34

Closed christiankral closed 5 years ago

christiankral commented 5 years ago

If the PhotoVoltaics library is included as a read only library in, e.g., OpenModelica, the examples of PhotoVoltaics_TGM cannot be executed, as the output files are set to overwrite the (read only marked) files included in the library. This is not reasonable.

The output path of the result files shall be changed to the actual working directory, i.e., the output path shall not be specified explicitly.

christiankral commented 5 years ago

The problem is not yet resolved, as

parameter String csvFileName = Modelica.Utilities.Files.loadResource("*.csv");

shall be replaced by

parameter String csvFileName = "*.csv";