diff --git a/js/simulation/electronics/LatticeEsim.js b/js/simulation/electronics/LatticeEsim.js index 77f52c191143037ab420991ec50cf0c1b0431afb..6614c3c5775ebd2fc5e20c9258a241ba228f0279 100644 --- a/js/simulation/electronics/LatticeEsim.js +++ b/js/simulation/electronics/LatticeEsim.js @@ -126,7 +126,7 @@ define(['lattice', 'appState', 'three', 'threeModel', 'numeric', 'eSim', 'eSimFi for (var x=0;x<temp.length;x++){ for (var y=0;y<temp[x].length;y++){ for (var z=0;z<temp[x][y].length;z++){ - if (potentialData[x][y][z] != 0) continue; + if (potentialData[x][y][z] != 0) continue;//todo fix this for 0V var avg = 0; if (x > 0) avg += potentialMat[x-1][y][z]; if (x < temp.length-1) avg += potentialMat[x+1][y][z]; @@ -166,7 +166,7 @@ define(['lattice', 'appState', 'three', 'threeModel', 'numeric', 'eSim', 'eSimFi } else { eSim.set("electricField", new ESimField(eFieldMat, offset, resolution, eSim.get("simZHeight"), dataRange)); } - eSim.set("visibleStaticSim", "electricField");//will cause render +// eSim.set("visibleStaticSim", "electricField");//will cause render //create charge distribution