CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Meshing & Mesh Conversion

[snappyHexMesh] snappyHexMesh using foam-extend. Tag in boundary file (related with solids4foam)

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 12, 2021, 08:27
Default snappyHexMesh using foam-extend. Tag in boundary file (related with solids4foam)
  #1
New Member
 
Ra Miro
Join Date: Aug 2020
Posts: 21
Rep Power: 5
ramrebol is on a distinguished road
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)
        );
    }
);
The problem is that in constant/polyMesh/boundary appears


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;
    }
)


// ************************************************************************* //
2. The other problem is that appears the tags "inlet_solid", "outlet_solid", "walls_solid" and "interface_solid". That "solid" comming for the name inside of the constant/triSurface/*.stl files. I can delete this names without problems, because I do not need to use solids4foam, but there are some automatic way to do this?




3. The last problem is that surfaceFeatureExtract (after blockMesh and snappyHexMesh) not works and I do not why.




Thanks in advance.
Attached Files
File Type: zip mesh.old-cfd.zip (20.5 KB, 7 views)
ramrebol is offline   Reply With Quote

Old   October 8, 2021, 00:30
Default
  #2
Member
 
Michael Sukham
Join Date: Mar 2020
Location: India
Posts: 79
Rep Power: 6
2538sukham is on a distinguished road
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.
2538sukham is offline   Reply With Quote

Old   December 28, 2021, 11:49
Default
  #3
Member
 
Richardpluff
Join Date: May 2014
Posts: 95
Rep Power: 12
CRI_CFD is on a distinguished road
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
CRI_CFD is offline   Reply With Quote

Old   December 28, 2021, 12:51
Default
  #4
Member
 
Michael Sukham
Join Date: Mar 2020
Location: India
Posts: 79
Rep Power: 6
2538sukham is on a distinguished road
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
2538sukham is offline   Reply With Quote

Old   December 29, 2021, 10:20
Default
  #5
Member
 
Richardpluff
Join Date: May 2014
Posts: 95
Rep Power: 12
CRI_CFD is on a distinguished road
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
CRI_CFD is offline   Reply With Quote

Old   December 29, 2021, 10:33
Default
  #6
Member
 
Michael Sukham
Join Date: Mar 2020
Location: India
Posts: 79
Rep Power: 6
2538sukham is on a distinguished road
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.
2538sukham is offline   Reply With Quote

Reply

Tags
snapphhexmesh, solids4foam

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Trouble compiling utilities using source-built OpenFOAM Artur OpenFOAM Programming & Development 14 October 29, 2013 10:59
"parabolicVelocity" in OpenFoam 2.1.0 ? sawyer86 OpenFOAM Running, Solving & CFD 21 February 7, 2012 11:44
Version 15 on Mac OS X gschaider OpenFOAM Installation 113 December 2, 2009 10:23
ParaView Compilation jakaranda OpenFOAM Installation 3 October 27, 2008 11:46
DecomposePar links against liblamso0 with OpenMPI jens_klostermann OpenFOAM Bugs 11 June 28, 2007 17:51


All times are GMT -4. The time now is 10:39.