|
[Sponsors] |
[snappyHexMesh] snappyHexMesh using foam-extend. Tag in boundary file (related with solids4foam) |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
January 12, 2021, 09:27 |
snappyHexMesh using foam-extend. Tag in boundary file (related with solids4foam)
|
#1 |
New Member
Ra Miro
Join Date: Aug 2020
Posts: 21
Rep Power: 6 |
Hello. I attach my code. I'm using foam-extend 4.1. My goal is to use solids4foam, but this question is related with the mesh generator using snappyHexMesh. The domain is the same than the solids4foam example oscillatingElasticBeam (I think this is not relevant), but I'm trying to use snappyHexMesh to understand how to use it for my actual problem.
First I run blockMesh without problems. But when I run snappyHexMesh I have two problems: 1. The tag boundary of my domain are: "inlet", "outlet", "walls" and "interface". I use the tag "all" in blockMeshDict", but I do not want to have that tag in the file constant/polyMesh/boundary Code:
boundary ( all { type patch; faces ( (0 1 2 3) // bottom (4 5 6 7) // top (0 1 5 4) (1 2 6 5) (3 7 6 2) (0 3 7 4) ); } ); Code:
5 ( all { type patch; nFaces 5785; startFace 235302; } inlet_solid { type wall; nFaces 2048; startFace 241087; } outlet_solid { type wall; nFaces 1398; startFace 243135; } walls_solid { type wall; nFaces 7377; startFace 244533; } interface_solid { type wall; nFaces 6144; startFace 251910; } ) // ************************************************************************* // 3. The last problem is that surfaceFeatureExtract (after blockMesh and snappyHexMesh) not works and I do not why. Thanks in advance. |
|
October 8, 2021, 01:30 |
|
#2 |
Member
Michael Sukham
Join Date: Mar 2020
Location: India
Posts: 84
Rep Power: 6 |
The surfaceFeatureExtract of snappyHexMesh in foam extend version seems to not work. to get the eMesh we can simply type surfaceFeatureExtract -includedAngle 150 constant/polyMesh/your_file.stl constant/polyMesh/user_defined_name.eMesh
But the problem is when we use the eMesh generated in foam extend, it cannot read the file. I also do the meshing in openFOAM 9 and import it to foam extend. I hope this will help. |
|
December 28, 2021, 12:49 |
|
#3 |
Member
Richardpluff
Join Date: May 2014
Posts: 95
Rep Power: 12 |
Hi,
May I ask you how you import a of9 mesh to foam extend? I am having problems with this, as I am not able to mesh in parallel using foam extend. Now I have foam mesh created with of9 but I need to convert it to foam extend 4.1 format. Do you know how to do that? Many thanks in advance |
|
December 28, 2021, 13:51 |
|
#4 |
Member
Michael Sukham
Join Date: Mar 2020
Location: India
Posts: 84
Rep Power: 6 |
I couldn't accomplish it in foam extend 4.0 but you can use foam extend 3.2 or maybe earlier version as the surfaceFeatures can be extracted using surfaceFeaturesDict. The format seems to match for both the versions but for 4.0 or newer it seems the format is different. Is it necessary that you use the fe4.0 version?
Hope this helps |
|
December 29, 2021, 11:20 |
|
#5 |
Member
Richardpluff
Join Date: May 2014
Posts: 95
Rep Power: 12 |
Thanks for your answer.
So...you mean of9 mesh created with snappy works (without conversion) using foam extend 3? You mentioned that "I also do the meshing in openFOAM 9 and import it to foam extend", so you managed to do it without a conversion? And if not...how did you carry out the conversion? Thanks in advance |
|
December 29, 2021, 11:33 |
|
#6 |
Member
Michael Sukham
Join Date: Mar 2020
Location: India
Posts: 84
Rep Power: 6 |
Well I used BlueCore CFD which comes with preloaded OF8. (Sorry I just checked. Its OF 8 in blueCoreCFD 2020 not OF9. My bad). No need to change anything. Just copy the constant folder onto the case folder and replace it in your foam extend. It works fine for me. Anyone can confirm it? You can give it a try.
|
|
Tags |
snapphhexmesh, solids4foam |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Trouble compiling utilities using source-built OpenFOAM | Artur | OpenFOAM Programming & Development | 14 | October 29, 2013 11:59 |
"parabolicVelocity" in OpenFoam 2.1.0 ? | sawyer86 | OpenFOAM Running, Solving & CFD | 21 | February 7, 2012 12:44 |
Version 15 on Mac OS X | gschaider | OpenFOAM Installation | 113 | December 2, 2009 11:23 |
ParaView Compilation | jakaranda | OpenFOAM Installation | 3 | October 27, 2008 12:46 |
DecomposePar links against liblamso0 with OpenMPI | jens_klostermann | OpenFOAM Bugs | 11 | June 28, 2007 18:51 |