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

[Salome] mesh conversion Salome --> OpenFoam

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 2, 2018, 00:43
Default
  #41
Member
 
Join Date: Jan 2018
Location: Malaysia
Posts: 58
Rep Power: 8
jiahui_93 is on a distinguished road
Quote:
Originally Posted by vaina74 View Post
I generated a grid around a blade section with Salome and I want to import it in OpenFOAM. I set the domain boundaries, as in this procedure definition (from the Salome forum):

STEP1 Create groups of faces for all patches (undefined sufaces will became in OpenFOAM as defaultFaces patch). For example, for internal simulation, we need 3 groups: inlet, outlet and walls.

STEP2 Mesh geometry.

STEP3 Create group of faces for mesh. This is done by using Create group command in SMESH module and selecting checkbox faces. In the appeared dialog box we must enter name for group (or patch in OpenFOAM), e.g., inlet, outlet, walls. Then, we must select Group using geometry option and click on interesting group in tree view of meshed solid.

STEP4 Export your mesh to I-DEAS format file (filename.unv). This file should be saved to the root of OpenFOAM case (where directories 0, constant, system).

STEP5 Run utility ideasUnvToFoam. For example, if we are using terminal in case root, we should type:
Code:
ideasUnvToFoam filename.unv
STEP6 Check mesh. run:
Code:
checkMesh
STEP7 If checkMesh reports no error, change dimensions. To convert from mm to m, we must type
Code:
transformPoints -scale '(0.001 0.001 0.001)'
STEP8 Change physical boundaris: enter file constant/polyMesh/boundaries and edit entries according to your case

I have a problem. At STEP5 I obtain:

Code:
/*---------------------------------------------------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  1.6                                   |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
Build  : 1.6-53b7f692aa41
Exec   : ideasUnvToFoam mesh.unv
Date   : Mar 21 2010
Time   : 14:40:56
Host   : giulia-laptop
PID    : 7755
Case   : /home/giulia/OpenFOAM/OpenFOAM-1.6/run/hydrofoil
nProcs : 1
SigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time



cannot open file

file: /home/giulia/OpenFOAM/OpenFOAM-1.6/run/hydrofoil/system/controlDict at line 0.

    From function regIOobject::readStream()
    in file db/regIOobject/regIOobjectRead.C at line 62.

FOAM exiting
Can you help me, please?
I faced this too and tried many ways. Finally, I solved it by removing all unnecessary files in my case directory =D a surprising problem though haha
jiahui_93 is offline   Reply With Quote

Old   February 10, 2018, 06:32
Default problem in runnung unv mesh in openfoam
  #42
Member
 
Join Date: Oct 2017
Posts: 52
Rep Power: 9
gouravjee is on a distinguished road
Hello Foamers,
I am making a cubical Bounding Box in unv mesh format for my case file.when i run it in openfoam it works fine. but when i check it using paraview, it shows me this error::
"Mesh Contains no cells"
can anybody help me to sort out this problem???
gouravjee is offline   Reply With Quote

Old   March 4, 2022, 21:41
Default
  #43
New Member
 
Outside North America
Join Date: Nov 2021
Posts: 14
Rep Power: 5
Tian Hongkang is on a distinguished road
Hi, I have a problem with grid conversion. When I tried to convert the Unv grid file exported from Salome to a format supported by OpenFoam, it got the following error. Do you know why?
Thank you!

thk@LAPTOP-04QGRRSQ:~/run/cavity$ ls
0 constant logs pipe.unv system
thk@LAPTOP-04QGRRSQ:~/run/cavity$ ideasUnvToFoam pipe.unv
/*---------------------------------------------------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: 7
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
Build : 7-3bcbaf946ae9
Exec : ideasUnvToFoam pipe.unv
Date : Mar 05 2022
Time : 09:31:20
Host : "LAPTOP-04QGRRSQ"
PID : 677
I/O : uncollated
Case : /home/thk/run/cavity
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



--> FOAM FATAL ERROR:
Cannot open file "pipe.unv"

From function int main(int, char**)
in file ideasUnvToFoam.C at line 679.

FOAM exiting
Tian Hongkang is offline   Reply With Quote

Reply


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] Problems for creating mesh in salome to OPENFOAM bye bye my blue OpenFOAM Meshing & Mesh Conversion 8 December 5, 2023 01:57
decomposePar problem: Cell 0contains face labels out of range vaina74 OpenFOAM Pre-Processing 37 July 20, 2020 06:38
[Commercial meshers] Mesh conversion .gtm to OpenFOAM ansab OpenFOAM Meshing & Mesh Conversion 2 December 6, 2016 14:48
[Commercial meshers] Problems with ANSYS mesh conversion tdog OpenFOAM Meshing & Mesh Conversion 1 March 31, 2016 18:36
fluent add additional zones for the mesh file SSL FLUENT 2 January 26, 2008 12:55


All times are GMT -4. The time now is 20:33.