Page 2 of 2

Re: Electrostatics with volume charge

Posted: 27 Mar 2024, 17:05
by kevinarden
Most variables in Elmer are per volume if it is 3D and per area if it is 2D, some are per mass.
the manual might specify

Re: Electrostatics with volume charge

Posted: 27 Mar 2024, 17:09
by drmike
Do you see a ring charge in the potential output? A blob of charge should change the potential distribution - a blob of dielectric not so much.
I don't see any change from the charge present vs the charge not preset. So I'm doing something wrong!

Edit: are there any examples that have charged particles or volumes added as "body force"? Maybe I should try that out.

Re: Electrostatics with volume charge

Posted: 27 Mar 2024, 17:59
by kevinarden

Re: Electrostatics with volume charge

Posted: 27 Mar 2024, 18:05
by kevinarden
I see this
potential.png
potential.png (52.54 KiB) Viewed 339 times

Re: Electrostatics with volume charge

Posted: 27 Mar 2024, 18:49
by drmike
Thanks, I will play with that. I dug into the StatElecSolve.F90 and it sure looks like this should have worked. Hopefully I'll figure out what I'm doing wrong soon!

Re: Electrostatics with volume charge

Posted: 28 Mar 2024, 00:26
by drmike
I dumped all the x, y, z points using a write statement, and copied that to a file. I then used those to feed into my formula, and realized I wasn't doing what I thought. I also found that paraview is "sticky" and I had to reset the amplitude scale every time I read in a new run. My playing around with amplitude was very confusing until I realized that. So now I get what I told it to do which is not what I wanted. But at least I can see what I expected:
Screenshot from 2024-03-27 16-19-02.png
Screenshot from 2024-03-27 16-19-02.png (38.17 KiB) Viewed 330 times
I have a ways to go to understand how everything works, but at least I'm getting a clue.

Re: Electrostatics with volume charge

Posted: 28 Mar 2024, 01:06
by drmike
Finally got what I wanted for the simple test.
Screenshot from 2024-03-27 17-03-29.png
Screenshot from 2024-03-27 17-03-29.png (98 KiB) Viewed 328 times
Now I have a lot more to learn, but I think I'll pause while I'm happy.