Jump to content

How to simulate a working electric field inside a computer?

Featured Replies

We all know the importance of electric field when involved with brain simulation for consciousness. The thing is, how can one simulate a positive or negative charge inside a computer? It might involve the simulation of three dimensional space time and having that structure built inside a computer. But could an electrical charge exists without it?

31 minutes ago, fredreload said:

We all know the importance of electric field when involved with brain simulation for consciousness. The thing is, how can one simulate a positive or negative charge inside a computer? It might involve the simulation of three dimensional space time and having that structure built inside a computer. But could an electrical charge exists without it?

How are your programming skills? How is your grasp on the laws of electrostatics and electrodynamics? Your post suggests you want to simulate a human brain at work? How far are you with that? Do you have it on GithHub? 

4 hours ago, fredreload said:

We all know the importance of electric field when involved with brain simulation for consciousness. The thing is, how can one simulate a positive or negative charge inside a computer? It might involve the simulation of three dimensional space time and having that structure built inside a computer. But could an electrical charge exists without it?

What do you mean by inside of a computer? Is that literal, or are you talking about a computer simulation? If the latter, programs already exist to do such simulations for calculating electric and magnetic fields given a set of boundary conditions.

Quote

How to simulate a working electric field inside a computer?

That's very easy algorithm. Visualization of it in GUI would be the most time consuming task while programming.

Make a list of charged particles (position, charge). Load them from CSV/text file/allow them to be entered by user in stdin.

Make 2D or 3D array (two or three loops, one in the another) making "virtual" points - force vectors. User should be able to control quantity of columns, rows, and distances between them.

Inside the internal loop calculate, for each point in the array:

F=ke q1q2/r^2

(r = distance between position in the array and position of charged particle from the list of charged particles)

And sum them together, to get average.

Display them, drawing arrow in starting point and length of arrow appropriate for strength at that point (scalar from F), and direction of arrow appropriate to direction of force vector.

Place test particle(s) in such simulated electric field.

Recalculate movement in loop and redraw everything.

 

Edited by Sensei

Archived

This topic is now archived and is closed to further replies.

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.