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

[snappyHexMesh] Urgent

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

Like Tree1Likes
  • 1 Post By Carlo_P

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 7, 2019, 01:04
Default Urgent
  #1
New Member
 
Join Date: Oct 2019
Posts: 5
Rep Power: 2
cyberpr123 is on a distinguished road
Hello all,
I am new to OpenFOAM, I am trying to generate mesh using snappyHexMesh.
I realised that castellated mesh is not working properly.
If I keep it ON or OFF; meshing are still same. Can you help me what is wrong in it?? Also, if i increase level of refinement, there is error, and the meshing aborted.

refinementSurfaces
{
hull
{
level (2 2);
}



This is my SHM code-

#includeEtc "caseDicts/mesh/generation/snappyHexMeshDict.cfg"

castellatedMesh on;
snap on;
addLayers on;

geometry
{
hull
{
type triSurfaceMesh;
file "hull.stl";

patchInfo {
type wall;
}
}
};

castellatedMeshControls
{
features
(
{ file "hull.eMesh"; level 6; }
);

refinementSurfaces
{
hull
{
level (2 2);
}
resolveFeatureAngle 60;
}

refinementRegions
{
//inside , outside , distance
CAD
{
mode inside;
levels ((1E15 5));
}
}

locationInMesh (1.5 1 0); // Offset from (0 0 0) to avoid
// coinciding with face or edge
//nCellsBetweenLevels 3;
}

snapControls
{
// explicitFeatureSnap true;
// implicitFeatureSnap false; // by default
}

addLayersControls
{
layers
{
"hull.*"
{
nSurfaceLayers 6;
}
// top
// {
// nSurfaceLayers 5;
// {
}

relativeSizes true; // false, usually with firstLayerThickness
expansionRatio 1.2;
finalLayerThickness 0.002;
minThickness 1e-4;
// firstLayerThickness 0.01;

// maxThicknessToMedialRatio 0.6;
}

meshQualityControls
{
minTetQuality -1e+30;
}

writeFlags
(
// scalarLevels
layerSets
layerFields
);

mergeTolerance 1e-6;

// ************************************************** *********************** //
cyberpr123 is offline   Reply With Quote

Old   October 7, 2019, 04:33
Default
  #2
Senior Member
 
Carlo_P
Join Date: May 2019
Location: Italy
Posts: 125
Rep Power: 2
Carlo_P is on a distinguished road
Are you running snappyHexMesh -overwrite?


snappyHexMesh creates different mesh in idfferent timestep (folder), 0 (castelled), 1 (snap), 2 (boundary layer).

You have to open in paraview e move with the timestep.
Otherwise, you can run snappyHexMesh -overwrite and snappy will create the mesh in the normal folder
Carlo_P is online now   Reply With Quote

Old   October 7, 2019, 04:38
Default
  #3
New Member
 
Join Date: Oct 2019
Posts: 5
Rep Power: 2
cyberpr123 is on a distinguished road
Quote:
Originally Posted by Carlo_P View Post
Are you running snappyHexMesh -overwrite?


snappyHexMesh creates different mesh in idfferent timestep (folder), 0 (castelled), 1 (snap), 2 (boundary layer).

You have to open in paraview e move with the timestep.
Otherwise, you can run snappyHexMesh -overwrite and snappy will create the mesh in the normal folder
Carlo_P,
Thanks for your prompt reply. I did not use snappyHexMesh -overwrite, I would use it and see .

Thank you so much.
cyberpr123 is offline   Reply With Quote

Old   October 9, 2019, 08:09
Default
  #4
New Member
 
Join Date: Oct 2019
Posts: 5
Rep Power: 2
cyberpr123 is on a distinguished road
Carlo_P,

Using snappyHexMesh -overwrite worked.

Thank you
cyberpr123 is offline   Reply With Quote

Old   October 9, 2019, 08:26
Default
  #5
Senior Member
 
Carlo_P
Join Date: May 2019
Location: Italy
Posts: 125
Rep Power: 2
Carlo_P is on a distinguished road
Great!
If you want to add a reputation point, I will appreciate
cyberpr123 likes this.
Carlo_P is online now   Reply With Quote

Reply

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
urgent!!! mesh and geometry melek FLOW-3D 0 August 26, 2013 10:10
Urgent - Polyflow - particle tracking visualization -Urgent shafaatht ANSYS 0 October 13, 2010 04:56
Urgent, Urgent, a UDF problem, PLEASE HELP!!! Max FLUENT 1 September 24, 2010 20:30
Urgent...urgent...plss!!! astronome FLUENT 0 October 16, 2009 07:17
tmerge urgent urgent jessica FLUENT 4 July 15, 2006 13:37


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