Field lines#
Colored electric field lines: 1 positive vs 1 negative charge#
The Python code for the example below can be found online in the DataXlCalcNet repository or in the corresponding local DataXlCalcNet folder in the file D01_4_ColoredFieldLines.py, and the XML code in the file D01_4_ColoredFieldLines.2D.xml.
To produce the figure as shown below, the try-block at the end of the file should look like this:
try:
if __name__ == '__main__':
UseColors_ = True
Model_ = 1 # 1, 2, 3, 4
ColoredFieldLines(UseColors=UseColors_, Model=Model_)
Colored electric field lines: 3 positive vs 1 negative charge(s)#
The Python code for the example below can be found online in the DataXlCalcNet repository or in the corresponding local DataXlCalcNet folder in the file D01_4_ColoredFieldLines.py, and the XML code in the file D01_4_ColoredFieldLines.2D.xml.
To produce the figure as shown below, the try-block at the end of the file should look like this:
try:
if __name__ == '__main__':
UseColors_ = True
Model_ = 2 # 1, 2, 3, 4
ColoredFieldLines(UseColors=UseColors_, Model=Model_)
Colored electric field lines: 3 positive vs 1 positive charge(s)#
The Python code for the example below can be found online in the DataXlCalcNet repository or in the corresponding local DataXlCalcNet folder in the file D01_4_ColoredFieldLines.py, and the XML code in the file D01_4_ColoredFieldLines.2D.xml.
To produce the figure as shown below, the try-block at the end of the file should look like this:
try:
if __name__ == '__main__':
UseColors_ = True
Model_ = 3 # 1, 2, 3, 4
ColoredFieldLines(UseColors=UseColors_, Model=Model_)
Colored electric field lines: 3 positive and 2 negative vs 1 positive charge(s)#
The Python code for the example below can be found online in the DataXlCalcNet repository or in the corresponding local DataXlCalcNet folder in the file D01_4_ColoredFieldLines.py, and the XML code in the file D01_4_ColoredFieldLines.2D.xml.
To produce the figure as shown below, the try-block at the end of the file should look like this:
try:
if __name__ == '__main__':
UseColors_ = True
Model_ = 4 # 1, 2, 3, 4
ColoredFieldLines(UseColors=UseColors_, Model=Model_)



