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
Electric field visualisation
Re: Electric field visualisation
Hi,
you have to build a vector out of your electric field components. Enter the following in the ElmerPost Command Line:
Then you have a vector efield which you can visualize with the vector view.
HTH,
Matthias
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))
HTH,
Matthias
-
- Site Admin
- Posts: 4812
- Joined: 22 Aug 2009, 11:57
- Antispam: Yes
- Location: Espoo, Finland
- Contact:
Re: Electric field visualisation
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
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
Re: Electric field visualisation
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
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
-
- Site Admin
- Posts: 4812
- Joined: 22 Aug 2009, 11:57
- Antispam: Yes
- Location: Espoo, Finland
- Contact:
Re: Electric field visualisation
Hi
There's also a rather fresh Linux Mint virtual machine for WMplayer in:
http://www.nic.funet.fi/pub/sci/physics ... LinuxMint/
-Peter
There's also a rather fresh Linux Mint virtual machine for WMplayer in:
http://www.nic.funet.fi/pub/sci/physics ... LinuxMint/
-Peter
Re: Electric field visualisation
Thanks, Peter - I'll take a look.
Ian
Ian