|
[Sponsors] |
[CAD formats] How to scale the stl when importing from salome or any cad tool to openfoam |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
February 1, 2018, 02:16 |
How to scale the stl when importing from salome or any cad tool to openfoam
|
#1 |
New Member
Vishal sharma
Join Date: Dec 2016
Posts: 2
Rep Power: 0 |
Hey, there i am very new to openfoam,
i just want to ask if i create a model using salome and export the stl file to be used for snappyhexmesh. How to scale the geometry or mesh in openfoam. Like i have created a sphere and channel in salome, my default unit display in salome is in meters, so if keep the diameter as 20 it will take it as 20m. but in openfoam i want the sphere of 20mm. how can i do that. please help me in this. |
|
February 1, 2018, 19:52 |
|
#2 |
Member
Join Date: Feb 2016
Posts: 41
Rep Power: 10 |
So Salome writes in mm by default. Therefore if you want to export a sphere just keep the default units of mm.....stl files store the dimension with the file so it should know what the proper dimension is in snappy hexmesh.(as far as I know)..
I usually just make my mesh in Salome. So i compute mesh Export the .unv Then run transformPoints -scale (0.001 0.001 0.001) |
|
February 1, 2018, 21:26 |
|
#3 |
Senior Member
Join Date: Aug 2013
Posts: 407
Rep Power: 16 |
Hi,
You can use transformPoints like LeeRuns has mentioned - but this is works on your mesh mainly. If you have only the surface files for example, you can use the surfaceTransformPoints utility - does the same thing as transformPoints except that this operates on surfaces. Hope this helps. Cheers, Antimony |
|
February 2, 2018, 05:20 |
|
#4 |
Member
Join Date: Dec 2017
Location: Germany
Posts: 48
Rep Power: 9 |
Another way would probably be scaling the geometry in sHMDict file.
This should work Code:
geometry { sphere.stl { type triSurfaceMesh; name sphere; scale 0.001; } |
|
Tags |
preprocessing, salome meca, snappyhexmesh 3d |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Frequently Asked Questions about Installing OpenFOAM | wyldckat | OpenFOAM Installation | 3 | November 14, 2023 12:58 |
[CAD formats] Importing CAD Meshes in OpenFOAM | vanmaercke | OpenFOAM Meshing & Mesh Conversion | 14 | December 14, 2017 17:30 |
How to contribute to the community of OpenFOAM users and to the OpenFOAM technology | wyldckat | OpenFOAM | 17 | November 10, 2017 16:54 |
OpenFOAM Training, London, Chicago, Munich, Houston 2016-2017 | cfd.direct | OpenFOAM Announcements from Other Sources | 0 | September 14, 2016 04:19 |
[Salome] Mesh conversion Salome to OpenFOAM | VMartinez | OpenFOAM Meshing & Mesh Conversion | 11 | April 21, 2014 03:54 |