|
[Sponsors] |
[snappyHexMesh] SnappyHexMesh won't snap to geometry (external flow) |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
June 27, 2019, 09:54 |
SnappyHexMesh won't snap to geometry (external flow)
|
#1 |
New Member
Jad
Join Date: Jun 2013
Posts: 15
Rep Power: 13 |
Hi everyone,
I'm new at OpenFoam, using OpenFoam V6 to run a 3D simulation on a modified Ahmed body (for those who don't know, it's a simplified car-like geometry used in automotive external aero). My problem is that I can't get snappyhexmesh to actually snap the geometry. Basically it acts as if the geometry was not there. Since I'm new at openfoam and even newer at snappyhexmesh, I am sure there must be something obvious I am missing. My geometry input is a closed stl (ASCII) with decent resolution. Basic patches (inlet, outlet etc) are defined directly in blockMesh. For troubleshooting I've tried refining the initial blockMesh, changing parameters in surfaceFeaturesDict to get a very high number of feature edges, and finally I've tried a number of different locationInMesh parameters in snappyHexMeshDict, but no luck. Please if you can let me know what I am missing it would be very helpful. i've included my blockMesh, features and snappy dicts as well as logs. Thanks, Jad |
|
June 30, 2019, 05:46 |
|
#2 |
Senior Member
|
Hi,
If you want to use OpenFOAM, you should read the log and messages. Log from the snappyHexMesh tells the followings; Code:
Reading "/home/jtayoun/JT_run/run_openfoam/3_weeks/snappyDebugging/ahmedBody/system/snappyHexMeshDict.castellatedMeshControls.refinementSurfaces" from line 105 to line 106 Not all entries in refinementSurfaces dictionary were used. The following entries were not used : 1(ahmed_body) Code:
--> FOAM Warning : From function Foam::labelHashSet Foam::polyBoundaryMesh::patchSet(const Foam::UList<Foam::wordRe>&, bool, bool) const in file meshes/polyMesh/polyBoundaryMesh/polyBoundaryMesh.C at line 798 Cannot find any patch or group names matching "ahmed_body.stl" --> FOAM Warning : From function Foam::layerParameters::layerParameters(const Foam::dictionary&, const Foam::polyBoundaryMesh&) in file snappyHexMeshDriver/layerParameters/layerParameters.C at line 268 Reading "/home/jtayoun/JT_run/run_openfoam/3_weeks/snappyDebugging/ahmedBody/system/snappyHexMeshDict.addLayersControls.layers" Layer specification for "ahmed_body.stl" does not match any patch. Valid patches are 4 ( inlet outlet ground frontAndBack ) "ahmed_body.stl" does not match any patch. Please read the snappyHexMeshDict in motorBike tutorial. In geometry subdict, file name "motorBike.obj" is used and the patch is named as "motorBike". In refinementSurfaces subsubdict in castellatedMeshControls subdict, patch name "motorBike" is used, not the file name "motorBike.obj". You used patch name "car" in geometry subdict, and "ahmed_body" in castellatedMeshControls subdict. this is not consistent. And, in AddLayersControls subdict, you used the geometry fle name "ahmed_body.stl" . This should be patch name (not geometry). There is an caution about this in the motorBike tutorial. I'm not sure this fix your problem or not. but, at least, this will be a small improvement. |
|
June 30, 2019, 12:04 |
|
#3 | |
New Member
Jad
Join Date: Jun 2013
Posts: 15
Rep Power: 13 |
Quote:
Usually I compute the mesh on salome GUI (this is where i define all the patches), export it as .unv and convert it. This time my only input is the .stl, and i've built the domain using blockMeshDict. Is there a dict in OF where i can define all the .stl surfaces as patches? Thanks, |
||
June 30, 2019, 12:16 |
|
#4 |
New Member
Jad
Join Date: Jun 2013
Posts: 15
Rep Power: 13 |
I think this thread provides an answer: how to define patches with snappyHexMesh from a STL file ?
|
|
Tags |
snap to surface, snappyhexmesh 3d, snappyhexmeshdict, stl |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Issues on the simulation of high-speed compressible flow within turbomachinery | dowlee | OpenFOAM Running, Solving & CFD | 11 | August 6, 2021 06:40 |
Match Pressure Inlet/Outlet Boundary Condition Mass Flow Rate | MSchneid | Fluent UDF and Scheme Programming | 3 | February 23, 2019 06:00 |
About the Reynolds Number and Y-plus in external flow | Mason liu | CFX | 18 | November 10, 2014 18:37 |
[snappyHexMesh] SnappyHexMesh meshes inside and outside of an STL geometry | villier | OpenFOAM Meshing & Mesh Conversion | 17 | June 15, 2010 19:51 |
external flow meshing for a Sedan in pro*am | rave | Siemens | 7 | July 17, 2007 09:48 |