Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
    • Help
    • Support
    • Submit feedback
  • Sign in
DPsim
DPsim
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
    • Cycle Analytics
    • Insights
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Charts
    • Locked Files
  • Issues 32
    • Issues 32
    • List
    • Boards
    • Labels
    • Milestones
  • Merge Requests 6
    • Merge Requests 6
  • Security & Compliance
    • Security & Compliance
    • Dependency List
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Commits
  • Issue Boards
  • ACS
    • P
      Public
  • Power System Simulation
  • DPsimDPsim
  • Issues
  • #122

Closed
Open
Opened Jul 08, 2019 by Steffen Vogel@stvogel🎅🏼
  • Report abuse
  • New issue
Report abuse New issue

RFC: LoadProfileReader

Currently, the LoadProfileReader directly set modifies certain internal members of the load components in its assign() method:

load->mProfile = read(std::experimental::filesystem::path(mPath + file->second + ".csv"), start_time, time_step, end_time);
load->use_profile = true;

I think this approach is not really nice as it requires modification in each component and also adaptations for each solver?

Shouldn't we use an analogous component to the DataLogger class: DataReader which can read CSV files and set arbitrary attributes in the simulation?

Example

DataReader reader("mycsv_file.csv");

reader.setDownSampllingFactor(2);

DP::Ph1::PQLoad load("l_1");

load.setAttributeRef("p_active", reader.column("l_1"));

reader.column("l_1") hereby returns an CPS::Attribute::Ptr which gets updated continuously.

Feedback is Welcome :)

Edited Jul 08, 2019 by Steffen Vogel

Related issues

Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
0
Labels
None
Assign labels
  • View project labels
Reference: acs/public/simulation/dpsim#122