Commit 8a1f960f authored by Markus Mirz's avatar Markus Mirz
Browse files

update examples


Former-commit-id: a8db8534
parent 52dd2216
Subproject commit 7e22148e116ee7f2d2efe03c2a913561872366ba
Subproject commit b101120a9c7fec54029421f00b8655fc1e811fd6
......@@ -61,7 +61,8 @@ int main(int argc, char* argv[]) {
auto logger = DataLogger::make(simName);
logger->addAttribute("v1", n1->attribute("voltage"));
logger->addAttribute("v2", n2->attribute("voltage"));
logger->addAttribute("i10", l1->attribute("i_intf"));
logger->addAttribute("i12", cs->attribute("i_intf"));
logger->addAttribute("i34", c1->attribute("i_intf"));
Simulation sim(simName, sys, timeStep, finalTime);
sim.addLogger(logger);
......
......@@ -66,6 +66,8 @@ int main(int argc, char* argv[]) {
logger->addAttribute("v1", n1->attribute("voltage"));
logger->addAttribute("v2", n2->attribute("voltage"));
logger->addAttribute("v3", n3->attribute("voltage"));
logger->addAttribute("i12", r1->attribute("i_intf"));
logger->addAttribute("i23", r3->attribute("i_intf"));
Simulation sim(simName, sys, timeStep, finalTime);
sim.addLogger(logger);
......
......@@ -67,7 +67,7 @@ int main(int argc, char* argv[]) {
logger->addAttribute("v2", n2->attribute("voltage"));
logger->addAttribute("v3", n3->attribute("voltage"));
logger->addAttribute("v4", n4->attribute("voltage"));
logger->addAttribute("i30", l2->attribute("i_intf"));
logger->addAttribute("i12", r1->attribute("i_intf"));
logger->addAttribute("i34", l3->attribute("i_intf"));
Simulation sim(simName, sys, timeStep, finalTime);
......
......@@ -54,7 +54,7 @@ int main(int argc, char* argv[]) {
auto logger = DataLogger::make(simName);
logger->addAttribute("v1", n1->attribute("voltage"));
logger->addAttribute("v2", n2->attribute("voltage"));
logger->addAttribute("i1", r1->attribute("i_intf"));
logger->addAttribute("i12", r1->attribute("i_intf"));
Simulation sim(simName, sys, timeStep, finalTime);
sim.addLogger(logger);
......
......@@ -55,7 +55,7 @@ int main(int argc, char* argv[]) {
auto logger = DataLogger::make(simName);
logger->addAttribute("v1", n1->attribute("voltage"));
logger->addAttribute("v2", n2->attribute("voltage"));
logger->addAttribute("i1", r1->attribute("i_intf"));
logger->addAttribute("i12", r1->attribute("i_intf"));
Simulation sim(simName, sys, timeStep, finalTime);
sim.addLogger(logger);
......
......@@ -59,6 +59,8 @@ int main(int argc, char* argv[]) {
auto logger = DataLogger::make(simName);
logger->addAttribute("v1", n1->attribute("voltage"));
logger->addAttribute("v2", n2->attribute("voltage"));
logger->addAttribute("i12", cs->attribute("i_intf"));
logger->addAttribute("i34", c1->attribute("i_intf"));
Simulation sim(simName, sys, timeStep, finalTime, Domain::EMT);
sim.addLogger(logger);
......
......@@ -66,6 +66,8 @@ int main(int argc, char* argv[]) {
logger->addAttribute("v1", n1->attribute("voltage"));
logger->addAttribute("v2", n2->attribute("voltage"));
logger->addAttribute("v3", n3->attribute("voltage"));
logger->addAttribute("i12", r1->attribute("i_intf"));
logger->addAttribute("i23", r3->attribute("i_intf"));
Simulation sim(simName, sys, timeStep, finalTime, Domain::EMT);
sim.addLogger(logger);
......
......@@ -68,7 +68,7 @@ int main(int argc, char* argv[]) {
logger->addAttribute("v2", n2->attribute("voltage"));
logger->addAttribute("v3", n3->attribute("voltage"));
logger->addAttribute("v4", n4->attribute("voltage"));
logger->addAttribute("i30", l2->attribute("i_intf"));
logger->addAttribute("i12", r1->attribute("i_intf"));
logger->addAttribute("i34", l3->attribute("i_intf"));
Simulation sim(simName, sys, timeStep, finalTime, Domain::EMT);
......
......@@ -55,6 +55,7 @@ int main(int argc, char* argv[]) {
auto logger = DataLogger::make(simName);
logger->addAttribute("v1", n1->attribute("voltage"));
logger->addAttribute("v2", n2->attribute("voltage"));
logger->addAttribute("i12", r1->attribute("i_intf"));
Simulation sim(simName, sys, timeStep, finalTime, Domain::EMT);
sim.addLogger(logger);
......
......@@ -55,7 +55,7 @@ int main(int argc, char* argv[]) {
auto logger = DataLogger::make(simName);
logger->addAttribute("v1", n1->attribute("voltage"));
logger->addAttribute("v2", n2->attribute("voltage"));
logger->addAttribute("i1", r1->attribute("i_intf"));
logger->addAttribute("i12", r1->attribute("i_intf"));
Simulation sim(simName, sys, timeStep, finalTime, Domain::EMT);
sim.addLogger(logger);
......
Supports Markdown
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