CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Meshing & Mesh Conversion

[Salome] salome mesh to openfoam

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 12, 2020, 17:53
Thumbs down salome mesh to openfoam
  #1
New Member
 
Andrzej Świtała
Join Date: May 2020
Posts: 4
Rep Power: 2
pl96andy is on a distinguished road
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
So i've tryied to import from Gmsh (by firstly reading mesh from .med and .unv format). I got following error:
Code:
 --> FOAM FATAL IO ERROR:
wrong token type - expected int32_t, found on line 1 the word '$MeshFormat'
I'm using newest stable version of openfoam, salome and gmsh.
How should i import mesh to openfoam?
Thank you in advance.
Andrzej
pl96andy is offline   Reply With Quote

Old   June 15, 2020, 03:49
Default
  #2
Senior Member
 
Gerhard Holzinger
Join Date: Feb 2012
Location: Austria
Posts: 277
Rep Power: 23
GerhardHolzinger will become famous soon enoughGerhardHolzinger will become famous soon enough
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:
  • Export your face groups as STLs meshes
  • Construct faceSets using teh STLs as input using topoSet
  • Create patches from the faceSets using createPatch
GerhardHolzinger is offline   Reply With Quote

Reply

Tags
import, salome mesh

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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 9 April 30, 2019 03:24
[Salome] Converting Salome wedge mesh to OpenFOAM Evren Linda OpenFOAM Meshing & Mesh Conversion 4 March 13, 2019 15:13
[Salome] Step to export mesh from SALOME to OpenFoam for 3D MRF geometry aminem OpenFOAM Meshing & Mesh Conversion 0 September 16, 2014 10:18
[Salome] Mesh Salome 7.3.0 to OpenFoam Ahadi OpenFOAM Meshing & Mesh Conversion 5 July 1, 2014 10:11
Converting Salome hybrid mesh to OpenFOAM Arnoldinho OpenFOAM 4 March 28, 2012 10:24


All times are GMT -4. The time now is 01:18.