nmax-1) {
_tools.showOkDialog("Too many charges! Model is limited to 6 charges.");
//_view.alert("addChargeButton","Too many charges","Model is limited to 6 charges.");
}
else {
x[n]=-1+2*Math.random();
y[n]=-1+2*Math.random();
color[n]=n;
q[n]=1;
r[n]=q[n]/10;
colorStr+=StrData[n]+";";
n=n+1;
}
calcF();
}
]]>
The EJSS Coulomb Force Wrong model challenges students to identify errors in a simulation involving multiple charges, complete with force vectors. Users are empowered to modify individual charges and introduce additional charges. This model can be examined and rectified if EJSS is installed.
Add Charge button.Model->Custom->Calculate Force. Elaborate on your corrective steps. (Background understanding required: arrays and for loops or refer to EJSS Computing Basics.)The Coulomb Force Wrong Model was conceived by Anne Cox, Wolfgang Christian, and Francisco Esquembre, utilizing the Easy JavaScript Simulations (EJSS) authoring and modeling tool. Exercises were composed by Anne J Cox, Darren Tan, and lookang.
Navigating to Model: Using the EJSS authoring toolkit installed, follow these steps: Select "A EJSS digital Library," choose "JS EJS model in Singapore" from the Library, double click the "05electricitynmagnetism_11efield" folder, and then double click on the "CoulombForceWrong" filename. Finally, click the "Download" button. Store the model source code within your EJSS defined workspace/source/ directory.
For more information about EJSS, visit: http://www.um.es/fem/Ejs/ and explore the OSP ComPADRE collection: http://www.compadre.org/OSP/.
]]>