From 670d1546c1e2d9ffd985d2e28eac1313628fe4c5 Mon Sep 17 00:00:00 2001 From: Thomas Beutlich Date: Tue, 2 Apr 2024 20:11:39 +0200 Subject: [PATCH] Utilize constant --- Modelica/Electrical/Spice3.mo | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modelica/Electrical/Spice3.mo b/Modelica/Electrical/Spice3.mo index 7b60c3a6ec..c62ddb9147 100644 --- a/Modelica/Electrical/Spice3.mo +++ b/Modelica/Electrical/Spice3.mo @@ -7581,7 +7581,7 @@ This record MosCalc contains further MOSFET variables (for level 1, 2, 3 and 6). end if; wkfngs := wkfng - (3.25 +0.5 * egfet1 + fermis); if (not (in_p.m_gammaIsGiven > 0.5)) then - out_v.m_gamma := sqrt(2 * 11.70 * 8.854214871e-12 * SpiceConstants.CHARGE * + out_v.m_gamma := sqrt(2 * SpiceConstants.EPSSIL * SpiceConstants.CHARGE * in_p.m_substrateDoping * 1e6 / out_v.m_oxideCapFactor); // (cm**3/m**3) end if; if (not (in_p.m_vtOIsGiven > 0.5)) then