Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • DPsim DPsim
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 47
    • Issues 47
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 13
    • Merge requests 13
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • Value stream
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • ACS
  • Public
  • Power System Simulation and Optimization
  • DPsim
  • DPsimDPsim
  • Issues
  • #122

Closed
Open
Created Jul 08, 2019 by Steffen Vogel@stvogel🎅🏼Developer

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
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking