Salome to Elmer problem

Mesh generators, CAD programs, and other tools
Koske
Posts: 39
Joined: 15 Nov 2009, 17:02

Salome to Elmer problem

Post by Koske »

hi all,

before using Salome, i used GiD for building my meshes. but for the fact that GiD is not free i now wanne use Salome.
so i build the the same geometry in Salome as in GiD and than load it into Elmer.
i divided the boundarys and unified them to new ones, and assigned the surface as body.
the solver run till the end but i get a completely different result!!!
my adjustments in Elmer were the same as with the GiD file, so i thought the result would be nearly the same.
so i came to the conclusion that i forgot to adjust something in Salome.

i attach my Salome file and hope that someone can help me!!!

regards martin
Attachments
Study6.part2.rar
the file was too big, so made two parts!
(738.81 KiB) Downloaded 375 times
Study6.part1.rar
(976.56 KiB) Downloaded 359 times
Koske
Posts: 39
Joined: 15 Nov 2009, 17:02

Re: Salome to Elmer problem

Post by Koske »

hi all,

i think i found my problem!
my surface had the same number (boundary 1) like one of my lines (boundary 1).

i use the function: model -> set boundary properties in ElmerGui, to assign my three Boundary conditions to my three boundarys.
after that i click on my surface, and ElmerGui tells me that Boundary condition 1 is applied to the surface!?

so the reason for my bad computations is, that i have no body!

when i try to use: model -> set body properties, and click on the surface, ElmerGui tells me that: MainWindow: Body index out of bounds)

in the Elmer/GiD tutorial in 2D, there was this method:
7) Choose Data -> Materials and assign Index=1 to the surface of the rectangle.

now i have to figure out, how to do this in Salome.

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

Re: Salome to Elmer problem

Post by raback »

Did you use unv format to export the mesh from Salome? If you use ElmerGrid for the mesh conversion try to use '-autoclean' flag for renumbering the entities and removal of excess entities.

I didn't quite get it why you need to decleare some boundary as body? This is typically intended for cases when you have a differential equation that only lives on the surface. For example, 3D fluid flows coupled to 2D membrane, or 3D elasticity coupled to 2D sqeezed films. Then you might use this declaration for definint the 2D entity as a body.

-Peter
Koske
Posts: 39
Joined: 15 Nov 2009, 17:02

Re: Salome to Elmer problem

Post by Koske »

hi,

yes i used the unv format and converted it with: ElmerGrid 8 2 myfile.unv -autoclean.
i dont wanted to declare a boundary as a body. that was just the way i found the supposed problem!

i tested the problem with working GiD meshes and Elmer does the same! normal behavior of Elmer!!! sorry
so you can delete this post, there must be another problem!

martin
Koske
Posts: 39
Joined: 15 Nov 2009, 17:02

Re: Salome to Elmer problem

Post by Koske »

hi,

the complete different result from both meshes, came from different scales.
in GiD i build my mesh in range of x=0 to x=5 and in Salome i build it in range of x=0 to x=500!!!
the results of the Salome mesh look more realistic than the result of the GiD mesh.

so my question is: can i use 1 as a meter and also 100 as a meter, or is 1=1 meter and 100=100 meter?

regards
martin
sailor79
Posts: 5
Joined: 08 Jun 2010, 17:20
Location: Linz, Austria
Contact:

Re: Salome to Elmer problem

Post by sailor79 »

Hi forum,

I have the same problem, but I did not assign the boundary as a body.

My steps were:
- Export unv from Salome
- ElmerGrid 8 2 myfile.unv
- Load mesh in Elmer
- Divide Edges

and then I have one edge which has the same index as one certain surface. I tried different options in ElmerGrid but I do not get it work.

I hope, someone can help me.

Best regards,

Michael
Koske
Posts: 39
Joined: 15 Nov 2009, 17:02

Re: Salome to Elmer problem

Post by Koske »

hi,

is there an error message from Elmer?
have you used --> ElmerGrid 8 2 myfile.unv -autoclean

and maybe it helps when you create in geometry- and mesh-module groups. than you dont have to divide edges or surfaces.
it is described here:
http://www.elmerfem.org/wiki/index.php/ ... e_to_Elmer

martin
sailor79
Posts: 5
Joined: 08 Jun 2010, 17:20
Location: Linz, Austria
Contact:

Re: Salome to Elmer problem

Post by sailor79 »

Hi Martin,

I forgot to write, that I used the autoclean option. Sorry. There is no Errormessage from Elmer. I created the mesh as described on the linked wiki page.

To explain it in more detail: I want to simulate a rectangular part with a cooling channel in 2D. So I sketched a fourth of the geometry with salome. The mesh has two groups: The cooling channel and the surrounding body. The edges and the surfaces of the body and the cooling channel do require different boundary conditions. Maybe I have to create an own group per boundary? I sketched the geometry with lines only. So I am able to create an own group for each boundary. But salome is not able to create a mesh out of this geometry.

I hope my description is understandable. ;-)

Thank you for your support!

Michael
Koske
Posts: 39
Joined: 15 Nov 2009, 17:02

Re: Salome to Elmer problem

Post by Koske »

hi,

after sketching it with lines, have you defined faces?
when you send me your salome file i can have a closer look on your file!

martin
sailor79
Posts: 5
Joined: 08 Jun 2010, 17:20
Location: Linz, Austria
Contact:

Re: Salome to Elmer problem

Post by sailor79 »

Hi,

I did the following now:

- sketch the geometry with lines
- define faces (new entity-build-faces)
- create a partition which consists of three faces I built
- create groups of the three faces and the egdes (e.g. adiabatic edges)
- create a Mesh and compute it
- create groups within the mesh from the groups above
- export to unv
- ElmerGrid 8 2 myfile.unv -autoclean
- load mesh in Elmer

Then I have the mesh in Elmer with different faces, numbered from 1 to 3 and different edges numbered from 1 to 3, also. If I activate "Set boundary properties" and click on face #1 I can set the same boundary as if I click on edge #1.

What am I doing wrong?

Michael
Post Reply