|
[Sponsors] |
[Commercial meshers] How to convert a .msh file to open Foam? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
October 25, 2011, 01:47 |
|
#21 |
Super Moderator
Maxime Perelli
Join Date: Mar 2009
Location: Switzerland
Posts: 3,297
Rep Power: 41 |
check if you have a surface called "wall". Gambit puts all surfaces without BC in a "wall" set, and those surfaces are defined as wall.
Then display the surface "wall" and check if they match the location where the flow seems to stop. If yes, then in Gambit your probably have non connected surface at this location.
__________________
In memory of my friend Hervé: CFD engineer & freerider |
|
October 25, 2011, 08:01 |
|
#22 |
Member
Evangelos
Join Date: Sep 2011
Posts: 87
Rep Power: 15 |
i connect the faces of the volumes which are in touch
after that i create the mesh and after i merge the volumes all is ok when i try to to pass the mesh to the foam i see Create time Dimension of grid: 3 Number of points: 58874 PointGroup: 1 start: 0 end: 58873. Reading points...done. Number of faces: 58922 FaceGroup: 2 start: 0 end: 44. Reading mixed faces...done. FaceGroup: 3 start: 45 end: 84. Reading mixed faces...done. FaceGroup: 4 start: 85 end: 58921. Reading mixed faces...done. Number of cells: 0 Zone: 2 name: Vin type: velocity-inlet. Reading zone data...done. Zone: 3 name: Outlet type: outflow. Reading zone data...done. Zone: 4 name: walls type: wall. Reading zone data...done. Zone: 6 name: default-interior type: interior. Reading zone data...done. FINISHED LEXING Creating patch 0 for zone: 2 name: Vin type: velocity-inlet Creating patch 1 for zone: 3 name: Outlet type: outflow Creating patch 2 for zone: 4 name: walls type: wall patch 0 from Fluent indices: 0 to: 44 type: velocity-inlet patch 1 from Fluent indices: 45 to: 84 type: outflow patch 2 from Fluent indices: 85 to: 58921 type: wall --> FOAM FATAL ERROR: Illegal cell label -1 in neighbour addressing for face 0 From function polyMesh::initMesh() in file meshes/polyMesh/polyMeshInitMesh.C at line 65. FOAM exiting what is going wrong; |
|
October 25, 2011, 08:06 |
|
#23 | |
Super Moderator
Maxime Perelli
Join Date: Mar 2009
Location: Switzerland
Posts: 3,297
Rep Power: 41 |
Quote:
Then you can use the filter of any volume operation, and select Unmeshed. And finally select all. If any volume goes right, then this volume is unmeshed.
__________________
In memory of my friend Hervé: CFD engineer & freerider |
||
October 25, 2011, 08:34 |
|
#24 |
Member
Evangelos
Join Date: Sep 2011
Posts: 87
Rep Power: 15 |
i umeshed my volume (now i have one volume)
i try to remesh but i have problems because the mesh in not 3d and not in the whole drew i try to use all the sources (so i take alla the faces as sources ) but my volume cannot meshed with all face used as sources faces! what do you recommend ? |
|
October 25, 2011, 08:36 |
|
#25 |
Super Moderator
Maxime Perelli
Join Date: Mar 2009
Location: Switzerland
Posts: 3,297
Rep Power: 41 |
post pictures
__________________
In memory of my friend Hervé: CFD engineer & freerider |
|
October 25, 2011, 12:14 |
|
#26 |
Member
Evangelos
Join Date: Sep 2011
Posts: 87
Rep Power: 15 |
i think i have serious problem!
Should i redrew it from the beggining with edges? |
|
October 26, 2011, 05:27 |
|
#27 |
Super Moderator
Maxime Perelli
Join Date: Mar 2009
Location: Switzerland
Posts: 3,297
Rep Power: 41 |
From your pictures it sounds you only have one volume.
Better do some splits to make hexa meshing easier: *do some splits like I did (you can see where are surfaces neede for splits >> pink edges). *Then no problem for meshing volumes Sans titre.pngSans titre2.pngSans titre1.jpg
__________________
In memory of my friend Hervé: CFD engineer & freerider |
|
October 31, 2011, 07:05 |
|
#28 |
Member
Evangelos
Join Date: Sep 2011
Posts: 87
Rep Power: 15 |
thanks a lot! -mAx-
without your help ι would be forced to fail! |
|
November 16, 2011, 11:57 |
|
#29 |
Member
Evangelos
Join Date: Sep 2011
Posts: 87
Rep Power: 15 |
hello again
i write in terminal transformPoints -scale "(0.01 0.01 0.01)" in order to scale my domain in cm now i want to scale my domain in m so i suppose that i must write in terminal transformPoints -scale (100 100 100) am i right? |
|
November 19, 2011, 04:08 |
|
#30 |
Super Moderator
Maxime Perelli
Join Date: Mar 2009
Location: Switzerland
Posts: 3,297
Rep Power: 41 |
yes but you forgot "..."
transformPoints -scale "(100 100 100)"
__________________
In memory of my friend Hervé: CFD engineer & freerider |
|
November 21, 2011, 07:52 |
|
#31 |
Member
Evangelos
Join Date: Sep 2011
Posts: 87
Rep Power: 15 |
hello again!
i have set U= 1m/s and i change Re (<2000) after every measurment (P,U) deltaT 0.05 i set endtime = 2 is it enough? for my case ? |
|
November 21, 2011, 13:55 |
|
#32 |
Super Moderator
Maxime Perelli
Join Date: Mar 2009
Location: Switzerland
Posts: 3,297
Rep Power: 41 |
check CFL conditions in theory
__________________
In memory of my friend Hervé: CFD engineer & freerider |
|
December 22, 2011, 10:02 |
|
#33 |
Member
Evangelos
Join Date: Sep 2011
Posts: 87
Rep Power: 15 |
hello!
If i want to calculate residence time what can i do? |
|
January 4, 2012, 02:32 |
|
#34 |
Super Moderator
Maxime Perelli
Join Date: Mar 2009
Location: Switzerland
Posts: 3,297
Rep Power: 41 |
no idea this time
__________________
In memory of my friend Hervé: CFD engineer & freerider |
|
March 25, 2012, 19:50 |
|
#35 |
Senior Member
Join Date: Jul 2009
Posts: 260
Rep Power: 18 |
||
March 27, 2012, 13:45 |
|
#36 |
Member
Evangelos
Join Date: Sep 2011
Posts: 87
Rep Power: 15 |
thanks a lot both of you!
|
|
August 29, 2012, 08:31 |
|
#37 |
Member
Evangelos
Join Date: Sep 2011
Posts: 87
Rep Power: 15 |
hello !
i want to create and mesh a geometry via ansys workbench. I will use openFoam to solve My question is the geometry pass from workbench to openFoam or i must use I Deas NX to create and mesh the geometry ? http://www.openfoam.com/features/mesh-conversion.php i am a little bit confused! |
|
August 29, 2012, 09:00 |
|
#38 |
Super Moderator
Maxime Perelli
Join Date: Mar 2009
Location: Switzerland
Posts: 3,297
Rep Power: 41 |
no only the mesh is passed to OF.
If you are able to export your mesh as .msh file for instance, then you may be able to convert the mesh file into OF using fluent3DMeshToFoam
__________________
In memory of my friend Hervé: CFD engineer & freerider |
|
October 22, 2012, 20:02 |
|
#39 |
Member
hadi abdollahzadeh
Join Date: Aug 2012
Location: Iran-yasouj
Posts: 59
Rep Power: 14 |
hi
I am beginner in the openfoam and decide to solve a problem with dsmc code. I create my body in catia and then import it to ansys and I use workbench to create my mesh file(.msh) and then I create a newfolder and create (0,constant and polyMesh,system) and copy the controlDict,decomposeParDict and the other folder from supersonic corner to my newfolder and then I put my (.msh)file into my polyMesh then run fluentmeshtofoam and I see this error: [hadi@hadi polyMesh]$ fluentMeshToFoam hemishpherical.msh /*---------------------------------------------------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: 2.1.1 | | \\ / A nd | Web: www.OpenFOAM.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ Build : 2.1.1-221db2718bbb Exec : fluentMeshToFoam hemishpherical.msh Date : Oct 21 2012 Time : 21:46:05 Host : "hadi.msi" PID : 3346 Case : /home/hadi/OpenFOAM/OpenFOAM-2.1.1/tutorials/discreteMethods/dsmcFoam/bluntbodyathypersonic/constant/polyMesh nProcs : 1 sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE). fileModificationChecking : Monitoring run-time modified files using timeStampMaster allowSystemOperations : Disallowing user-supplied system call operations // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // Create time --> FOAM FATAL IO ERROR: cannot find file file: /home/hadi/OpenFOAM/OpenFOAM-2.1.1/tutorials/discreteMethods/dsmcFoam/bluntbodyathypersonic/constant/polyMesh/system/controlDict at line 0. From function regIOobject::readStream() in file db/regIOobject/regIOobjectRead.C at line 73. FOAM exiting [hadi@hadi polyMesh]$ |
|
October 23, 2012, 02:21 |
|
#40 |
Super Moderator
Maxime Perelli
Join Date: Mar 2009
Location: Switzerland
Posts: 3,297
Rep Power: 41 |
you are calling fluentMeshToFoam from your_case_directory/constant/polyMesh instead of your_case_directory.
Move also your *.msh file into your_case_directory (not in /polyMesh)
__________________
In memory of my friend Hervé: CFD engineer & freerider |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[swak4Foam] funkyDoCalc with OF2.3 massflow | NiFl | OpenFOAM Community Contributions | 14 | November 25, 2020 04:30 |
[foam-extend.org] Problems installing foam-extend-4.0 on openSUSE 42.2 and Ubuntu 16.04 | ordinary | OpenFOAM Installation | 19 | September 3, 2019 19:13 |
[swak4Foam] groovyBC in openFOAM-2.0 for parabolic velocity bc | ofslcm | OpenFOAM Community Contributions | 25 | March 6, 2017 11:03 |
[swak4Foam] build problem swak4Foam OF 2.2.0 | mcathela | OpenFOAM Community Contributions | 14 | April 23, 2013 14:59 |
pisoFoam compiling error with OF 1.7.1 on MAC OSX | Greg Givogue | OpenFOAM Programming & Development | 3 | March 4, 2011 18:18 |