CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Meshing & Mesh Conversion (https://www.cfd-online.com/Forums/openfoam-meshing/)
-   -   [Salome] mesh conversion Salome --> OpenFoam (https://www.cfd-online.com/Forums/openfoam-meshing/73971-mesh-conversion-salome-openfoam.html)

jiahui_93 January 1, 2018 23:43

Quote:

Originally Posted by vaina74 (Post 251003)
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

gouravjee February 10, 2018 05:32

problem in runnung unv mesh in openfoam
 
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???

Tian Hongkang March 4, 2022 20:41

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


All times are GMT -4. The time now is 11:43.