You will find the .geo files in attached file. You should launch the file main.geo to generate the mesh.
Note that I generate the mesh with the following option: gmsh main.geo -3 -order 2 and that I use ElmerGrid with the -autoclean option.
Thank you very much Matthias for your help!
Loïc
Electrostatic: mesh with wires
Re: Electrostatic: mesh with wires
- Attachments
-
- test.zip
- (160 Bytes) Downloaded 238 times
Re: Electrostatic: mesh with wires
There is no file in test.zip...
Re: Electrostatic: mesh with wires
Sorry for that...
- Attachments
-
- test.tar
- (40 KiB) Downloaded 236 times
Re: Electrostatic: mesh with wires
Hi Loic,
I think I know what your problem is: your two bodies and also their meshes are separated and superposed, there is no connection between them. So the Electrostatic solver does not see the wire, and the StaticCurrent solver does not see cathode and anode. You have to modify your geometry so that there is an interface between the two bodies where the mesh is conformal, i.e. the nodes are the same. This should be possible in gmsh since version 3 using the boolean functions, but I have never done it. You will find help in their documentation and on the gmsh mailing list. Before the meshing, your bodies have to share a common interface (mesh_surface in your geometry).
If gmsh cannot do it, you can use Salomé. There you have to make a partition and then mesh.
I think having done that you will get the results you expect.
HTH,
Matthias
I think I know what your problem is: your two bodies and also their meshes are separated and superposed, there is no connection between them. So the Electrostatic solver does not see the wire, and the StaticCurrent solver does not see cathode and anode. You have to modify your geometry so that there is an interface between the two bodies where the mesh is conformal, i.e. the nodes are the same. This should be possible in gmsh since version 3 using the boolean functions, but I have never done it. You will find help in their documentation and on the gmsh mailing list. Before the meshing, your bodies have to share a common interface (mesh_surface in your geometry).
If gmsh cannot do it, you can use Salomé. There you have to make a partition and then mesh.
I think having done that you will get the results you expect.
HTH,
Matthias
Re: Electrostatic: mesh with wires
Hi Matthias,
Thank you very much! I am going to look at your solution.
Thanks for your help,
Loïc
Thank you very much! I am going to look at your solution.
Thanks for your help,
Loïc
Re: Electrostatic: mesh with wires
Hi,
I just ran into a similar problem. All volumes where solved independently without sharing boudary conditions. I fixed it by calling
from the openCASCADE kernel, where ex1 is the gas volume (without cut-outs) and ex{2..4}[1] are volumes that are placed inside the gas (i.e. cathode, anode, field strips)
Cheers
phb
I just ran into a similar problem. All volumes where solved independently without sharing boudary conditions. I fixed it by calling
Code: Select all
v[] = BooleanFragments{ Volume{ex1[1]}; }{ Volume{ex2[1],ex3[1],ex4[1]}; };
Cheers
phb