Electric field visualisation

Post processing utility for Elmer
Post Reply
ian11213
Posts: 5
Joined: 13 Nov 2012, 12:16
Antispam: Yes

Electric field visualisation

Post by ian11213 »

Good evening, all. Is anyone able to advise me? I have an electrostatic field problem which I have set up and solved. I can visualise the electric potential readily and all seems well but I'd like to plot the direction and magnitude of the electric field - perhaps as a vector field. The post-processor gives me the option of Electric Field 1 and Electric Field 2 but neither of these seems to offer what I want.

Any hints? Many thanks!

Ian
mzenker
Posts: 1999
Joined: 07 Dec 2009, 11:49
Location: Germany

Re: Electric field visualisation

Post by mzenker »

Hi,

you have to build a vector out of your electric field components. Enter the following in the ElmerPost Command Line:

Code: Select all

math efield = tovector(Electric.field.1,Electric.field.2,Electric.field.3)
math elfield_mag = sqrt(vdot(efield,efield))
Then you have a vector efield which you can visualize with the vector view.

HTH,

Matthias
raback
Site Admin
Posts: 4812
Joined: 22 Aug 2009, 11:57
Antispam: Yes
Location: Espoo, Finland
Contact:

Re: Electric field visualisation

Post by raback »

Hi

It is a little bit strange that you don't have the vectors to your disposal directly? Either you have an old installation, or you're running some other visualization software than ElmerPost/Paraview. In ElmerPost the vector field are visualized under "Vectors".

-Peter
ian11213
Posts: 5
Joined: 13 Nov 2012, 12:16
Antispam: Yes

Re: Electric field visualisation

Post by ian11213 »

Many thanks, Matthias - that's just what I wanted. Is there an easy tutorial introduction to ElmerPost's math facilities?
And you are right, Peter, I have a pretty old installation because in my hands Elmer crashes in the latest releases of Ubuntu (perhaps this is related to my hardware - I don't know) so I am currently running on 10.04 in a virtual machine - which is really ugly but seems to run OK.

Very much appreciate both your help,

Ian
raback
Site Admin
Posts: 4812
Joined: 22 Aug 2009, 11:57
Antispam: Yes
Location: Espoo, Finland
Contact:

Re: Electric field visualisation

Post by raback »

Hi

There's also a rather fresh Linux Mint virtual machine for WMplayer in:
http://www.nic.funet.fi/pub/sci/physics ... LinuxMint/

-Peter
ian11213
Posts: 5
Joined: 13 Nov 2012, 12:16
Antispam: Yes

Re: Electric field visualisation

Post by ian11213 »

Thanks, Peter - I'll take a look.

Ian
Post Reply