From 43f763f3ffb09543748d5185821415ec09c2f1e6 Mon Sep 17 00:00:00 2001 From: samreid Date: Thu, 29 Oct 2020 14:41:13 -0600 Subject: [PATCH] Add baseline value of 10 ohms, see https://github.com/phetsims/circuit-construction-kit-common/issues/10 --- js/model/ModifiedNodalAnalysisAdapter.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/model/ModifiedNodalAnalysisAdapter.js b/js/model/ModifiedNodalAnalysisAdapter.js index fc093e56..eb6c10b0 100644 --- a/js/model/ModifiedNodalAnalysisAdapter.js +++ b/js/model/ModifiedNodalAnalysisAdapter.js @@ -220,7 +220,7 @@ class ModifiedNodalAnalysisAdapter { const coefficient = 3; // shift by base so at V=0 the log is 1 - resistorAdapter.value = coefficient * V / logWithBase( V + base, base ); + resistorAdapter.value = 10 + coefficient * V / logWithBase( V + base, base ); } } );