-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
VILLASfpga cosimulation development #325
Open
n-eiling
wants to merge
14
commits into
master
Choose a base branch
from
villas-fpga-cosimulation
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
n-eiling
requested review from
m-mirz,
stv0g and
dinkelbachjan
as code owners
November 11, 2024 08:43
n-eiling
force-pushed
the
villas-fpga-cosimulation
branch
from
November 11, 2024 09:01
c82b154
to
b5c3d86
Compare
stv0g
changed the title
Villas FPGA cosimulation development
VILLASfpga cosimulation development
Nov 13, 2024
@n-eiling Quick nit: please make sure to use the correct capitalization of "VILLASfpga" (see title) |
VILLASfpga does not exist anymore. I thought about VILLASnode nodetype fpga :) |
The CI is failing because of missing pybind interfaces. I'll try to fix it in the next days - but the rest should not change anymore. |
adds a new data logger interface for simulation result logging. Besides the existing DataLogger, the interface is implemented by the new RealTimeDataLogger that preallocates a buffer for the results and only writes them after the simulation finished. This does not break existing code. Signed-off-by: Niklas Eiling <[email protected]>
Signed-off-by: Niklas Eiling <[email protected]>
Signed-off-by: Niklas Eiling <[email protected]>
Signed-off-by: Niklas Eiling <[email protected]>
Signed-off-by: Niklas Eiling <[email protected]>
This adds FpgaCosimulation.cpp, an example for a cosimulation with another simulator running a WSCC 9 bus and DPsim running the load connected to bus 5. This also modifies EMT::Ph3::RXLoad to allow it to represent an R-L series load rather than only a parallel load. It also adds EMT::Ph3::ControlledVoltageSource, a voltage source with EMT setpoints for feeding interface data into the DPsim simulation. Signed-off-by: Niklas Eiling <[email protected]>
Signed-off-by: Niklas Eiling <[email protected]>
Signed-off-by: Niklas Eiling <[email protected]>
…PHIL and co-simulation Signed-off-by: Niklas Eiling <[email protected]>
Signed-off-by: Niklas Eiling <[email protected]>
…ake simulation more stable Signed-off-by: Niklas Eiling <[email protected]>
…iles. Signed-off-by: Niklas Eiling <[email protected]>
Signed-off-by: Niklas Eiling <[email protected]>
n-eiling
force-pushed
the
villas-fpga-cosimulation
branch
from
November 20, 2024 09:36
66fbda2
to
9e14cac
Compare
Signed-off-by: Niklas Eiling <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This writes simulation results to memory and only dumps to a file when the simulation ends. It allocates a buffer that is attributes*simulation duration/time step long - so this only works for relatively short simulations.
EMT::Ph3::ControlledVoltageSource
andEMT::Ph3::ControlledCurrentSource
. The existing sourcesEMT::Ph3::VoltageSource
andEMT::Ph3::CurrentSource
only allow setting RMS voltages and derives the individual phase voltages from that. This cannot be used for PHIL or Co-Simulations where we need the set each phase voltage individually. The existing voltage source can also not be easily adapted to support both, so I created a new model (RTDS and Simulink also have a separate model for this so it makes sense).EMT::Ph3::RXLoad
to be able to implement a series R-L load instead of only a parallel R-L load. The series load is needed for the WSCC 9 bus model.FPGACosimulation
, an example of using dpsim-villas to build a co-simulation where DPsim simulates load connected to bus 5 in a WSCC 9 bus model.FPGACosim3PhInfiniteBus
, an example that implements an infinite bus to be connected with a load in another simulator.