|
[Sponsors] |
[snappyHexMesh] Workflow including Solidworks and SnappyHesMesh |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
March 14, 2017, 06:30 |
Workflow including Solidworks and SnappyHesMesh
|
#1 |
New Member
Graham Cottrell
Join Date: Mar 2017
Posts: 3
Rep Power: 9 |
From my reading I have decided that I want a hexahedral mesh, so SnappyHexMesh would seem to be desirable, except that SnappyHexMesh seems to require that one first run BlockMesh, which requires a BlockMeshDict file containing a description of the geometry to be meshed.
My problem is this: how do I get from Solidworks model to BlockMeshDict? To complicate matters somewhat, I am not the one running Solidworks; that's someone else in the same city. Thanks in advance, Graham. Last edited by Tesseractic; March 15, 2017 at 01:59. Reason: typo |
|
March 15, 2017, 18:32 |
|
#2 |
Senior Member
Joachim Herb
Join Date: Sep 2010
Posts: 650
Rep Power: 22 |
Your blockmesh can be a cube with just one cell (or 8) which is larger than you final flow domain. SnappyHexMesh will use this as starting mesh but will do all the refinements necessary and cut out all space outside the boundaries.
(see all the tutorials, e.g. motorbike, which use snappyHexMesh) |
|
March 16, 2017, 04:56 |
|
#3 | |
Member
Ricky
Join Date: Jul 2014
Location: Germany
Posts: 78
Rep Power: 12 |
Quote:
These are the steps I usually follow to bring a geometry in the OpenFOAM environment for meshing: Step 1: Save your Geometry in IGS/STP format. Step 2: Import the geometry in a thrid party software where you can organize your components for say, Inlet, outlet, walls etc... and save it in STL format Step 3: Place the STL file in your constant/triMesh Step 4: In order to use snappyHexMesh you need a base mesh, which is usually a block incorporating your whole geometry. Step 5: Choose a random point (x,y,z) within your geometry as this is one of the parameter required by the snappyHexMeshDict, to say which mesh to keep. From here you can follow an excellent youTube tutorial whereall the steps are explained in detail, here is the link. some more tutorials for snappyHexMesh can be easily found in the tutorials folder as Joachim mentioned. in the command prompt after sourcing the OpenFoam version hit the following commands. Code:
tut grep -r "snappyHexMesh" . Regards, Ricky
__________________
If it is easy, then something is fishy! |
||
March 20, 2017, 02:25 |
|
#4 | |
New Member
Graham Cottrell
Join Date: Mar 2017
Posts: 3
Rep Power: 9 |
Quote:
How do I create a BlockMeshDict from the STL file, or any other format that Solidworks can output? Regards, Graham. |
||
March 20, 2017, 02:43 |
|
#5 | |
New Member
Graham Cottrell
Join Date: Mar 2017
Posts: 3
Rep Power: 9 |
Quote:
Regards, Graham. |
||
March 20, 2017, 08:42 |
|
#6 | |
Member
Ricky
Join Date: Jul 2014
Location: Germany
Posts: 78
Rep Power: 12 |
Quote:
you can use SALOME for that, a good tutorial is given by Tobias Holzmann, which you can find here. Regards, Ricky
__________________
If it is easy, then something is fishy! |
||
Tags |
blockmeshdict, solidworks |
|
|