|
[Sponsors] |
June 12, 2020, 18:53 |
salome mesh to openfoam
|
#1 |
New Member
Andrzej Świtała
Join Date: May 2020
Posts: 5
Rep Power: 6 |
Hi all
I'm new to CFD. I'm trying to export 2D mesh to openfoam. As far I create mesh then make groups from geometry (also tryied in reverse order) than i extrude mesh. Folowing to some tutorials i've deleted groups containing volumes and edges. I've tryied to convert mesh to .unv format using ideasUnvToFoam and I get following error : Code:
/*---------------------------------------------------------------------------*\ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org \\ / A nd | Version: 7 \\/ M anipulation | \*---------------------------------------------------------------------------*/ Build : 7-1ff648926f77 Exec : ideasUnvToFoam Mesh_4.unv Date : Jun 12 2020 Time : 18:27:14 Host : "efd7015ba3d8" PID : 242 I/O : uncollated Case : /home/openfoam/run/test2 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 148596 points. Processing tag:2412 Starting reading cells at line 297215. First occurrence of element type 22 for cell 1 at line 297216 --> FOAM Warning : From function void readCells(Foam::IFstream&, Foam::DynamicList<Foam::cellShape>&, Foam::DynamicList<int>&, Foam::DynamicList<int>&, Foam::DynamicList<Foam::face>&, Foam::DynamicList<int>&, Foam::DynamicList<int>&) in file ideasUnvToFoam.C at line 463 Reading "Mesh_4.unv" at line 297216 Cell type 22 not supported --> FOAM FATAL IO ERROR: Attempt to get back from bad stream file: IStringStream.sourceFile at line 0. From function bool Foam::Istream::getBack(Foam::token&) in file db/IOstreams/IOstreams/Istream.C at line 56. FOAM exiting Code:
--> FOAM FATAL IO ERROR: wrong token type - expected int32_t, found on line 1 the word '$MeshFormat' How should i import mesh to openfoam? Thank you in advance. Andrzej |
|
June 15, 2020, 04:49 |
|
#2 |
Senior Member
Gerhard Holzinger
Join Date: Feb 2012
Location: Austria
Posts: 342
Rep Power: 28 |
I guess, that the face groups is causing you trouble.
In this bug report the error "Cell type 22 not supported" is discussed. As cell type 22 is apparently a 2D cell type, my guess is that the face groups of your mesh are the culprit. Try exporting and importing the mesh without any (face) groups. A mesh consisting of only 3D cells should work. You can further try to:
|
|
Tags |
import, salome mesh |
|
|
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] Converting Salome wedge mesh to OpenFOAM | anon_q | OpenFOAM Meshing & Mesh Conversion | 4 | March 13, 2019 16:13 |
[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 |
Converting Salome hybrid mesh to OpenFOAM | Arnoldinho | OpenFOAM | 4 | March 28, 2012 11:24 |