Reading UNV mesh (SALOME) with Saturne.

Questions and remarks about code_saturne usage
Forum rules
Please read the forum usage recommendations before posting.
Chebli Rezki

Reading UNV mesh (SALOME) with Saturne.

Post by Chebli Rezki »

Hello,

I created an Hydrofoil geometry and I meshed it in using SALOME 5.1.3. I exported the UNV file (knowing that saturne code can't read MED mesh file).

After checking the mesh, I launched the calculation and I had this error message:

        Error running the preprocessor.         Check preprocessor log (listpre) for details.          ********************************************                 Error in preprocessing stage.          ********************************************

listpre file is attached.

Thank you in advance.

Rezki
Attachments
listpre-06210954.txt
(2.85 KiB) Downloaded 297 times
Yvan Fournier

Re: Reading UNV mesh (SALOME) with Saturne.

Post by Yvan Fournier »

Hello,

You have the explanation  for your error at line 78 of your "listpre" file.

Regards,

  Yvan
David Monfort

Re: Reading UNV mesh (SALOME) with Saturne.

Post by David Monfort »

Indeed Code_Saturne only handles volumic elements. To use a 2d-mesh, you need to extrude the mesh (a 1-cell extrusion, with symmetry applied as boundary conditions) along the right direction (z in your case).
David
Chebli Rezki

Re: Reading UNV mesh (SALOME) with Saturne.

Post by Chebli Rezki »

Hi David,

Thank you for your help, I extrude the mesh in SALOME and it works. But When I introduced boundary conditions while keeping the  color references (selection criteria) which appears in SALOME (28 and 35 for inlet for example), the code don't know these colors. and I have an error message :
          Le groupe ou attribut "28" figurant dans le critère de sélection: "28 and 35"  ne correspond à aucune face de bord. Please, How to make to know the color references associated to each condition through Saturne ? listing file is attached. Regards. Rezki
Attachments
listing-06221028.txt
(29.23 KiB) Downloaded 298 times
Yvan Fournier

Re: Reading UNV mesh (SALOME) with Saturne.

Post by Yvan Fournier »

Hello,

The selection criteria apply for each face, so "28 and 35" would select only faces that belong to 2 (overlapping) groups with colors 28 and 35. To select either 28 or 35, use "28 or 35".

Regards,

  Yvan
Chebli Rezki

Re: Reading UNV mesh (SALOME) with Saturne.

Post by Chebli Rezki »

Hi Yvan,

I try to use "or" instead of "and" but I have same error for each boundary conditions which I introduced :

      Code_Saturne : /home/rezki/saturne/installer/ncs-2.0.0-rc1/src/base/cs_gui_boundary_conditions.c:1090 : Avertissement
      Le groupe ou attribut "28" figurant dans le critère de sélection: "28 or 35" ne correspond à aucune face de bord.
      Le groupe ou attribut "4" figurant dans le critère de sélection: "4"  ne correspond à aucune face de bord.
      Le groupe ou attribut "21" figurant dans le critère de sélection: "21 or 14" ne correspond à aucune face de bord.
      Le groupe ou attribut "46" figurant dans le critère de sélection: "46 or 49" ne correspond à aucune face de bord.
 
More informations about the mesh quality is attached here.

Regards.

Rezki
Attachments
mesh_informations.txt
(17.01 KiB) Downloaded 319 times
Yvan Fournier

Re: Reading UNV mesh (SALOME) with Saturne.

Post by Yvan Fournier »

Hello,

Looking at the beginning of you mesh information (the equivalent of "listpre"), it seems that you have groups Symmetry, Walls_3D, inlet_3D, or outlet_3D, and not 28, 35, ...

I am not sure what color references you used in SALOME: you may assign a color to a group, and that should appear under Code_Saturne (it was useful in the past, when colors were easier to handle then groups in Code_Saturne, but since version 1.3, the group name should be preferable). You may also set colors for visualization, but those are not passed to Code_Saturne.

In any case, prefer group names to colors in Code_Saturne when available (such as when meshing with SALOME).

Regards,

  Yvan
Chebli Rezki

Re: Reading UNV mesh (SALOME) with Saturne.

Post by Chebli Rezki »

Hello,

Ok, so you checked my mesh file and you find that I have just one color (color
7) for all groups, knowing that I created four groups in SALOME
(inlet_3D, outlet_3D, Walls_3D and Symmetry)

Please, which is an exactly criteria which I should to introduced in
"Selection criteria"  ? (reference face which appears in
SALOME mesh, color, Famille, groups......)

If the answer is "color", why I have just one (color 7) ?

Thank you in advance.

Rezki
David Monfort

Re: Reading UNV mesh (SALOME) with Saturne.

Post by David Monfort »

Rezki,

I don't why you have a single color, but this doesn't matter as you have group names.

As Yvan told you "In any case, prefer group names to colors in Code_Saturne when available (such as when meshing with SALOME)" and as it is written in the user documentation "code_saturne info -g user" (page 31, chapter Face and cell mesh-defined properties and selection), you can directly use the group names.

So, just use inlet_3D for the inlet, outlet_3D for the outlet, ...

David
Chebli Rezki

Re: Reading UNV mesh (SALOME) with Saturne.

Post by Chebli Rezki »

Hello,

The problem is resolved by using groups which I named inlet_3D,....

Yvan, David, I am grateful for your help, thank you very much.

Best regards.

Rezki
Post Reply