Commit 1f728bf0 authored by Jan Dinkelbach's avatar Jan Dinkelbach Committed by Markus Mirz
Browse files

further logging improvements in RXLoad emt3ph and related examples

parent 8fd5a3fd
......@@ -124,6 +124,7 @@ int main(int argc, char* argv[]) {
loggerDP->addAttribute("v1", n1DP->attribute("v"));
loggerDP->addAttribute("v2", n2DP->attribute("v"));
loggerDP->addAttribute("i12", lineDP->attribute("i_intf"));
loggerDP->addAttribute("irx", loadDP->attribute("i_intf"));
// load step sized in absolute terms
std::shared_ptr<SwitchEvent> loadStepEvent = Examples::createEventAddPowerConsumption("n2", 0.1-timeStepDP, 100e3, systemDP, Domain::DP, loggerDP);
......
......@@ -123,6 +123,7 @@ int main(int argc, char* argv[]) {
loggerEMT->addAttribute("v1", n1EMT->attribute("v"));
loggerEMT->addAttribute("v2", n2EMT->attribute("v"));
loggerEMT->addAttribute("i12", lineEMT->attribute("i_intf"));
loggerEMT->addAttribute("irx", loadEMT->attribute("i_intf"));
// load step sized in absolute terms
std::shared_ptr<SwitchEvent3Ph> loadStepEvent = Examples::createEventAddPowerConsumption3Ph("n2", 0.1-timeStepEMT, 100e3, systemEMT, Domain::EMT, loggerEMT);
......
......@@ -59,6 +59,12 @@ void EMT::Ph3::RXLoad::setParameters(Matrix activePower, Matrix reactivePower, R
mNomVoltage = volt;
mSLog->info("\nActive Power [W]: {}"
"\nReactive Power [VAr]: {}",
Logger::matrixToString(mActivePower),
Logger::matrixToString(mReactivePower));
mSLog->info("Nominal Voltage={} [V]", mNomVoltage);
initPowerFromTerminal = false;
}
......@@ -87,6 +93,12 @@ void EMT::Ph3::RXLoad::initializeFromNodesAndTerminals(Real frequency) {
mPower(2, 2) = { mActivePower(2, 2), mReactivePower(2, 2) };
mNomVoltage = std::abs(mTerminals[0]->initialSingleVoltage());
mSLog->info("\nActive Power [W]: {}"
"\nReactive Power [VAr]: {}",
Logger::matrixToString(mActivePower),
Logger::matrixToString(mReactivePower));
mSLog->info("Nominal Voltage={} [V]", mNomVoltage);
}
if (mActivePower(0,0) != 0) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment