lennygo
10/13/2025, 1:37 PMrefinementSurfaces
{
wing
{
// Surface-wise min and max refinement level
level (6 7);
}
}
// Resolve sharp angles on fridges
resolveFeatureAngle 30;
// Region-wise refinement
// ~~~~~~~~~~~~~~~~~~~~~~
// Specifies refinement level for cells in relation to a surface. One of
// three modes
// - distance. 'levels' specifies per distance to the surface the
// wanted refinement level. The distances need to be specified in
// descending order.
// - inside. 'levels' is only one entry and only the level is used. All
// cells inside the surface get refined up to the level. The surface
// needs to be closed for this to be possible.
// - outside. Same but cells outside.
refinementRegions
{
refinementBox
{
mode inside;
levels ((1e15 2));
}
refinementBox2
{
mode inside;
levels ((1e15 3));
}
// refinementSphere
// {
// mode inside;
// levels ((1e15 7));
// }
}
Yann
10/13/2025, 1:37 PMlennygo
10/13/2025, 1:38 PMYann
10/13/2025, 1:38 PMlennygo
10/13/2025, 1:38 PMrefinementSurfaces
{
wing
{
// Surface-wise min and max refinement level
level (6 7);
}
TE
{
level (7 7);
}
}
?Yann
10/13/2025, 1:39 PMlennygo
10/13/2025, 1:39 PMYann
10/13/2025, 1:41 PMlennygo
10/13/2025, 1:46 PMlennygo
10/13/2025, 1:46 PMYann
10/13/2025, 1:50 PMlennygo
10/13/2025, 1:53 PMYann
10/13/2025, 1:55 PMlennygo
10/13/2025, 1:56 PMtkeskita
10/13/2025, 3:02 PMYann
10/14/2025, 3:08 PMSnail With a Shotgun
10/16/2025, 1:03 PM--> FOAM FATAL ERROR: (openfoam-2206 patch=221104)
Did not find surface intersection for pointI 6 at (0.14999999 6.3515077e-05 0.05) pointNormal (0 1 0) searchDistance 423.43385
(It should be noted that the point (0.15, 0, 0.05) is quite far from any geometry, and isn't even a boundary point in the first place)
Second, it appears to insist on messing with the boundary layers, even with -layerMaxBlendingFraction 0 applied. Although, it seems to only do it selectively, i.e. only with some boundary cells? See attached images (before -> after, note the 4 boundary layer cells in lower right that remain almost untouched).
This particular case is "pseudo-2d" (prior to extrusion), but I've tried it on a proper 3d case as well with similar results. Right now, using it after the snapping step and before adding the boundary layer appears to be the best use, but I'm hoping to get more use out of it than that.
Edit: I appear to have figured out the boundary point smoothing - didn't realize I had to include the domain itself in the targetSurfaces file for external cases, at least if no smoothingPatch is specified. It appears to be working now.
https://cdn.discordapp.com/attachments/796072568385568808/1428367726442971227/pre.png?ex=68f23e9b&is=68f0ed1b&hm=ccad43024fb1b843af07f2c7e3c6dd88e7e835f99d19510d1c867ae18bb2b540&
https://cdn.discordapp.com/attachments/796072568385568808/1428367726925053982/post.png?ex=68f23e9b&is=68f0ed1b&hm=7187e5d6319d8b09569547aa58f22e3861c3d3e252873c8e18d9111f1cd9df5f&Snail With a Shotgun
10/16/2025, 1:05 PM-centroidalIters 100 -writeInterval 10 -layerPatches '( duct )' -layerEdgeLength 0.008 -minLayers 1 -maxLayers 1 -layerMaxBlendingFraction 0.4
https://cdn.discordapp.com/attachments/796072568385568808/1428368242237243464/thickening.png?ex=68f23f16&is=68f0ed96&hm=1920984f89ce94684bba63f10650aac4efdac34703dd3601efb8da4ff4c69a8e&otaolafr
10/16/2025, 1:39 PMtkeskita
10/17/2025, 6:00 AM-minAngle 15
to allow more points to move. But the main problem here is that your initial mesh with high aspect ratio cells is hard bite for isotropic centroidal smoothing.otaolafr
10/17/2025, 6:06 AMtkeskita
10/17/2025, 6:08 AMotaolafr
10/17/2025, 6:08 AMotaolafr
10/17/2025, 6:08 AMotaolafr
10/17/2025, 6:09 AMtkeskita
10/17/2025, 6:12 AMtkeskita
10/17/2025, 6:14 AMotaolafr
10/17/2025, 6:24 AMtkeskita
10/21/2025, 10:57 AM