From 26e026e4c80cb8cbb8345882444cd69a6539713d Mon Sep 17 00:00:00 2001 From: Markus Mueller Date: Fri, 31 Jul 2020 14:36:34 +0200 Subject: [PATCH] fix stamp for Cth --- src/spicelib/devices/hicum2/hicumL2.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/spicelib/devices/hicum2/hicumL2.cpp b/src/spicelib/devices/hicum2/hicumL2.cpp index 400bc0524..20ce3415e 100644 --- a/src/spicelib/devices/hicum2/hicumL2.cpp +++ b/src/spicelib/devices/hicum2/hicumL2.cpp @@ -3306,7 +3306,7 @@ load: } // Stamp element: Ith f_T = - Ith - rhs_current = Ith + Icth - Icth_Vrth*Vrth + rhs_current = Ith - Ith_Vbiei*Vbiei - Ith_Vbici*Vbici - Ith_Vciei*Vciei - Ith_Vbpei*Vbpei - Ith_Vbpci*Vbpci - Ith_Vsici*Vsici - Ith_Vbpbi*Vbpbi @@ -3346,6 +3346,13 @@ load: // with respect to Potential Veie *(here->HICUMtempEmitEIPtr) += -Ith_Veie; *(here->HICUMtempEmitPtr) += +Ith_Veie; + +// finish + +// Cth f_T = - (put this separate to Ith to get signs right) + rhs_current = Icth - Vrth * Icth_Vrth; + *(ckt->CKTrhs + here->HICUMtempNode) += -rhs_current; + *(here->HICUMtempTempPtr) += +Icth_Vrth; // finish } }