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

[snappyHexMesh] How to generate baffles on open surfaces with snappyhexmesh

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 28, 2024, 03:29
Default How to generate baffles on open surfaces with snappyhexmesh
  #1
New Member
 
Join Date: Nov 2024
Posts: 3
Rep Power: 2
Patuco is on a distinguished road
Hi, I am trying to make a multiregion mesh with snapyhexmesh in openfoam, the case is air around and a rectangular pipe with a water flow inside.

The problem is that I visualize the mesh and the contour mesh generated by blockmesh cuts my study region, then I modify the blockmesh coordinates but then the mesh generated by snappyhexmesh disappears and I am left only with the contour mesh.

in the log.snappyhexmesh I observe that it does not generate any baffles, but I have put the same conditions as in the shellandtubeheatexchanger tutorial.

Do you know why this could happen?

I am basing it on the shellandtubeheatexchanger CHT multiregion tutorial, it is openfoam12.


createbaffles

internalFacesOnly true;

baffles
{
baffles1
{
type faceZone;
zoneName shell_to_solid;

owner
{
name shell_to_solid;
type mappedWall;
neighbourRegion solid;
neighbourPatch solid_to_shell;
}

neighbour
{
name solid_to_shell;
type mappedWall;
neighbourRegion shell;
neighbourPatch shell_to_solid;
}
}

baffles2
{
type faceZone;
zoneName air_to_solid;

owner
{
name air_to_solid;
type mappedWall;
neighbourRegion solid;
neighbourPatch solid_to_air;
}

neighbour
{
name solid_to_air;
type mappedWall;
neighbourRegion air;
neighbourPatch air_to_solid;
}
}
}




snappyhexmeshdict



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

castellatedMesh on;
snap on;
addLayers off;

geometry
{
shell
{
type triSurfaceMesh;
file "shell.stl";
regions
{
inlet_s { name inlet_s; }
outlet_s { name outlet_s; }
}
}
air
{
type triSurfaceMesh;
file "air.stl";
regions
{
inlet_a { name inlet_a; }
outlet_a { name outlet_a; }
down { name down; }
top { name top; }
laterales { name laterales; }
}
}
solid
{
type triSurfaceMesh;
file "solid.stl";
regions
{
external { name external; }

}
}

shell_to_solid
{
type triSurfaceMesh;
file "shell_to_solid.stl";
}
air_to_solid
{
type triSurfaceMesh;
file "air_to_solid.stl";
}
};

castellatedMeshControls
{
features
(
);

refinementSurfaces
{
shell
{
level (1 1);

regions
{
inlet_s { level (1 1); patchInfo { type patch; } }
outlet_s { level (1 1); patchInfo { type patch; } }

}
}
air
{
level (1 1);
regions
{
inlet_a { level (1 1); patchInfo { type patch; } }
outlet_a { level (1 1); patchInfo { type patch; } }

}
}
solid
{
level (1 1);
regions
{
external { level (1 1); patchInfo { type wall; } }

}
}

shell_to_solid
{
level (1 1);
faceZone shell_to_solid;
cellZone shell;
mode inside;
}
air_to_solid
{
level (1 1);
faceZone air_to_solid;
cellZone air;
mode inside;
}
}

insidePoint (0 0.008 0.015);

nCellsBetweenLevels 2;

resolveFeatureAngle 15;
}

snapControls
{
implicitFeatureSnap true;
}

addLayersControls
{
layers
{

shell_to_solid
{
nSurfaceLayers 2;
mergeFaces false;
}
air_to_solid
{
nSurfaceLayers 2;
mergeFaces false;
}
}

relativeSizes true;
expansionRatio 1.2;
finalLayerThickness 0.5;
minThickness 1e-3;
}

mergeTolerance 1e-6;

// ********************************************** //
Patuco is offline   Reply With Quote

Reply

Tags
baffles, mesh generation problem, snappyhexmesh


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
[OpenFOAM.com] swak4foam compiling issues on a cluster saj216 OpenFOAM Installation 5 January 17, 2023 17:05
[snappyHexMesh] snappyHexMesh does not create any mesh except one for the reference cell Arman_N OpenFOAM Meshing & Mesh Conversion 1 May 20, 2019 18:16
[snappyHexMesh] snappyhexmesh for open surfaces, like an annulus vkannama OpenFOAM Meshing & Mesh Conversion 3 December 1, 2017 03:57
[swak4Foam] swak4foam building problem GGerber OpenFOAM Community Contributions 54 April 24, 2015 17:02
OpenFOAM with IBM AIX matthias OpenFOAM Installation 20 March 25, 2008 03:36


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