|
[Sponsors] |
February 2, 2010, 12:04 |
Gmsh units?
|
#1 |
New Member
Benedikt Goeppner
Join Date: Jan 2010
Posts: 15
Rep Power: 16 |
Hi guys,
can you tell me which units gmsh is using? I couldn't find any information about this... Would be nice if I could tell gmsh to set mm as default unit... Thanks, Ben |
|
February 17, 2010, 15:14 |
Dimensionless or Meters
|
#2 |
Senior Member
|
I believe its units are non-dimensional and depend on what your solver loads it as. For the sake of dimensional sanity, I believe most every solver uses meters. I always just use meters from the beginning, but there are some utilities to help scale your already present numbers.
For scaling inside of gmsh: (have not used) Dilate { { expression-list }, expression } { transform-list } In OpenFOAM you might look into transformPoints(have not used) http://www.cfd-online.com/Forums/openfoam-meshing-gmsh/61881-gmshtofoam-gmsh2tofoam-amp-gmsh-sudden-disappear.html#post204111 In OpenFOAM's blockmesh the convertToMeters function will preform scaling. Hope that helps! |
|
March 10, 2010, 18:02 |
|
#3 |
New Member
Benedikt Goeppner
Join Date: Jan 2010
Posts: 15
Rep Power: 16 |
Just in case someone runs into the same problem: The Gmsh-default unit seems to be meters. I found two ways solving my problem to change this default-unit for usage with OpenFoam:
First option uses the Gmsh default-settings. Create your geometry, mesh everything and save the mesh. Import that mesh into your foam-case by Code:
gmshToFoam <name.msh> Code:
transformPoints Code:
# cd $TO_YOUR_FOAM_CASE # gmshToFoam untitled.msh # transformPoints -scale '(0.001 0.001 0.001)' Code:
Mesh.ScalingFactor=0.001 Hope that helps. |
|
May 18, 2022, 09:09 |
[Gmsh] Gmsh units?Reply to Thread
|
#4 |
New Member
Jacques Berthellemy
Join Date: May 2022
Posts: 1
Rep Power: 0 |
Hi !
I always thought I was alone responsable for choosing a coherent set of units : USI for example |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Thermophysical Property Units | johanz | OpenFOAM Pre-Processing | 2 | December 16, 2018 11:08 |
[Gmsh] Converting gmsh to OpenFoam | Friendly | OpenFOAM Meshing & Mesh Conversion | 3 | June 26, 2018 06:46 |
[Gmsh] Insatlling gmsh from the source code-issue? | CFD-Lover | OpenFOAM Meshing & Mesh Conversion | 20 | June 12, 2018 07:39 |
[Gmsh] 2D Mesh Generation Tutorial for GMSH | aeroslacker | OpenFOAM Meshing & Mesh Conversion | 12 | January 19, 2012 04:52 |
[Gmsh] Import problem | ARC | OpenFOAM Meshing & Mesh Conversion | 0 | February 27, 2010 11:56 |