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

[snappyHexMesh] using 'waveFloatingObject' tutorial with a different geometry

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 11, 2021, 10:30
Default using 'waveFloatingObject' tutorial with a different geometry
  #1
New Member
 
Milad
Join Date: Jul 2020
Posts: 4
Rep Power: 5
MIH_ANSYS is on a distinguished road
Hello Guys,

I post this thread in order to get some help regarding using 'waveFloatingObject' tutorial.

I have used this tutorial with different settings for that floating object predefined in the blockmesh, however, now I have decided to change the geometry. (attached fig.). I have copied the '.stl file in triSurface folder (duck.stl). and changed accordingly the snappyHexMesh file. please see my attached snappyHexMesh file. however, it seems this stl file cannot be read. Mr. Pablo once told me about typos of mesh and name errors. but I could not fix it.

my plan is to simulate the wave interaction with this new geometry.

do I need to change the dynamicmesh settings as well?

please help me in this matter.

tanx in advance
Regards

FoamFile
{
version 2.0;
format ascii;
class dictionary;
object snappyHexMeshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

castellatedMesh true;
snap true;
addLayers false;

geometry
{
duck.stl
{
type triSurfaceMesh;
name duck;

patchInfo
{
type wall;
}

}



refinementBox
{
type searchableBox;
min (-1 -0.6 0);
max ( 4 0.6 1);
}

};

// Settings for the castellatedMesh generation.
castellatedMeshControls
{

// Refinement parameters

maxLocalCells 100000;
maxGlobalCells 1000000;
minRefinementCells 10; //0
maxLoadUnbalance 0.10;
nCellsBetweenLevels 1; //3

// Explicit feature edge refinement

features
(



);

// Surface based refinement

refinementSurfaces
{
duck
{
//level (2 4);
level (0 2);
}

}

resolveFeatureAngle 30; //default
planarAngle 30;

// Region-wise refinement

refinementRegions
{
/*
refinementBox
{
mode inside;
levels ((1E15 1));
}
*/


duck
{
mode distance;
//levels ((0.06 4));
levels ((0.02 4));
}

}

// Mesh selection

locationInMesh (0.11 0.11 0.1);

allowFreeStandingZoneFaces true;
}

// Settings for the snapping.
snapControls
{
nSmoothPatch 3;
tolerance 2.0;
nSolveIter 300; //30
nRelaxIter 5;
nFeatureSnapIter 20; //10;
implicitFeatureSnap false;
explicitFeatureSnap true;
multiRegionFeatureSnap false;
}

// Settings for the layer addition.
addLayersControls
{
relativeSizes true;

// Layer thickness specification. This can be specified in one of following ways:
// - expansionRatio and finalLayerThickness (cell nearest internal mesh)
// - expansionRatio and firstLayerThickness (cell on surface)
// - overall thickness and firstLayerThickness
// - overall thickness and finalLayerThickness
// - overall thickness and expansionRatio

expansionRatio 1.2;
finalLayerThickness 0.7; //0.7-0.6-0.5-0.4-0.3
//firstLayerThickness 0.1;
//thickness 0.6;
//minThickness 0.25;
minThickness 0.001; //0.1

layers
{
//"surface.*"
duck
{
nSurfaceLayers 1;

//can local refinement controls
// Per patch layer data
//expansionRatio 1.2;
//finalLayerThickness 0.5; //with relative sizes true
//minThickness 0.1; //with relative sizes true

}
/*
frozenPatches
{
nSurfaceLayers 0;
}
*/
}

nGrow 0;

//featureAngle 0; //no inflation
//featureAngle 60;
//featureAngle 130; //default
//featureAngle 270;
featureAngle 330;

maxFaceThicknessRatio 0.5;
nSmoothSurfaceNormals 1;
nSmoothThickness 10;
minMedialAxisAngle 130; //90;
minMedianAxisAngle 130; //90;
maxThicknessToMedialRatio 0.3;
nSmoothNormals 10; //3;

//nMedialAxisIter 10; //this deals with propagation of dislocations in corners
//nSmoothDisplacement 90;
//detectExtrusionIsland true;

slipFeatureAngle 30;
nRelaxIter 10; //5 //3
nBufferCellsNoExtrude 0;
nLayerIter 50;
nRelaxedIter 20; //*****

additionalReporting true; //*****
}

meshQualityControls
{
#include "meshQualityDict"

relaxed //*****
{
maxNonOrtho 75; // Maximum non-orthogonality allowed. Set to 180 to disable.
}

// Advanced
nSmoothScale 4;
errorReduction 0.75;
}

// Advanced

//debug 0; //3

//// Debug flags
debugFlags
(
//mesh // write intermediate meshes
//intersections // write current mesh intersections as .obj files
//featureSeeds // write information about explicit feature edge refinement
//attraction // write attraction as .obj files
//layerInfo // write information about layers
);

//// Write flags
writeFlags
(
scalarLevels // write volScalarField with cellLevel for postprocessing
layerSets // write cellSets, faceSets of faces in layer
layerFields // write volScalarField for layer coverage
);

// Merge tolerance. Is fraction of overall bounding box of initial mesh.
// Note: the write tolerance needs to be higher than this.
mergeTolerance 1e-6;
Attached Images
File Type: jpg 01.jpg (33.6 KB, 2 views)
MIH_ANSYS is offline   Reply With Quote

Reply


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
Viewing the geometry in OpenFOAM tutorial ansys_matt OpenFOAM Pre-Processing 1 March 12, 2021 14:28
Prism Layers issue for Model replicating Abaqus Co-Sim Mechanical Coupling Tutorial MTabone STAR-CCM+ 4 April 14, 2015 02:28
[Gmsh] 2D Mesh Generation Tutorial for GMSH aeroslacker OpenFOAM Meshing & Mesh Conversion 12 January 19, 2012 03:52
geometry change in snappychtMultiRegion tutorial jofry OpenFOAM 1 October 28, 2010 09:59
motorBike tutorial and Scaling - New geometry used, scaled and now large velocity!!! scott OpenFOAM 1 July 29, 2010 04:09


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