Hello everyone,
I've recently read through this post as I am attempting to use fluent3DMeshToFoam to import a .msh file into OpenFOAM but after setting the the varaible for ASCII, the command still does not produce the mesh in OpenFOAM. It just stops at Lexing...here is an image of the terminal [IMG]http://i666.photobucket.com/albums/v...pss5owq4nh.png[/IMG] Any help will be greatly appreciated, Thank you, Davitt |
As mentioned in previous posts, changing environment doesn’t work in ANSYS v14 and above if you want to export .msh file as ASCII format. After a whole day of digging, I finally found the way, hope this helps:
Step 1: Tools -> Options -> Meshing -> Export Step 2: Under ANSYS FLUENT, change Format of input files to “ASCII” Step 3: Export as .msh format Step 4: Run your fluent3DMeshToFoam to convert your mesh |
Set it in ANSYS Meshing
I know this is a very old post, just want to provide a little video I found. It's exactly what Lup Wai suggested, but you can see it in action.
https://www.youtube.com/watch?v=f9-GDWLKixg (Get .MSH Fluent Mesh File to Use in OpenFOAM w/o Having Fluent License) At around 5' mark. |
Workbench 2020 r2
To export the .msh file in ASCII format the shortest way (from ANSYS meshing) is:
File -> Option -> Meshing -> Export -> Format of input file (.msh) Choose ASCII and then you can easily extract the file in ASCII format exporting the mesh. |
Yes, this is the way to do it from fluent mesh program.
If you are working in ICEM CFD v 2020R2 you have to go to output mesh menu --> select solver --> fluent, set BC --> input file. In the input file menu just click the Write Binary File : NO. This writes the mesh file in ASCII. Just tried this after looking it up for a couple hours and it works. |
All times are GMT -4. The time now is 00:42. |