From 76ed5cb36a9aca1ad2a1b081fa30d039d66b4e3b Mon Sep 17 00:00:00 2001 From: Markus Mueller Date: Sun, 10 May 2020 20:48:38 +0200 Subject: [PATCH] finished clean --- src/spicelib/devices/hicum2/hicumL2.cpp | 3 +++ src/spicelib/devices/hicum2/overview_files.md | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/src/spicelib/devices/hicum2/hicumL2.cpp b/src/spicelib/devices/hicum2/hicumL2.cpp index b288f4c39..b1cac9b8d 100644 --- a/src/spicelib/devices/hicum2/hicumL2.cpp +++ b/src/spicelib/devices/hicum2/hicumL2.cpp @@ -2466,6 +2466,8 @@ HICUMload(GENmodel *inModel, CKTcircuit *ckt) } } + // Write DC Currents and thei derivatives on the correct variables of the HiCUM equivalent circuit + *(ckt->CKTstate0 + here->HICUMvbiei) = Vbiei; *(ckt->CKTstate0 + here->HICUMvbici) = Vbici; *(ckt->CKTstate0 + here->HICUMvbpei) = Vbpei; @@ -2520,6 +2522,7 @@ load: /* * load current excitation vector and matrix */ + // Markus: As far as I understand this: Derivative of Kirchhoff Current law for every node /* c Branch: be, Stamp element: Cbepar1 */ diff --git a/src/spicelib/devices/hicum2/overview_files.md b/src/spicelib/devices/hicum2/overview_files.md index 1afd71b62..0ba7b9775 100644 --- a/src/spicelib/devices/hicum2/overview_files.md +++ b/src/spicelib/devices/hicum2/overview_files.md @@ -62,3 +62,7 @@ See test case in DMT where this is compared against ADS. - re - Ibiei - Ibici + +# useful stuff +- non-ancient explanation how equation system of spice looks: +https://spicesharp.github.io/SpiceSharp/articles/custom_components/modified_nodal_analysis.html#nonlinear-components