|
[Sponsors] |
[Commercial meshers] How to convert a .msh file to open Foam? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
May 3, 2013, 09:44 |
|
#61 |
Super Moderator
Maxime Perelli
Join Date: Mar 2009
Location: Switzerland
Posts: 3,297
Rep Power: 41 |
try fluent3DMeshToFoam flat.msh
__________________
In memory of my friend Hervé: CFD engineer & freerider |
|
May 3, 2013, 12:57 |
|
#62 |
Member
Evangelos
Join Date: Sep 2011
Posts: 87
Rep Power: 15 |
what kind of erros?
if the geometry is 3D try fluent3DMeshToFoam flat.msh |
|
May 3, 2013, 16:21 |
|
#63 |
Member
sandy
Join Date: May 2013
Posts: 91
Rep Power: 13 |
Its 2D mesh guys .
the flat plate is at the base of the domain . I created using meshing tool in Ansys workbench . And i saved it as fluent readable one using export option . (flat.msh) As i later on found that the .msh file should be in ASCII format but the meshing tool in ansys workbench saves .msh file in binary form. So i found in one of the threads using dos2unix command to convert to ASCII in my linux system terminal .. $ dos2unix flat.msh It shows the following errors . "binary at line 15 dos2unix is quitting " What should i do now ? thanks sud |
|
May 3, 2013, 17:41 |
|
#64 |
Member
Evangelos
Join Date: Sep 2011
Posts: 87
Rep Power: 15 |
||
May 4, 2013, 01:37 |
|
#65 |
Member
sandy
Join Date: May 2013
Posts: 91
Rep Power: 13 |
Hi Danath & Maxime Perelli ,
I finally got it converted to open foam readable format . Now here comes the problem . I tried running blockMesh after that . IT shows some errors . I checked the Run/try/constant/polymesh folder for blockmeshdict file . it has all files like 1.boundary 2.owner 3.faces 4.cellzones 5.facezones 6.pointzones 7.points but it did not have blockmeshDict . What should i do now ? thanks sud |
|
May 4, 2013, 01:59 |
BlockMeshDict
|
#66 | |
Member
sandy
Join Date: May 2013
Posts: 91
Rep Power: 13 |
Hi nimasam ,
ok . Now i should not type blockMesh in the terminal right ? .. I typ ed checkMesh . It shows the following errors . sudharsan@ubuntu:~/OpenFOAM/OpenFOAM-2.2.0/tutorials/incompressible/icoFoam/Cylinder ansysimport$ checkMesh /*---------------------------------------------------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: 2.2.0 | | \\ / A nd | Web: www.OpenFOAM.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ Build : 2.2.0 Exec : checkMesh Date : May 03 2013 Time : 23:58:44 Host : "ubuntu" PID : 4001 fileName::stripInvalid() called for invalid fileName /home/sudharsan/OpenFOAM/OpenFOAM-2.2.0/tutorials/incompressible/icoFoam/Cylinderansysimport For debug level (= 2) > 1 this is considered fatal Aborted (core dumped) Quote:
|
||
May 4, 2013, 13:18 |
|
#67 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Greetings to all!
@archeoptyrx: Rename the folder "Cylinder ansysimport" to "Cylinder_ansysimport", because OpenFOAM doesn't like spaces in folder/file names. Best regards, Bruno
__________________
|
|
May 6, 2013, 03:17 |
|
#68 |
Member
sandy
Join Date: May 2013
Posts: 91
Rep Power: 13 |
Bruno Santos , Yea that worked.... Thanks
|
|
May 8, 2013, 07:59 |
|
#69 | |
New Member
Matteo Colli
Join Date: Mar 2013
Posts: 4
Rep Power: 13 |
Quote:
Matteo |
||
August 24, 2013, 05:22 |
|
#70 | |
New Member
胡长旭
Join Date: Aug 2013
Posts: 26
Rep Power: 13 |
Quote:
I have the same question. When I run fluentMeshToFoam /...../..msh. it will appear Form FATAL IO ERROR cannot find file file:/home/hu/system/controldict at line 0 from.....and so on what is the matter? I think you can help me. Have a nice day |
||
August 24, 2013, 05:43 |
|
#71 |
New Member
payal
Join Date: Aug 2013
Location: banglore
Posts: 14
Rep Power: 13 |
helo ,
can you tell me hw you are converting means which command are you using and where you had kept your mesh files .??? |
|
August 24, 2013, 20:55 |
|
#72 | ||
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Greetings to all!
@hcx552362: Quote:
Quote:
Best regards, Bruno
__________________
|
|||
August 24, 2013, 20:58 |
|
#73 | |
New Member
胡长旭
Join Date: Aug 2013
Posts: 26
Rep Power: 13 |
Quote:
firstly, I copy a msh file and put it in the .../tutorials/incompressible/icoFoam/cavity. secondly, run the code: fluentMeshToFoam/OpenFOAM/hu2.1.x/run/tutorials/incompressible/icoFoam/cavity/hu.msh above error will appear. |
||
August 24, 2013, 21:59 |
|
#74 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Quote:
Code:
cd $FOAM_RUN/tutorials/incompressible/icoFoam/cavity fluentMeshToFoam hu.msh
__________________
|
||
August 25, 2013, 02:47 |
|
#75 | |
New Member
胡长旭
Join Date: Aug 2013
Posts: 26
Rep Power: 13 |
Quote:
I think my .msh from my gambit has some questions. When I use other .msh from other gambit. fluentMeshToFoam works. but I do not know the reason with my gambit? Have a nice day |
||
August 25, 2013, 06:49 |
|
#76 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Have you tried fluent3DMeshToFoam? Here's a thread on this topic: http://www.cfd-online.com/Forums/ope...eshtofoam.html
__________________
|
|
August 25, 2013, 22:44 |
|
#77 | |
New Member
胡长旭
Join Date: Aug 2013
Posts: 26
Rep Power: 13 |
Quote:
Hi yes, I also use fluent3DToFoam, and the same errpr appears. by the way, my mesh is 2D. I think my mesh has some questions. Can you tell me, what should i do when writing my mesh with gambit tool. Thank you very much. Have a nice day. |
||
August 26, 2013, 01:50 |
|
#78 |
Super Moderator
Maxime Perelli
Join Date: Mar 2009
Location: Switzerland
Posts: 3,297
Rep Power: 41 |
you cannot work with 2d in OF.
In Gambit extrude your 2d geometry, and export the 3d mesh in OF with fluent3DMeshToFoam For the BC, check for instance airFoil2D (incompressible/simpleFoam)
__________________
In memory of my friend Hervé: CFD engineer & freerider |
|
August 26, 2013, 04:47 |
|
#79 | |
New Member
胡长旭
Join Date: Aug 2013
Posts: 26
Rep Power: 13 |
Quote:
firstly, I creat a 2D mesh in the gambit.(choose the solver:Fluent 5/6) secondly, use the fluent3DMeshToFoam to transfer my mesh. Is it right? or firstly, I must creat 3D mesh in the gambit.(choose the solver :Fluent 5/6) secondly, use the fluent3DMeshToFoam to transfer my mesh. Which step is right? Thank you! Have a nice day! |
||
August 26, 2013, 04:52 |
|
#80 |
Member
sonu
Join Date: Jul 2013
Location: delhi
Posts: 92
Rep Power: 13 |
helo ,
your case is 2D or 3D ?? if it is 2D then why you are giving command fluent3DMeshToFoam when you have created 2D mesh in gambit ...? try with fluentMeshToFoam hope it will work |
|
|
|
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 |