Jump to content

How to simulate a working electric field inside a computer?


fredreload

Recommended Posts

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?

Link to comment
Share on other sites

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? 

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

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.