VILLASframework
Modular co-simulation framework
Dynamic Phasor calculation / DFT

Implementation

The source code of the hook is available here: https://git.rwth-aachen.de/acs/public/villas/node/blob/master/lib/hooks/dp.cpp

Configuration

Example

@include "hook-nodes.conf"
paths = (
{
in = "signal_node"
out = "file_node"
hooks = (
{
type = "dp"
signal = "sine"
f0 = 50 # Hz
dt = 0.1 # seconds
# Alternative to dt
# rate = 10 Hz
harmonics = [ 0, 1, 3, 5, 7 ]
inverse = false
}
)
}
)