|
[Sponsors] |
February 9, 2011, 16:00 |
gmshToFoam unit conversion
|
#1 |
Member
William
Join Date: Feb 2011
Location: Minnesota USA
Posts: 33
Rep Power: 15 |
Anybody know how to convert a gmsh model in inches to meters for OpenFoam
|
|
February 9, 2011, 18:46 |
|
#2 |
New Member
kalyan
Join Date: Oct 2010
Posts: 19
Rep Power: 16 |
Use the following command in the .geo file and give a try
Mesh.ScalingFactor=0.0254; |
|
February 10, 2011, 01:39 |
|
#3 |
Member
William
Join Date: Feb 2011
Location: Minnesota USA
Posts: 33
Rep Power: 15 |
No luck with that. I got an error when I opened the .geo in gmsh. I also tried putting it in the .msh file but gmshToFoam didn't like that either. Does it have to be in a specific location?
|
|
February 10, 2011, 04:33 |
|
#4 |
Senior Member
Martin
Join Date: Oct 2009
Location: Aachen, Germany
Posts: 255
Rep Power: 22 |
Hi William,
you might try the transformPoints utility: Convert your mesh to OpenFOAM. Than call Code:
transformPoints -scale "(0.0254 0.0254 0.0254)" |
|
February 10, 2011, 13:18 |
|
#5 | |
New Member
kalyan
Join Date: Oct 2010
Posts: 19
Rep Power: 16 |
Quote:
You will find the converted mesh. But the .geo file doesn't change its coordinates. You can also try what Mr.Martin said. Even that works well |
||
February 10, 2011, 15:05 |
|
#6 |
Member
William
Join Date: Feb 2011
Location: Minnesota USA
Posts: 33
Rep Power: 15 |
Thanks Guys both methods worked.
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
unit conversion of pre-exponential factor A of chemkin mechanism in Fluent | newbie | FLUENT | 5 | November 14, 2010 06:44 |
[snappyHexMesh] Unit conversion in Snappy | prapanj | OpenFOAM Meshing & Mesh Conversion | 3 | March 12, 2009 23:09 |
unit conversion | Topu | Phoenics | 2 | July 19, 2007 11:11 |
Unit conversion from 3-d to 2-d | Raj | Main CFD Forum | 6 | January 24, 2005 05:56 |
Unit Conversion Problem | lambuhere | CFX | 0 | August 20, 2004 05:49 |