Sub Project_25_EN(ByVal VecType, m, n, m1, n1 As Integer) ' 25_Electric field_EN ' Updated: 6/04/24 ' Created by: Ariel R. Becerra (21/11/23) ' Modified by: _________________ ' This is the code of your new project. ' Steps to embed the code to ScienSolar: ' Note 1: The number 25 in the name of this function must match the one in the list of the CONFIG sheet for this project. If not, please correct it. ' Note 2: This code will be integrated into the main code to automate the download of the project. ' Note 3: The formulas and cell values generated here correspond only to the first 30 columns from INICIO to the right in the sheet. All your formulas and values are recommended to be written in these columns. ' Step 1. Go to the CONFIG sheet and add a short name and the number of your new project to the last row in the projects list. ' Step 2. Make sure that the list of projects in CONFIG sheet has the correct ascending numbering. ' Step 4. Open the VBA editor (Alt + F11 in Windows or Fn + Option + F11 in macOS). To avoid mistakes, make sure you only have one workbook open. ' Step 5. On the left, in the project explorer, select a non full module (or add a new one). ' Step 6. Select all the code in this file, copy and paste it at the end of the existing code in the module (or in the new one). ' Step 7. To load the project and to check it in a new sheet, go to the CONFIG sheet and click the New Sheet button, then select the project from the list and click the +Vector button. ' Step 8. Click any XYZ button to get the project in the coordinate system. Enjoy it! ' Visit www.sciensolar.com for news and updates of ? ScienSolar. Cells(m1 - 1, n1 + 2).FormulaR1C1 = "1" Cells(m1 + 0, n1 + 0).FormulaR1C1 = "15" Cells(m1 + 0, n1 + 1).FormulaR1C1 = "32" Cells(m1 + 0, n1 + 2).FormulaR1C1 = "=CONFIG!R3C4" Cells(m1 + 0, n1 + 3).FormulaR1C1 = "850" Cells(m1 + 0, n1 + 6).FormulaR1C1 = "=CONFIG!R3C8" Cells(m1 + 0, n1 + 7).FormulaR1C1 = "8" Cells(m1 + 0, n1 + 8).FormulaR1C1 = "Ariel R. Becerra (21/11/23)" Cells(m1 + 1, n1 + 2).FormulaR1C1 = "=CONFIG!R4C4" Cells(m1 + 1, n1 + 3).FormulaR1C1 = "400" Cells(m1 + 1, n1 + 4).FormulaR1C1 = "=CONFIG!R4C6" Cells(m1 + 1, n1 + 5).FormulaR1C1 = "0" Cells(m1 + 1, n1 + 6).FormulaR1C1 = "=CONFIG!R4C8" Cells(m1 + 1, n1 + 7).FormulaR1C1 = "45" Cells(m1 + 2, n1 + 2).FormulaR1C1 = "=CONFIG!R5C4" Cells(m1 + 2, n1 + 3).FormulaR1C1 = "40" Cells(m1 + 2, n1 + 4).FormulaR1C1 = "=CONFIG!R5C6" Cells(m1 + 2, n1 + 5).FormulaR1C1 = "15" Cells(m1 + 2, n1 + 6).FormulaR1C1 = "=CONFIG!R5C8" Cells(m1 + 2, n1 + 7).FormulaR1C1 = "0" Cells(m1 + 3, n1 + 0).FormulaR1C1 = "E" Cells(m1 + 3, n1 + 2).FormulaR1C1 = "=CONFIG!R6C4" Cells(m1 + 3, n1 + 3).FormulaR1C1 = "200" Cells(m1 + 3, n1 + 4).FormulaR1C1 = "=CONFIG!R6C6" Cells(m1 + 3, n1 + 5).FormulaR1C1 = "375" Cells(m1, n1 + 9).FormulaR1C1 = "HELP" Dim HELPtxt As String HELPtxt = "CAMPO DE UN CUADRUPOLO EL" & ChrW(201) & "CTRICO" & Chr(10) & _ " (See english version at the end)" & Chr(10) & _ " Un cuadrupolo el" & ChrW(233) & "ctrico se puede definir como el conjunto de cuatro cargas puntuales q distribuidas en el espacio. La forma m" & ChrW(225) & "s sencilla de un cuadrupolo son cuatro cargas distribuidas en los v" & ChrW(233) & "rtices de un cuadrado. Para hallar el campo el" & ChrW(233) & "ctrico de un cuadrupolo en cualquier punto del espacio, se aplica el principio de superposici" & ChrW(243) & "n, es decir, en cada punto del espacio el campo el" & ChrW(233) & "ctrico del dipolo es la suma vectorial de los campos el" & ChrW(233) & "ctricos de las cuatro cargas por aparte: " & Chr(10) & _ " E = E1 + E2 + E3 + E4, E1 = k q1 /r1^2, E2 = k q2 /r2^2, E3 = k q3 /r3^2, E4 = k q4 /r4^2 ." & Chr(10) & _ " En las celdas A84, B84 y C84 est" & ChrW(225) & "n las componentes para el campo resultante de las cuatro cargas cargas. En las celdas A10, B10 y C210 se introducen las coordenadas en el espacio en donde se ubica la primera carga y en las celdas A21, B21, C21 est" & ChrW(225) & "n ubicadaa las ecuaciones para calcular el campo el" & ChrW(233) & "ctrico de la primera carga: " & Chr(10) & _ " E1x= k q1(x1" & ChrW(233) & "x01)/((x1 " & ChrW(233) & " x01)^2 + (y1 " & ChrW(233) & " y01)^2 + (z1 " & ChrW(233) & " z01)^2)^(3/2)" & Chr(10) & _ " E1y = k q1(y1" & ChrW(233) & "y01)/((x1 " & ChrW(233) & " x01)^2 + (y1 " & ChrW(233) & " y01)^2 + (z1 " & ChrW(233) & " z01)^2)^(3/)2 " & Chr(10) & _ " E1z= k q1(z1" & ChrW(233) & "z01)/((x1 " & ChrW(233) & " x01)^2 + (y1 " & ChrW(233) & " y01)^2 + (z1 " & ChrW(233) & " z01)^2)^(3/2)." & Chr(10) & _ " De manera similar en A28, B28, C28 se introduce la posici[on de la segunda carga y su campo en A39, B39, C39; en A46, B46, C46 la posici" & ChrW(243) & "n de la tercera carga y su campo en A57, B57, C57, finalmente en A64, B64, C64 la posici" & ChrW(243) & "n de la tercera carga y su campo en A75, B75, C75. " & Chr(10) & _ " Modifique la magnitud de las cargas y su signo en las celdas C6, C24, C42 y C60, as" & ChrW(237) & " como el color de su apariencia. Para calcular el campo el" & ChrW(233) & "ctrico en cualquier punto del espacio, introduzca las coordenadas del punto en A83, B83, C83 y oprima cualquier bot" & ChrW(243) & "n de coordenadas. " & Chr(10) & _ " La configuraci" & ChrW(243) & "n espacial del campo se puede visualizar en diferentes tipos de coordenadas utilizando la celda C79. Para ver el campo en coordenadas esf" & ChrW(233) & "ricas coloque C79=s, en cil" & ChrW(237) & "ndricas C79=c y en cartesianas C79=o y oprima cualquier bot" & ChrW(243) & "n de coordenadas. Modifique a conveniencia los par" & ChrW(225) & "metros del campo en la cadena que aparece en esta misma celda. " & Chr(10) & _ " Para visdualizar el campo el" & ChrW(233) & "ctrico resultante con mayor resoluci" & ChrW(243) & "n, en la celda C43 modifique entre los primeros par" & ChrW(233) & "ntesis cuadrados el valor, poniendo uno m" & ChrW(225) & "s peque" & ChrW(233) & "o, por ejemplo o[0,5]; entre m" & ChrW(225) & " peque" & ChrW(233) & "o sea el valor, mejor ser" & ChrW(225) & " la resoluci" & ChrW(243) & "n pero tardar" & ChrW(225) & " m" & ChrW(225) & "s tiempo en renderizar. Para ver de nuevo los vectores campo solamente en un punto en particular, borre el contenido del la celda C43 y escriba las coordenadas en donde desee ver el campo en las celdas en A83, B83, C83, por ejemplo A47=0, B47=0, C47=3. " & Chr(10) & _ " (ENGLISH)" & Chr(10) & _ " FIELD OF AN ELECTRICAL QUADRUPOLE" & Chr(10) & _ " An electric quadrupole can be defined as the set of four point charges q distributed in space. The simplest form of a quadrupole is four charges distributed at the vertices of a square. To find the electric field of a quadrupole at any point in space, the superposition principle is applied, that is, at each point in space the electric field of the dipole is the vector sum of the electric fields of the four charges separately:" & Chr(10) & _ " E = E1 + E2 + E3 + E4, E1 = k q1 /r1^2, E2 = k q2 /r2^2, E3 = k q3 /r3^2, E4 = k q4 /r4^2 ." & Chr(10) & _ " In cells A84, B84 and C84 are the components of the field resulting from the four charges. In cells A10, B10 and C210 the coordinates in space where the first charge is located are entered and in cells A21, B21, C21 the equations are located to calculate the electric field of the first charge:" & Chr(10) & _ " E1x= k q1(x1" & ChrW(233) & "x01)/((x1 " & ChrW(233) & " x01)^2 + (y1 " & ChrW(233) & " y01)^2 + (z1 " & ChrW(233) & " z01)^2)^(3/2)" & Chr(10) & _ " E1y = k q1(y1" & ChrW(233) & "y01)/((x1 " & ChrW(233) & " x01)^2 + (y1 " & ChrW(233) & " y01)^2 + (z1 " & ChrW(233) & " z01)^2)^(3/)2" & Chr(10) & _ " E1z= k q1(z1" & ChrW(233) & "z01)/((x1 " & ChrW(233) & " x01)^2 + (y1 " & ChrW(233) & " y01)^2 + (z1 " & ChrW(233) & " z01)^2)^(3/2)." & Chr(10) & _ " Similarly in A28, B28, C28 the position of the second charge and its field are entered in A39, B39, C39; in A46, B46, C46 the position of the third charge and its field in A57, B57, C57, finally in A64, B64, C64 the position of the third charge and its field in A75, B75, C75." & Chr(10) & _ " Change the magnitude of the charges and their sign in cells C6, C24, C42 and C60, as well as the color of their appearance. To calculate the electric field at any point in space, enter the coordinates of the point at A83, B83, C83 and press any coordinate button." & Chr(10) & _ " The spatial configuration of the field can be displayed in different types of coordinates using cell C79. To see the field in spherical coordinates, place C79=s, in cylindrical C79=c and in Cartesian C79=o and press any coordinate button. Modify the field parameters in the string that appears in this very cell. To visualize the resulting electric field with greater resolution, in cell C43 modify the value between the first brackets, putting a smaller one, for example o[0,5]; the smaller the value, the better the resolution, but it will take longer to render. To return to seeing the field vectors only at a particular point, delete the contents of cell C43 and type the coordinates where you want to see the field in cells A83, B83, C83, for example A47=0, B47=0, C47 =3." & Chr(10) & _ " " Cells(m1, n1 + 9).Comment.Text Text:=HELPtxt If m = m1 + 0 Then ' vector 9 Cells(m + 3, n + -1).FormulaR1C1 = "1" Cells(m + 3, n + 0).FormulaR1C1 = "E" Cells(m + 3, n + 2).FormulaR1C1 = "=CONFIG!R6C4" Cells(m + 3, n + 3).FormulaR1C1 = "200" Cells(m + 3, n + 4).FormulaR1C1 = "=CONFIG!R6C6" Cells(m + 3, n + 5).FormulaR1C1 = "375" Cells(m + 4, n + -1).FormulaR1C1 = "1" Cells(m + 4, n + 0).FormulaR1C1 = "183" Cells(m + 4, n + 2).FormulaR1C1 = "Electric field of point charges" Cells(m + 4, n + 12).FormulaR1C1 = "ELECTRIC FIELD OF A SYSTEM OF POINT CHARGES" Cells(m + 4, n + 24).FormulaR1C1 = "INSTRUCTIONS" Cells(m + 5, n + -1).FormulaR1C1 = "1" Cells(m + 5, n + 0).FormulaR1C1 = "1" Cells(m + 5, n + 1).FormulaR1C1 = "0" Cells(m + 5, n + 12).FormulaR1C1 = "(DIPOLE, QUADRUPOLE, CHARGED LINE)" Cells(m + 6, n + -1).FormulaR1C1 = "=SUMIFS(C[2],C[3],""E_*"")" Cells(m + 6, n + 0).FormulaR1C1 = "=SUMIFS(C[-1],C[2],""E_*"")" Cells(m + 6, n + 1).FormulaR1C1 = "=SUMIFS(C[-1],C[1],""E_*"")" Cells(m + 6, n + 4).FormulaR1C1 = "Electric constant:" Cells(m + 7, n + -1).FormulaR1C1 = "=R[1]C" Cells(m + 7, n + 0).FormulaR1C1 = "=R[1]C" Cells(m + 7, n + 1).FormulaR1C1 = "=R[1]C" Cells(m + 7, n + 4).FormulaR1C1 = "k=" Cells(m + 7, n + 5).FormulaR1C1 = "10" Cells(m + 7, n + 21).FormulaR1C1 = "The simulation allows you to calculate and visualize in three dimensions the electric field " Cells(m + 8, n + -1).FormulaR1C1 = "0" Cells(m + 8, n + 0).FormulaR1C1 = "0" Cells(m + 8, n + 1).FormulaR1C1 = "3" Cells(m + 8, n + 2).FormulaR1C1 = "<< --- Field study point" Cells(m + 8, n + 21).FormulaR1C1 = "due to various charges that are distributed in space. In the model, 4 charges q1, q2, q3, q4 are taken, " Cells(m + 9, n + -1).FormulaR1C1 = "=R[-3]C[1]" Cells(m + 9, n + 0).FormulaR1C1 = "=R[-3]C[1]" Cells(m + 9, n + 1).FormulaR1C1 = "=R[-3]C[-2]" Cells(m + 9, n + 2).FormulaR1C1 = "=IF(R[-5]C[-1]>1,"" <-- Field formulae"","""")" Cells(m + 9, n + 4).FormulaR1C1 = "Magnitude of the " Cells(m + 9, n + 21).FormulaR1C1 = "however more charges q can be added and the electric field of the system at any point in space " Cells(m + 10, n + -1).FormulaR1C1 = "1" Cells(m + 10, n + 0).FormulaR1C1 = "0" Cells(m + 10, n + 1).FormulaR1C1 = "1" Cells(m + 10, n + 4).FormulaR1C1 = "resulting field:" Cells(m + 10, n + 21).FormulaR1C1 = "can be calculated. The procedure for adding more charges is described at the end." Cells(m + 11, n + -1).FormulaR1C1 = "3" Cells(m + 11, n + 0).FormulaR1C1 = "0" Cells(m + 11, n + 1).FormulaR1C1 = "1" Cells(m + 11, n + 4).FormulaR1C1 = " |e| =" Cells(m + 11, n + 5).FormulaR1C1 = "=ROUND(SQRT(R[-2]C[-6]^2+R[-2]C[-5]^2+R[-2]C[-4]^2),2)" Cells(m + 3, n + 1).Interior.Color = "5287936" Cells(m + 3, n + 1).Font.Size = "11" Cells(m + 3, n + 1).Font.name = "Calibri" Cells(m + 4, n - 1).Value = 1 Cells(m1 + 1, n1 + 1).Value = " + q1" Call AddNewVector End If ' vector ends If m = m1 + 9 Then ' vector 8 Cells(m + 3, n + -1).FormulaR1C1 = "=R[-9]C+1" Cells(m + 3, n + 0).FormulaR1C1 = "=IF(RC[1]<0, "" - "", "" + "")&""q""&RC[-1]/2" Cells(m + 3, n + 1).FormulaR1C1 = "4" Cells(m + 3, n + 2).FormulaR1C1 = "=""<< -- Magnitude and color of q""&RC[-3]/2" Cells(m + 3, n + 21).FormulaR1C1 = "The total field can be calculated by the principle of superposition as the vector sum of each of the " Cells(m + 4, n + -1).FormulaR1C1 = "1" Cells(m + 4, n + 0).FormulaR1C1 = "9" Cells(m + 4, n + 4).FormulaR1C1 = "Number of charges:" Cells(m + 4, n + 21).FormulaR1C1 = "fields separately at the point in question:" Cells(m + 5, n + -1).FormulaR1C1 = "1" Cells(m + 5, n + 0).FormulaR1C1 = "1" Cells(m + 5, n + 1).FormulaR1C1 = "0" Cells(m + 5, n + 4).FormulaR1C1 = " n =" Cells(m + 5, n + 5).FormulaR1C1 = "=COUNTIF(C[-3],""E_*"")" Cells(m + 6, n + 4).FormulaR1C1 = "(to add more charges" Cells(m + 6, n + 27).FormulaR1C1 = "(Eq-25-1)" Cells(m + 7, n + -1).FormulaR1C1 = "-3" Cells(m + 7, n + 0).FormulaR1C1 = "-3" Cells(m + 7, n + 1).FormulaR1C1 = "0" Cells(m + 7, n + 2).FormulaR1C1 = "=""<< -- Position of q""&R[-4]C[-3]/2" Cells(m + 7, n + 4).FormulaR1C1 = " press +OBJ.)" Cells(m + 8, n + 2).FormulaR1C1 = "=IF(R[-4]C[-1]>1,"" <-- Variable coordinates"","""")" Cells(m + 8, n + 21).FormulaR1C1 = "where each of the fields is established by Coulomb's law:" Cells(m + 9, n + -1).FormulaR1C1 = "=R11C1" Cells(m + 9, n + 0).FormulaR1C1 = "=R11C2" Cells(m + 9, n + 1).FormulaR1C1 = "=R11C3" Cells(m + 9, n + 2).FormulaR1C1 = "=IF(R[-5]C[-1]>1,"" <-- Field formulae"","""")" Cells(m + 9, n + 4).FormulaR1C1 = "Show auxiliary vectors:" Cells(m + 10, n + -1).FormulaR1C1 = "1" Cells(m + 10, n + 0).FormulaR1C1 = "0" Cells(m + 10, n + 1).FormulaR1C1 = "1" Cells(m + 10, n + 4).FormulaR1C1 = "YES=0, NO=1" Cells(m + 10, n + 5).FormulaR1C1 = "0" Cells(m + 10, n + 27).FormulaR1C1 = "(Eq-25-2)" Cells(m + 11, n + -1).FormulaR1C1 = "1" Cells(m + 11, n + 0).FormulaR1C1 = "0" Cells(m + 11, n + 1).FormulaR1C1 = "8" Cells(m + 11, n + 4).FormulaR1C1 = "=IF(R[8]C[-4]>0,""<-- use these cells."","""")" Cells(m + 3, n + 1).Interior.Color = "255" Cells(m + 3, n + 1).Font.Size = "11" Cells(m + 3, n + 1).Font.name = "Calibri" Cells(m + 4, n - 1).Value = 1 Cells(m1 + 1, n1 + 1).Value = "" Call AddNewVector End If ' vector ends If m = m1 + 18 Then ' vector 7 Cells(m + 3, n + -1).FormulaR1C1 = "=R[-9]C+1" Cells(m + 4, n + -1).FormulaR1C1 = "1" Cells(m + 4, n + 0).FormulaR1C1 = "183" Cells(m + 5, n + -1).FormulaR1C1 = "1" Cells(m + 5, n + 0).FormulaR1C1 = "2" Cells(m + 5, n + 1).FormulaR1C1 = "=R22C7" Cells(m + 5, n + 21).FormulaR1C1 = "The constant k depends on the system of units and its value is entered in cell G10." Cells(m + 6, n + 21).FormulaR1C1 = "These equations are located respectively for each charge and each coordinate in rows 30, 48, 66 " Cells(m + 7, n + -1).FormulaR1C1 = "=R11C1" Cells(m + 7, n + 0).FormulaR1C1 = "=R11C2" Cells(m + 7, n + 1).FormulaR1C1 = "=R11C3" Cells(m + 7, n + 21).FormulaR1C1 = "and 84, and the components of the resulting field in cells A12, B12 and C12." Cells(m + 8, n + -1).FormulaR1C1 = "1" Cells(m + 8, n + 0).FormulaR1C1 = "1" Cells(m + 8, n + 1).FormulaR1C1 = "1" Cells(m + 8, n + 2).FormulaR1C1 = "=IF(R[-4]C[-1]>1,"" <-- Variable coordinates"","""")" Cells(m + 9, n + -1).FormulaR1C1 = "=1/(POWER(POWER(R11C1-R[-11]C,2)+POWER(R11C2-R[-11]C[1],2)+POWER(R11C3-R[-11]C[2],2),3/2))*(R11C1-R[-11]C)*R10C7*R[-15]C[2]" Cells(m + 9, n + 0).FormulaR1C1 = "=1/(POWER(POWER(R11C1-R[-11]C[-1],2)+POWER(R11C2-R[-11]C,2)+POWER(R11C3-R[-11]C[1],2),3/2))*(R11C2-R[-11]C)*R10C7*R[-15]C[1]" Cells(m + 9, n + 1).FormulaR1C1 = "=1/(POWER(POWER(R11C1-R[-11]C[-2],2)+POWER(R11C2-R[-11]C[-1],2)+POWER(R11C3-R[-11]C,2),3/2))*(R11C3-R[-11]C)*R10C7*R[-15]C" Cells(m + 9, n + 2).FormulaR1C1 = "=""E_""&R[-15]C[-3]/2" Cells(m + 9, n + 21).FormulaR1C1 = "The following table shows the cells to configure the position, magnitude of the charges, and " Cells(m + 10, n + -1).FormulaR1C1 = "1" Cells(m + 10, n + 0).FormulaR1C1 = "0" Cells(m + 10, n + 1).FormulaR1C1 = "1" Cells(m + 10, n + 21).FormulaR1C1 = "the point where the electric field is studied." Cells(m + 11, n + -1).FormulaR1C1 = "2" Cells(m + 11, n + 0).FormulaR1C1 = "0" Cells(m + 11, n + 1).FormulaR1C1 = "1" Cells(m + 11, n + 21).FormulaR1C1 = "CHARGE" Cells(m + 11, n + 22).FormulaR1C1 = "MAGNITUDE" Cells(m + 11, n + 23).FormulaR1C1 = "X POSITION" Cells(m + 11, n + 24).FormulaR1C1 = "Y POSITION" Cells(m + 11, n + 25).FormulaR1C1 = "Z POSITION" Cells(m + 3, n + 1).Interior.Color = "255" Cells(m + 3, n + 1).Font.Size = "11" Cells(m + 3, n + 1).Font.name = "Calibri" Cells(m + 4, n - 1).Value = 1 Cells(m1 + 1, n1 + 1).Value = " + q2" Call AddNewVector End If ' vector ends If m = m1 + 27 Then ' vector 6 Cells(m + 3, n + -1).FormulaR1C1 = "=R[-9]C+1" Cells(m + 3, n + 0).FormulaR1C1 = "=IF(RC[1]<0, "" - "", "" + "")&""q""&RC[-1]/2" Cells(m + 3, n + 1).FormulaR1C1 = "4" Cells(m + 3, n + 2).FormulaR1C1 = "=""<< -- Magnitude and color of q""&RC[-3]/2" Cells(m + 4, n + -1).FormulaR1C1 = "1" Cells(m + 4, n + 0).FormulaR1C1 = "9" Cells(m + 4, n + 21).FormulaR1C1 = "q1" Cells(m + 4, n + 22).FormulaR1C1 = "C15" Cells(m + 4, n + 23).FormulaR1C1 = "A19" Cells(m + 4, n + 24).FormulaR1C1 = "B19" Cells(m + 4, n + 25).FormulaR1C1 = "C19" Cells(m + 5, n + -1).FormulaR1C1 = "1" Cells(m + 5, n + 0).FormulaR1C1 = "1" Cells(m + 5, n + 1).FormulaR1C1 = "0" Cells(m + 5, n + 21).FormulaR1C1 = "q2" Cells(m + 5, n + 22).FormulaR1C1 = "C33" Cells(m + 5, n + 23).FormulaR1C1 = "A37" Cells(m + 5, n + 24).FormulaR1C1 = "B37" Cells(m + 5, n + 25).FormulaR1C1 = "C37" Cells(m + 6, n + -1).FormulaR1C1 = "Q2, k2=" Cells(m + 6, n + 0).FormulaR1C1 = "=R[-3]C[1]" Cells(m + 6, n + 1).FormulaR1C1 = "=R[-26]C[4]" Cells(m + 6, n + 21).FormulaR1C1 = "q3" Cells(m + 6, n + 22).FormulaR1C1 = "C51" Cells(m + 6, n + 23).FormulaR1C1 = "A55" Cells(m + 6, n + 24).FormulaR1C1 = "B55" Cells(m + 6, n + 25).FormulaR1C1 = "C55" Cells(m + 7, n + -1).FormulaR1C1 = "3" Cells(m + 7, n + 0).FormulaR1C1 = "-3" Cells(m + 7, n + 1).FormulaR1C1 = "0" Cells(m + 7, n + 2).FormulaR1C1 = "=""<< -- Position of q""&R[-4]C[-3]/2" Cells(m + 7, n + 21).FormulaR1C1 = "q4" Cells(m + 7, n + 22).FormulaR1C1 = "C69" Cells(m + 7, n + 23).FormulaR1C1 = "A73" Cells(m + 7, n + 24).FormulaR1C1 = "B73" Cells(m + 7, n + 25).FormulaR1C1 = "C73" Cells(m + 8, n + 2).FormulaR1C1 = "=IF(R[-4]C[-1]>1,"" <-- Variable coordinates"","""")" Cells(m + 8, n + 21).FormulaR1C1 = "P (x, y, z) =" Cells(m + 8, n + 23).FormulaR1C1 = "A11" Cells(m + 8, n + 24).FormulaR1C1 = "B11" Cells(m + 8, n + 25).FormulaR1C1 = "C11" Cells(m + 9, n + -1).FormulaR1C1 = "=R11C1" Cells(m + 9, n + 0).FormulaR1C1 = "=R11C2" Cells(m + 9, n + 1).FormulaR1C1 = "=R11C3" Cells(m + 9, n + 2).FormulaR1C1 = "=IF(R[-5]C[-1]>1,"" <-- Field formulae"","""")" Cells(m + 10, n + -1).FormulaR1C1 = "1" Cells(m + 10, n + 0).FormulaR1C1 = "0" Cells(m + 10, n + 1).FormulaR1C1 = "1" Cells(m + 10, n + 21).FormulaR1C1 = "The color of the charge is modified in the same cell as the magnitude, which can be negative or positive." Cells(m + 11, n + -1).FormulaR1C1 = "1" Cells(m + 11, n + 0).FormulaR1C1 = "0" Cells(m + 11, n + 1).FormulaR1C1 = "7" Cells(m + 11, n + 21).FormulaR1C1 = "The field vectors of each charge are shown in dotted lines." Cells(m + 3, n + 1).Interior.Color = "255" Cells(m + 3, n + 1).Font.Size = "11" Cells(m + 3, n + 1).Font.name = "Calibri" Cells(m + 4, n - 1).Value = 1 Cells(m1 + 1, n1 + 1).Value = "" Call AddNewVector End If ' vector ends If m = m1 + 36 Then ' vector 5 Cells(m + 3, n + -1).FormulaR1C1 = "=R[-9]C+1" Cells(m + 4, n + -1).FormulaR1C1 = "1" Cells(m + 4, n + 0).FormulaR1C1 = "183" Cells(m + 4, n + 21).FormulaR1C1 = "According to the previous table, modify the magnitude, position and sign of the loads according " Cells(m + 5, n + -1).FormulaR1C1 = "1" Cells(m + 5, n + 0).FormulaR1C1 = "2" Cells(m + 5, n + 1).FormulaR1C1 = "=R22C7" Cells(m + 5, n + 21).FormulaR1C1 = "to your criteria and observe the results by pressing the XYZ button or any coordinate button. " Cells(m + 6, n + 21).FormulaR1C1 = "Identify points of symmetry (x,y,z) in space and enter their coordinates in A11, B11, C11." Cells(m + 7, n + -1).FormulaR1C1 = "=R11C1" Cells(m + 7, n + 0).FormulaR1C1 = "=R11C2" Cells(m + 7, n + 1).FormulaR1C1 = "=R11C3" Cells(m + 8, n + -1).FormulaR1C1 = "0" Cells(m + 8, n + 0).FormulaR1C1 = "7" Cells(m + 8, n + 1).FormulaR1C1 = "7" Cells(m + 8, n + 2).FormulaR1C1 = "=IF(R[-4]C[-1]>1,"" <-- Variable coordinates"","""")" Cells(m + 8, n + 21).FormulaR1C1 = "The model is designed to add more charges in space. To add an additional charge do the following:" Cells(m + 9, n + -1).FormulaR1C1 = "=1/(POWER(POWER(R11C1-R[-11]C,2)+POWER(R11C2-R[-11]C[1],2)+POWER(R11C3-R[-11]C[2],2),3/2))*(R11C1-R[-11]C)*R10C7*R[-15]C[2]" Cells(m + 9, n + 0).FormulaR1C1 = "=1/(POWER(POWER(R11C1-R[-11]C[-1],2)+POWER(R11C2-R[-11]C,2)+POWER(R11C3-R[-11]C[1],2),3/2))*(R11C2-R[-11]C)*R10C7*R[-15]C[1]" Cells(m + 9, n + 1).FormulaR1C1 = "=1/(POWER(POWER(R11C1-R[-11]C[-2],2)+POWER(R11C2-R[-11]C[-1],2)+POWER(R11C3-R[-11]C,2),3/2))*(R11C3-R[-11]C)*R10C7*R[-15]C" Cells(m + 9, n + 2).FormulaR1C1 = "=""E_""&R[-15]C[-3]/2" Cells(m + 9, n + 21).FormulaR1C1 = "1. Press the +OBJ button." Cells(m + 10, n + -1).FormulaR1C1 = "1" Cells(m + 10, n + 0).FormulaR1C1 = "0" Cells(m + 10, n + 1).FormulaR1C1 = "1" Cells(m + 10, n + 21).FormulaR1C1 = "2. Enter A91 =3, B91=3, C91=6 for new charge position. Press XYZ to see the result." Cells(m + 11, n + -1).FormulaR1C1 = "2" Cells(m + 11, n + 0).FormulaR1C1 = "0" Cells(m + 11, n + 1).FormulaR1C1 = "1" Cells(m + 11, n + 21).FormulaR1C1 = "Press >>C to see the result clearly." Cells(m + 3, n + 1).Interior.Color = "255" Cells(m + 3, n + 1).Font.Size = "11" Cells(m + 3, n + 1).Font.name = "Calibri" Cells(m + 4, n - 1).Value = 1 Cells(m1 + 1, n1 + 1).Value = " - q3" Call AddNewVector End If ' vector ends If m = m1 + 45 Then ' vector 4 Cells(m + 3, n + -1).FormulaR1C1 = "=R[-9]C+1" Cells(m + 3, n + 0).FormulaR1C1 = "=IF(RC[1]<0, "" - "", "" + "")&""q""&RC[-1]/2" Cells(m + 3, n + 1).FormulaR1C1 = "-4" Cells(m + 3, n + 2).FormulaR1C1 = "=""<< -- Magnitude and color of q""&RC[-3]/2" Cells(m + 3, n + 21).FormulaR1C1 = "To add more charges the procedure is similar." Cells(m + 4, n + -1).FormulaR1C1 = "1" Cells(m + 4, n + 0).FormulaR1C1 = "9" Cells(m + 4, n + 21).FormulaR1C1 = "The magnitude of the resulting field is displayed in cell G14." Cells(m + 5, n + -1).FormulaR1C1 = "1" Cells(m + 5, n + 0).FormulaR1C1 = "1" Cells(m + 5, n + 1).FormulaR1C1 = "0" Cells(m + 6, n + -1).FormulaR1C1 = "Q2, k2=" Cells(m + 6, n + 0).FormulaR1C1 = "=R[-3]C[1]" Cells(m + 6, n + 1).FormulaR1C1 = "=R[-26]C[4]" Cells(m + 6, n + 21).FormulaR1C1 = "Example:" Cells(m + 7, n + -1).FormulaR1C1 = "3" Cells(m + 7, n + 0).FormulaR1C1 = "3" Cells(m + 7, n + 1).FormulaR1C1 = "0" Cells(m + 7, n + 2).FormulaR1C1 = "=""<< -- Position of q""&R[-4]C[-3]/2" Cells(m + 7, n + 21).FormulaR1C1 = "Given four charges q1= q2 = q3 = q4 = 3C located at the vertices of a square of side 8." Cells(m + 8, n + 2).FormulaR1C1 = "=IF(R[-4]C[-1]>1,"" <-- Variable coordinates"","""")" Cells(m + 8, n + 21).FormulaR1C1 = "Find the components of the resulting field at a point," Cells(m + 9, n + -1).FormulaR1C1 = "=R11C1" Cells(m + 9, n + 0).FormulaR1C1 = "=R11C2" Cells(m + 9, n + 1).FormulaR1C1 = "=R11C3" Cells(m + 9, n + 2).FormulaR1C1 = "=IF(R[-5]C[-1]>1,"" <-- Field formulae"","""")" Cells(m + 9, n + 22).FormulaR1C1 = "a) in the center of the square," Cells(m + 10, n + -1).FormulaR1C1 = "1" Cells(m + 10, n + 0).FormulaR1C1 = "0" Cells(m + 10, n + 1).FormulaR1C1 = "1" Cells(m + 10, n + 22).FormulaR1C1 = "b) at a height of the center of the square z=5," Cells(m + 11, n + -1).FormulaR1C1 = "1" Cells(m + 11, n + 0).FormulaR1C1 = "0" Cells(m + 11, n + 1).FormulaR1C1 = "7" Cells(m + 11, n + 22).FormulaR1C1 = "c) on the y axis at y=10." Cells(m + 3, n + 1).Interior.Color = "15773696" Cells(m + 3, n + 1).Font.Size = "11" Cells(m + 3, n + 1).Font.name = "Calibri" Cells(m + 4, n - 1).Value = 1 Cells(m1 + 1, n1 + 1).Value = "" Call AddNewVector End If ' vector ends If m = m1 + 54 Then ' vector 3 Cells(m + 3, n + -1).FormulaR1C1 = "=R[-9]C+1" Cells(m + 3, n + 21).FormulaR1C1 = "Solution:" Cells(m + 4, n + -1).FormulaR1C1 = "1" Cells(m + 4, n + 0).FormulaR1C1 = "183" Cells(m + 4, n + 21).FormulaR1C1 = "a)" Cells(m + 4, n + 22).FormulaR1C1 = "Magnitude" Cells(m + 4, n + 24).FormulaR1C1 = "Position" Cells(m + 5, n + -1).FormulaR1C1 = "1" Cells(m + 5, n + 0).FormulaR1C1 = "2" Cells(m + 5, n + 1).FormulaR1C1 = "=R22C7" Cells(m + 5, n + 21).FormulaR1C1 = "q1 = C15 =" Cells(m + 5, n + 22).FormulaR1C1 = "3" Cells(m + 5, n + 24).FormulaR1C1 = "(A19=0, B19=0, C19=0)" Cells(m + 6, n + 21).FormulaR1C1 = "q2 = C33 =" Cells(m + 6, n + 22).FormulaR1C1 = "3" Cells(m + 6, n + 24).FormulaR1C1 = "(A37=8, B37=0, C37=0)" Cells(m + 7, n + -1).FormulaR1C1 = "=R11C1" Cells(m + 7, n + 0).FormulaR1C1 = "=R11C2" Cells(m + 7, n + 1).FormulaR1C1 = "=R11C3" Cells(m + 7, n + 21).FormulaR1C1 = "q3 = C51 =" Cells(m + 7, n + 22).FormulaR1C1 = "3" Cells(m + 7, n + 24).FormulaR1C1 = "(A55=8, B55=8, C55=0)" Cells(m + 8, n + -1).FormulaR1C1 = "0" Cells(m + 8, n + 0).FormulaR1C1 = "7" Cells(m + 8, n + 1).FormulaR1C1 = "7" Cells(m + 8, n + 2).FormulaR1C1 = "=IF(R[-4]C[-1]>1,"" <-- Variable coordinates"","""")" Cells(m + 8, n + 21).FormulaR1C1 = "q4 = C69 =" Cells(m + 8, n + 22).FormulaR1C1 = "3" Cells(m + 8, n + 24).FormulaR1C1 = "(A73=0, B73=8, C73=0)" Cells(m + 9, n + -1).FormulaR1C1 = "=1/(POWER(POWER(R11C1-R[-11]C,2)+POWER(R11C2-R[-11]C[1],2)+POWER(R11C3-R[-11]C[2],2),3/2))*(R11C1-R[-11]C)*R10C7*R[-15]C[2]" Cells(m + 9, n + 0).FormulaR1C1 = "=1/(POWER(POWER(R11C1-R[-11]C[-1],2)+POWER(R11C2-R[-11]C,2)+POWER(R11C3-R[-11]C[1],2),3/2))*(R11C2-R[-11]C)*R10C7*R[-15]C[1]" Cells(m + 9, n + 1).FormulaR1C1 = "=1/(POWER(POWER(R11C1-R[-11]C[-2],2)+POWER(R11C2-R[-11]C[-1],2)+POWER(R11C3-R[-11]C,2),3/2))*(R11C3-R[-11]C)*R10C7*R[-15]C" Cells(m + 9, n + 2).FormulaR1C1 = "=""E_""&R[-15]C[-3]/2" Cells(m + 9, n + 21).FormulaR1C1 = "P (x, y, z) =" Cells(m + 9, n + 24).FormulaR1C1 = "(A11=4, B11=4, C11=0)" Cells(m + 10, n + -1).FormulaR1C1 = "1" Cells(m + 10, n + 0).FormulaR1C1 = "0" Cells(m + 10, n + 1).FormulaR1C1 = "1" Cells(m + 10, n + 21).FormulaR1C1 = " k = G10 =" Cells(m + 10, n + 22).FormulaR1C1 = "8.9" Cells(m + 11, n + -1).FormulaR1C1 = "2" Cells(m + 11, n + 0).FormulaR1C1 = "0" Cells(m + 11, n + 1).FormulaR1C1 = "1" Cells(m + 11, n + 21).FormulaR1C1 = "Press XYZ " Cells(m + 3, n + 1).Interior.Color = "15773696" Cells(m + 3, n + 1).Font.Size = "11" Cells(m + 3, n + 1).Font.name = "Calibri" Cells(m + 4, n - 1).Value = 1 Cells(m1 + 1, n1 + 1).Value = " - q4" Call AddNewVector End If ' vector ends If m = m1 + 63 Then ' vector 2 Cells(m + 3, n + -1).FormulaR1C1 = "=R[-9]C+1" Cells(m + 3, n + 0).FormulaR1C1 = "=IF(RC[1]<0, "" - "", "" + "")&""q""&RC[-1]/2" Cells(m + 3, n + 1).FormulaR1C1 = "-4" Cells(m + 3, n + 2).FormulaR1C1 = "=""<< -- Magnitude and color of q""&RC[-3]/2" Cells(m + 3, n + 21).FormulaR1C1 = "Observation: we introduce a system of units in which k=8.9." Cells(m + 4, n + -1).FormulaR1C1 = "1" Cells(m + 4, n + 0).FormulaR1C1 = "9" Cells(m + 4, n + 21).FormulaR1C1 = "RESULT:" Cells(m + 5, n + -1).FormulaR1C1 = "1" Cells(m + 5, n + 0).FormulaR1C1 = "1" Cells(m + 5, n + 1).FormulaR1C1 = "0" Cells(m + 5, n + 21).FormulaR1C1 = "|E| = G14 = 0" Cells(m + 5, n + 22).FormulaR1C1 = "0" Cells(m + 5, n + 23).FormulaR1C1 = " (due to symmetry)." Cells(m + 6, n + -1).FormulaR1C1 = "Q2, k2=" Cells(m + 6, n + 0).FormulaR1C1 = "=R[-3]C[1]" Cells(m + 6, n + 1).FormulaR1C1 = "=R[-26]C[4]" Cells(m + 7, n + -1).FormulaR1C1 = "-3" Cells(m + 7, n + 0).FormulaR1C1 = "3" Cells(m + 7, n + 1).FormulaR1C1 = "0" Cells(m + 7, n + 2).FormulaR1C1 = "=""<< -- Position of q""&R[-4]C[-3]/2" Cells(m + 7, n + 21).FormulaR1C1 = "b) " Cells(m + 8, n + 2).FormulaR1C1 = "=IF(R[-4]C[-1]>1,"" <-- Variable coordinates"","""")" Cells(m + 8, n + 21).FormulaR1C1 = "P (x, y, z) =" Cells(m + 8, n + 24).FormulaR1C1 = "(A11=4, B11=4, C11=5)" Cells(m + 9, n + -1).FormulaR1C1 = "=R11C1" Cells(m + 9, n + 0).FormulaR1C1 = "=R11C2" Cells(m + 9, n + 1).FormulaR1C1 = "=R11C3" Cells(m + 9, n + 2).FormulaR1C1 = "=IF(R[-5]C[-1]>1,"" <-- Field formulae"","""")" Cells(m + 9, n + 21).FormulaR1C1 = "RESULT:" Cells(m + 10, n + -1).FormulaR1C1 = "1" Cells(m + 10, n + 0).FormulaR1C1 = "0" Cells(m + 10, n + 1).FormulaR1C1 = "1" Cells(m + 10, n + 21).FormulaR1C1 = "|E| = G14 =" Cells(m + 10, n + 22).FormulaR1C1 = "1.39" Cells(m + 11, n + -1).FormulaR1C1 = "1" Cells(m + 11, n + 0).FormulaR1C1 = "0" Cells(m + 11, n + 1).FormulaR1C1 = "7" Cells(m + 11, n + 21).FormulaR1C1 = "Ex = A12 =" Cells(m + 11, n + 22).FormulaR1C1 = "0" Cells(m + 3, n + 1).Interior.Color = "15773696" Cells(m + 3, n + 1).Font.Size = "11" Cells(m + 3, n + 1).Font.name = "Calibri" Cells(m + 4, n - 1).Value = 1 Cells(m1 + 1, n1 + 1).Value = "" Call AddNewVector End If ' vector ends If m = m1 + 72 Then ' vector 1 Cells(m + 3, n + -1).FormulaR1C1 = "=R[-9]C+1" Cells(m + 3, n + 21).FormulaR1C1 = "Ey = B12 = " Cells(m + 3, n + 22).FormulaR1C1 = "0" Cells(m + 4, n + -1).FormulaR1C1 = "1" Cells(m + 4, n + 0).FormulaR1C1 = "183" Cells(m + 4, n + 21).FormulaR1C1 = "Ez = C12 = " Cells(m + 4, n + 22).FormulaR1C1 = "1.39" Cells(m + 5, n + -1).FormulaR1C1 = "1" Cells(m + 5, n + 0).FormulaR1C1 = "2" Cells(m + 5, n + 1).FormulaR1C1 = "=R22C7" Cells(m + 5, n + 21).FormulaR1C1 = "Press XYZ o YZ" Cells(m + 7, n + -1).FormulaR1C1 = "=R11C1" Cells(m + 7, n + 0).FormulaR1C1 = "=R11C2" Cells(m + 7, n + 1).FormulaR1C1 = "=R11C3" Cells(m + 7, n + 21).FormulaR1C1 = "c) " Cells(m + 8, n + -1).FormulaR1C1 = "0" Cells(m + 8, n + 0).FormulaR1C1 = "7" Cells(m + 8, n + 1).FormulaR1C1 = "7" Cells(m + 8, n + 2).FormulaR1C1 = "=IF(R[-4]C[-1]>1,"" <-- Variable coordinates"","""")" Cells(m + 8, n + 21).FormulaR1C1 = "P (x, y, z) =" Cells(m + 8, n + 24).FormulaR1C1 = "(A11=0, B11=10, C11=0)" Cells(m + 9, n + -1).FormulaR1C1 = "=1/(POWER(POWER(R11C1-R[-11]C,2)+POWER(R11C2-R[-11]C[1],2)+POWER(R11C3-R[-11]C[2],2),3/2))*(R11C1-R[-11]C)*R10C7*R[-15]C[2]" Cells(m + 9, n + 0).FormulaR1C1 = "=1/(POWER(POWER(R11C1-R[-11]C[-1],2)+POWER(R11C2-R[-11]C,2)+POWER(R11C3-R[-11]C[1],2),3/2))*(R11C2-R[-11]C)*R10C7*R[-15]C[1]" Cells(m + 9, n + 1).FormulaR1C1 = "=1/(POWER(POWER(R11C1-R[-11]C[-2],2)+POWER(R11C2-R[-11]C[-1],2)+POWER(R11C3-R[-11]C,2),3/2))*(R11C3-R[-11]C)*R10C7*R[-15]C" Cells(m + 9, n + 2).FormulaR1C1 = "=""E_""&R[-15]C[-3]/2" Cells(m + 9, n + 21).FormulaR1C1 = "RESULT:" Cells(m + 10, n + -1).FormulaR1C1 = "1" Cells(m + 10, n + 0).FormulaR1C1 = "0" Cells(m + 10, n + 1).FormulaR1C1 = "1" Cells(m + 10, n + 21).FormulaR1C1 = "|E| = G14 =" Cells(m + 10, n + 22).FormulaR1C1 = "8.07" Cells(m + 11, n + -1).FormulaR1C1 = "2" Cells(m + 11, n + 0).FormulaR1C1 = "0" Cells(m + 11, n + 1).FormulaR1C1 = "1" Cells(m + 11, n + 21).FormulaR1C1 = "Ex = A12 =" Cells(m + 11, n + 22).FormulaR1C1 = "-0.5" Cells(m + 3, n + 1).Interior.Color = "15773696" Cells(m + 3, n + 1).Font.Size = "11" Cells(m + 3, n + 1).Font.name = "Calibri" Cells(m + 4, n - 1).Value = 1 Cells(m1 + 1, n1 + 1).Value = "" Cells(m1 + 2, n1 - 1).Value = 9 End If ' vector ends If m = m1 + 72 Then Cells(m + 12, n + 21).FormulaR1C1 = "Ey = B12 = " Cells(m + 12, n + 22).FormulaR1C1 = "8.05" Cells(m + 13, n + 21).FormulaR1C1 = "Ez = C12 = " Cells(m + 13, n + 22).FormulaR1C1 = "0" Cells(m + 14, n + 21).FormulaR1C1 = "Press XY" Cells(m + 16, n + 21).FormulaR1C1 = "Exercises:" Cells(m + 18, n + 21).FormulaR1C1 = "1. Using the +OBJ button, construct a charged line composed of 20 electric charges of equal " Cells(m + 19, n + 21).FormulaR1C1 = "magnitude and sign and create the model to study its electric field at a point in space that is at a " Cells(m + 20, n + 21).FormulaR1C1 = "certain distance. Compare the results of the model with the calculations made using integrals." Cells(m + 22, n + 21).FormulaR1C1 = "2. Build the model to study the electric field of a dipole at any point in space." Cells(m + 23, n + 22).FormulaR1C1 = "Note: Use the -OBJ button to remove charges." Cells(m + 25, n + 21).FormulaR1C1 = "EXAMPLE OF SPATIAL CONFIGURATION OF THE ELECTRIC FIELD" Cells(m + 27, n + 21).FormulaR1C1 = "Insert the letter o into cell C7=o and press XYZ. Then replace the value string in C7 with the expression:" Cells(m + 28, n + 21).FormulaR1C1 = "o[0,2]x=[-10;10]o2[0,2]y=[-10;10]o3[0,2]z=[4;4]color=[8]origin[cart. ]=[0;0;0]tfactor=0.00291332s" Cells(m + 29, n + 21).FormulaR1C1 = "and press XYZ, wait for the electric field vectors to appear in the configured region." Cells(m + 30, n + 21).FormulaR1C1 = "For more details on how cell C7 works, select it and press the help button." Cells(m + 31, n + 21).FormulaR1C1 = "Press the B/W button to see the field in black background." Cells(m + 33, n + 21).FormulaR1C1 = "ELECTRICAL FIELD OF A DIPOLE" Cells(m + 35, n + 21).FormulaR1C1 = "Delete charges with the -OBJ button until there are two chargges left in the system." Cells(m + 36, n + 21).FormulaR1C1 = "Assign the value of the magnitude of the charges q1 = 4 and q2 = - 4. Insert the letter o into cell C7=o " Cells(m + 37, n + 21).FormulaR1C1 = "and press XYZ, then replace the value string in C7 with the expression:" Cells(m + 38, n + 21).FormulaR1C1 = "o[0,2]x=[-10;10]o2[0,2]y=[-10;10]o3[0,2]z=[4;4]color=[8]origin[cart. ]=[0;0;0]tfactor=0.00291332s" Cells(m + 39, n + 21).FormulaR1C1 = "and press XY to view from above, wait for the electric field vectors to appear in the configured region." Cells(m + 40, n + 21).FormulaR1C1 = "To study the dipole field at a point, clear cell C7 and enter the coordinates of the point in A11, " Cells(m + 41, n + 21).FormulaR1C1 = "B11, C11." Cells(m + 43, n + 21).FormulaR1C1 = "Exercises:" Cells(m + 45, n + 21).FormulaR1C1 = "1. Build a quadrupole and an octopole and study the spatial configuration of the field in " Cells(m + 46, n + 21).FormulaR1C1 = "different regions of space. For the quadrupole, place the charges at the vertices of a square and for " Cells(m + 47, n + 21).FormulaR1C1 = "the octopole, place them at the vertices of a cube." Cells(m + 49, n + 21).FormulaR1C1 = "2. Build different geometric objects composed of several point charges, for example a pyramid " Cells(m + 50, n + 21).FormulaR1C1 = "(the charges at its vertices), a semicircle (the charges distributed at a certain angle), etc. " Cells(m + 51, n + 21).FormulaR1C1 = "Note: each object must be built in a separate spreadsheet, using this model as a starting point." Cells(m + 53, n + 21).FormulaR1C1 = "3. (ADVANCED). Create a formula in MS Excel, to put it in the coordinates cells of the charges so that you " Cells(m + 54, n + 21).FormulaR1C1 = "can place 20 charges along a spiral of radius 5 (in the XY plane) and going up along the z axis." Call BlackWhiteDesk Call PutEqBut End If ' actualizar hoja End Sub