CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

scaling a mesh generated by gmsh

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 26, 2019, 04:43
Default scaling a mesh generated by gmsh
  #1
Senior Member
 
Mehdi Baba Mehdi
Join Date: Jan 2011
Posts: 158
Rep Power: 15
mb.pejvak is on a distinguished road
I want to scale a grid generated by gmsh to use in OpenFoam, but using

Code:
gmshToFoam -help
does not show there is option for scaling while converting. I can modify the .geo file, but when I do it I got some error while converting, otherwise it converted without any error. Is there any way to do what I explained?
mb.pejvak is offline   Reply With Quote

Old   September 26, 2019, 10:37
Default
  #2
Senior Member
 
Mehdi Baba Mehdi
Join Date: Jan 2011
Posts: 158
Rep Power: 15
mb.pejvak is on a distinguished road
The problem arises from convering geo file to msh file with version 4. it should be done instead with version 2.
mb.pejvak is offline   Reply With Quote

Old   September 27, 2019, 12:38
Default
  #3
Senior Member
 
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,668
Rep Power: 65
LuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura about
By the way there is an OpenFOAM utility for scaling a mesh, e.g.
Code:
transformPoints -scale "(1 1 1)"

You can use this after you convert the mesh to foam.
LuckyTran is offline   Reply With Quote

Reply

Tags
gmsh 4.0.4, gmshtofoam, openfaom-5


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
decomposePar problem: Cell 0contains face labels out of range vaina74 OpenFOAM Pre-Processing 37 July 20, 2020 05:38
SU2_CFD 3d euler not converge mine gmsh mesh lpustin SU2 2 December 3, 2017 13:43
Gambit problems Althea FLUENT 22 January 4, 2017 03:19
[ANSYS Meshing] Scale geometry but mesh size to remain same sangrampp ANSYS Meshing & Geometry 1 February 12, 2016 05:19
Icemcfd 11: Loss of mesh from surface mesh option? Joe CFX 2 March 26, 2007 18:10


All times are GMT -4. The time now is 20:38.