|
[Sponsors] |
[Salome] Script for converting a mesh from Salome-Platform to OpenFOAM |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
August 25, 2020, 11:56 |
|
#81 |
New Member
Frédéric MR
Join Date: Jun 2019
Posts: 18
Rep Power: 7 |
Thank you Gerhard,
I'm going to continue some test to solve it. If someone has a solution, or a similar problem, please detail your case. |
|
December 25, 2020, 16:16 |
|
#82 |
Senior Member
Franco
Join Date: Nov 2019
Location: Compiègne, France
Posts: 129
Rep Power: 6 |
hello I tried to use the script to export a polyhedral mesh from salome but i am getting some errors and when i open .foam file in paraview i dont see the mesh
Code:
Number of nodes: 177085 Number of cells: 30000 Counting number of faces: total number of faces: 203647, internal: 203647, external 0 Converting mesh to OpenFOAM Finished processing boundary faces Traceback (most recent call last): File "<string>", line 304, in exportToFoam KeyError: (172547, 172548, 172581, 172665, 174509, 174510, 174511) During handling of the above exception, another exception occurred: Traceback (most recent call last): File "<string>", line 316, in exportToFoam KeyError: (172547, 172548, 172581, 172665, 174509, 174510, 174511) During handling of the above exception, another exception occurred: Traceback (most recent call last): File "<string>", line 667, in run File "<string>", line 341, in exportToFoam IndexError: list assignment index out of range Number of nodes: 177085 Number of cells: 30000 Counting number of faces: total number of faces: 203647, internal: 203647, external 0 Converting mesh to OpenFOAM Finished processing boundary faces Traceback (most recent call last): File "<string>", line 304, in exportToFoam KeyError: (172547, 172548, 172581, 172665, 174509, 174510, 174511) During handling of the above exception, another exception occurred: Traceback (most recent call last): File "<string>", line 316, in exportToFoam KeyError: (172547, 172548, 172581, 172665, 174509, 174510, 174511) During handling of the above exception, another exception occurred: Traceback (most recent call last): File "<string>", line 667, in run File "<string>", line 341, in exportToFoam IndexError: list assignment index out of range if anyone found themself with the same problem and solved it would be appreciated |
|
October 13, 2022, 08:49 |
|
#83 |
New Member
Join Date: Sep 2022
Posts: 8
Rep Power: 4 |
I tried script salomeToOpenfoam.py to import my mesh into openfoam which has pyramids.I get the following message in the console.Can you please help me
SalomeOutsideGUI: no selection mechanism available outside GUI You have to select a mesh object and then run this script. or run the export function directly from TUI import SalomeToOpenFOAM SalomeToOpenFOAM.exportToFoam(mesh, path) |
|
October 13, 2022, 08:54 |
|
#84 | |
Senior Member
Franco
Join Date: Nov 2019
Location: Compiègne, France
Posts: 129
Rep Power: 6 |
Quote:
|
||
October 13, 2022, 10:56 |
|
#85 |
New Member
Join Date: Sep 2022
Posts: 8
Rep Power: 4 |
believe me i did it 1000000 times.It still shows the same issue,First it showed some errors to update the script now after i debugged the script, it shows this message
|
|
October 13, 2022, 11:00 |
|
#86 |
New Member
Join Date: Sep 2022
Posts: 8
Rep Power: 4 |
I did it but it is still the same issue
|
|
February 8, 2023, 11:30 |
|
#87 |
New Member
Giovanni Fazzone
Join Date: Feb 2021
Posts: 9
Rep Power: 5 |
||
Tags |
mesh conversion, openfoam, salome meca |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Salome] how to setFields in openFOAM when you have imported mesh from salome or other package | 13msmemusman | OpenFOAM Meshing & Mesh Conversion | 11 | May 18, 2022 08:30 |
[Salome] import mesh from salome to openfoam | dome90 | OpenFOAM Meshing & Mesh Conversion | 2 | April 21, 2016 00:58 |
[Salome] Step to export mesh from SALOME to OpenFoam for 3D MRF geometry | aminem | OpenFOAM Meshing & Mesh Conversion | 0 | September 16, 2014 11:18 |
[Salome] Mesh Salome 7.3.0 to OpenFoam | Ahadi | OpenFOAM Meshing & Mesh Conversion | 5 | July 1, 2014 11:11 |
Mesh conversion problem from Salome to openfoam | jishnusoni | OpenFOAM | 15 | March 3, 2010 02:53 |