Conversation
Signed-off-by: Ritesh.K <riteshkarki6@gmail.com>
Signed-off-by: Ritesh.K <riteshkarki6@gmail.com>
Signed-off-by: Ritesh.K <riteshkarki6@gmail.com>
Signed-off-by: Ritesh.K <riteshkarki6@gmail.com>
…hronics, fix issue raised during cppcheck Signed-off-by: Ritesh.K <riteshkarki6@gmail.com>
…n check fail on CI Signed-off-by: Ritesh.K <riteshkarki6@gmail.com>
Signed-off-by: Ritesh.K <riteshkarki6@gmail.com>
…ohmann/json pkg Signed-off-by: Ritesh.K <riteshkarki6@gmail.com>
Signed-off-by: Ritesh.K <riteshkarki6@gmail.com>
…nics hook Signed-off-by: Ritesh.K <riteshkarki6@gmail.com>
Signed-off-by: Ritesh.K <riteshkarki6@gmail.com>
…mation. Signed-off-by: Ritesh.K <riteshkarki6@gmail.com>
…missing dependencies Signed-off-by: Ritesh.K <riteshkarki6@gmail.com>
|
@JitpanuM Please let me know, once this is ready for review. A couple of questions ahead:
Thanks :) |
|
Thank you for your comment. I can answer the second and the third question.
|
|
Regarding the first question: standardized is maybe too much to say, but grid2op is using chronics which we then later parse to opendss. |
…entation in create_chronics.cpp Signed-off-by: Ritesh.K <riteshkarki6@gmail.com>
…eate-chronics hook Signed-off-by: Ritesh.K <riteshkarki6@gmail.com>
Signed-off-by: Alexandra <alexandra.bach@eonerc.rwth-aachen.de>
|
Hi @stv0g , this PR would also be ready. Let me know what you thhink. Thanks :) |
|
Thanks @al3xa23 for the update, I would like to get some more feedback from other users on the design decisions behind this hook. @pjungkamp @windrad6 Do you have any opinions on this? |
|
@copilot Does this change fit the architecture of VILLASnode? |
stv0g
left a comment
There was a problem hiding this comment.
I did some more review. But I am not very convinced this is the correct approach for the implementation.
Waiting for more feedback here :)
There was a problem hiding this comment.
Why was this file changed? It seems unrelated to the hook
| fi | ||
|
|
||
| # Build and install nlohmann/josn required for hook create_chronics | ||
| if ! find ${PREFIX}/{include,share} -name "*nlohmann*" 2>/dev/null | grep -q . && \ |
There was a problem hiding this comment.
Please use pkg-config to check for availability of dependencies.
| fi | ||
|
|
||
| # Build and install Bzip2 required for hook create_chronics | ||
| if ! { [ -f /usr/local/include/bzlib.h ] && ldconfig -p | grep -q libbz2; } && \ |
There was a problem hiding this comment.
Same as above. Please use pkg-config. Take a look at the other dependencies. Most of them follow the same pattern.
There was a problem hiding this comment.
Please also update all the other Dockerfiles by adding the new dependencies.
| #include <villas/hooks/create_chronics.hpp> | ||
| #include <villas/sample.hpp> | ||
|
|
||
| #include "villas/node_compat.hpp" |
There was a problem hiding this comment.
Use angle brackets for VILLAS includes. See above.
Co-authored-by: Steffen Vogel <steffen.vogel@opal-rt.com> Signed-off-by: Ritesh Subhas Karki <riteshkarki@tutamail.com>
Summary:
This PR introduces a new create_chronics hook that processes CSV files containing load and generator power data and converts them into chronics files suitable for power grid simulation tools. The hook reads normalized active and reactive power values from Load and SGen CSV files, maps them to buses using a grid configuration file, and outputs formatted CSV files (optionally compressed with bzip2).
Features:
Changes:
New files:
Modified files:
@al3xa23