|
[Sponsors] |
[Salome] Converting Salome wedge mesh to OpenFOAM |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
March 8, 2019, 23:50 |
Converting Salome wedge mesh to OpenFOAM
|
#1 |
Senior Member
Join Date: Mar 2018
Posts: 115
Rep Power: 8 |
Hello,
I created a wedge mesh using Salome, But unfortunately after trying to convert it: Code:
ideasUnvToFoam wedge_mesh.unv But unfortunately the script fails to convert it with the following error: Code:
/*---------------------------------------------------------------------------*\ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org \\ / A nd | Version: 6 \\/ M anipulation | \*---------------------------------------------------------------------------*/ Build : 6-e29811f5dff8 Exec : ideasUnvToFoam wedge_mesh.unv Date : Mar 09 2019 Time : 04:38:09 Host : "myPC" PID : 20428 I/O : uncollated Case : /home/evlin/openfoam_sims/rotate-mesh nProcs : 1 sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE). fileModificationChecking : Monitoring run-time modified files using timeStampMaster (fileModificationSkew 10) allowSystemOperations : Allowing user-supplied system call operations // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // Create time Processing tag:164 Starting reading units at line 3. l:1 units:" SI: Meter (newton)" unitType:2 Unit factors: Length scale : 1 Force scale : 1 Temperature scale : 1 Temperature offset : 273.15 Processing tag:2420 Skipping tag 2420 on line 9 Skipping section at line 9. Processing tag:2411 Starting reading points at line 20. Read 2013 points. Processing tag:2412 Starting reading cells at line 4049. First occurrence of element type 11 for cell 1 at line 4050 First occurrence of element type 44 for cell 211 at line 8220 First occurrence of element type 41 for cell 1177 at line 10140 First occurrence of element type 115 for cell 1357 at line 12428 First occurrence of element type 112 for cell 1567 at line 12848 Read 960 cells and 2104 boundary faces. Processing tag:2467 Starting reading patches at line 14350. For group 1 named inlet trying to read 30 patch face indices. For group 2 named outlet trying to read 30 patch face indices. For group 3 named top trying to read 32 patch face indices. For group 4 named bottom trying to read 32 patch face indices. For group 5 named inlet trying to read 30 patch face indices. For group 6 named inlet_top trying to read 30 patch face indices. For group 7 named outlet trying to read 30 patch face indices. For group 8 named outlet_top trying to read 30 patch face indices. For group 9 named top trying to read 32 patch face indices. For group 10 named top_top trying to read 32 patch face indices. For group 11 named wedge_2 trying to read 960 patch face indices. For group 12 named wedge_1 trying to read 960 patch face indices. Found 960 reversed boundary faces out of 2104 Of 2104 so-called boundary faces 92 belong to two cells and are therefore internal Sorting boundary faces according to group (patch) 0: inlet is faceZone --> FOAM FATAL ERROR: 1 not found in table. Valid entries: 2104 ( 4096 4097 4098 4099 4100 4101 4102 4103 4104 4105 4106 4107 4108 4109 .... // I skipped a long list of number ) From function T& Foam::HashTable<T, Key, Hash>::operator[](const Key&) [with T = int; Key = int; Hash = Foam::Hash<int>] in file /home/ubuntu/OpenFOAM/OpenFOAM-6/src/OpenFOAM/lnInclude/HashTableI.H at line 117. FOAM exiting
|
|
March 11, 2019, 13:14 |
|
#2 |
Senior Member
Peter Hess
Join Date: Apr 2011
Location: Austria
Posts: 250
Rep Power: 17 |
Hello Linda!
Try the following: - Download the script: salomeToOpenFOAM.py from here: https://github.com/nicolasedh/salomeToOpenFOAM and save it to your working folder - Generate the mesh you want to convert and save the *.hdf file (SALOME) - In SALOME mark the mesh you want to export - File -> load script -> salomeToOpenFOAM.py - Wait until the mesh exported. Finished exporting is printed in SALOME console - A new folder will be generated in your case called mesh(_1) and includes the mesh - Copy the mesh folder (polyMesh) to constant Regards Peter Last edited by peterhess; March 11, 2019 at 14:55. |
|
March 12, 2019, 21:16 |
|
#3 |
Senior Member
Join Date: Mar 2018
Posts: 115
Rep Power: 8 |
Thank you dear Peter, I tried to download the script above but unfortunately it fails to convert the mesh.
Currently I cannot post the error message (Something is going wrong with this forum) |
|
March 13, 2019, 02:27 |
|
#4 |
Senior Member
Niels Nielsen
Join Date: Mar 2009
Location: NJ - Denmark
Posts: 556
Rep Power: 27 |
Please share you HDF file so we can see what you have been doing.
__________________
Linnemann PS. I do not do personal support, so please post in the forums. |
|
March 13, 2019, 16:13 |
|
#5 |
Senior Member
Join Date: Mar 2018
Posts: 115
Rep Power: 8 |
Recently I encounter a very strange error in this forum when trying to post or send a message that contains some code!!!!!!
It doesn't let me post the error message here! |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Converting Salome hybrid mesh to OpenFOAM | Arnoldinho | OpenFOAM | 4 | March 28, 2012 11:24 |
Mesh conversion problem from Salome to openfoam | jishnusoni | OpenFOAM | 15 | March 3, 2010 02:53 |
[Gmsh] Error converting Gmsh mesh to OpenFOAM format | Martin_ | OpenFOAM Meshing & Mesh Conversion | 3 | December 9, 2009 10:35 |
salome, openfoam and moving mesh | prhlava | OpenFOAM Running, Solving & CFD | 8 | November 9, 2009 09:59 |
fluent add additional zones for the mesh file | SSL | FLUENT | 2 | January 26, 2008 12:55 |