https://linen.dev logo
Join Discord
Powered by
# meshing
  • l

    lennygo

    11/25/2025, 11:11 AM
    saw this aswell, currently putting it into my devcontainer and seeing how it goes
  • l

    lennygo

    11/25/2025, 11:11 AM
    another option might just be to ditch the symmetry and calcualte the full aircraft domain, rather than half of it
  • l

    lennygo

    11/25/2025, 11:11 AM
    shitty for optimization but if there is no other way then hey, you gotta do what you gotta do
  • f

    finn

    11/25/2025, 11:11 AM
    For me I need to make conformal background mesh, or that is the plan currently. It will give the best results
  • l

    lennygo

    11/25/2025, 11:11 AM
    because my aircraft wall does not actualyl touch the outer boundaries
  • o

    otaolafr

    11/25/2025, 11:12 AM
    i think that your BL will be problematic after the dual mesh, one would expect to create them AFTER any mesh modification.
  • l

    lennygo

    11/25/2025, 11:12 AM
    can SHM or rather cfmesh, because I hate SHM, do poly boundary layers?
  • l

    lennygo

    11/25/2025, 11:13 AM
    i would think the bl generation is tied to the cell type the meshers are designed for
  • o

    otaolafr

    11/25/2025, 11:13 AM
    also, I highly recommend for you is to run your simulation dont stay in the look of the mesh, i played a little bit with polydual before, and the meshes looked great until the simulation was runned.
  • o

    otaolafr

    11/25/2025, 11:15 AM
    SHM for sure, cfmesh what it does is divide the last layer of cells, similar to refineWallLayer app of OF, SHM push the layer by pushing the cells. I think in case that you are bringing a 'classic' mesh from outside (by classic i mean a mesh that you have not intentionally created a super thick 1 cell layer before) it would be better SHM
  • o

    otaolafr

    11/25/2025, 11:16 AM
    SHM does poly boundary layers as it extrudes the surface cells, generally it creates poly cells as after the snappying step there are all kind of crazy cells on surface anyways.
  • l

    lennygo

    11/25/2025, 11:19 AM
    hm okay good to know, but I have found that SHM does not really work for my surface
  • l

    lennygo

    11/25/2025, 11:19 AM
    I can barely scratch 50% coverage of the surface for the boundary layers
  • l

    lennygo

    11/25/2025, 11:19 AM
    it might change with this as maybe its easier now without odd cells across the surface that break the BL
  • l

    lennygo

    11/25/2025, 11:20 AM
    but even before it barely scratched 50% coverage with all the quality checks pretty much disabled
  • l

    lennygo

    11/25/2025, 11:27 AM
    So using the conversion and then using improveMeshQuality DOES lead the mesh to be calculated but as probably expected it broke the boundary layer to a point where its not uniform anymore and at that point why even bother from there
  • l

    lennygo

    11/25/2025, 11:28 AM
    So I guess now Im gonna try a tetra mesh without BL and then generate the boundary layers for that
  • l

    lennygo

    11/25/2025, 12:24 PM
    spoiler alert SHM boundary layers did not form at all, none
  • o

    otaolafr

    11/25/2025, 12:24 PM
    strange, what is the output in the log?
  • l

    lennygo

    11/25/2025, 12:33 PM
    Copy code
    nSurfaceLayers 6
    expansionratio 1.2
    firstLayerThickness 0.001
    minThickness 0.000001
    nGrow 0
    featureAngle 180
    nRelaxIter 5
    nSmoothSurfaceNormals 1;
    nSmoothNormals 3;
    nSmoothThickness 0;
    maxFaceThicknessRatio 1;
    maxFaceThicknessRatio 1;
    maxThicknessToMedialRatio 1;
    minMedialAxisAngle 30;
    nBufferCellsNoExtrude 0;
    nLayerIter 50;
  • l

    lennygo

    11/25/2025, 12:34 PM
    Copy code
    Quality controls only:
    minVol 1e-30
    minTetQuality 1e-30
    maxConcave 80
  • l

    lennygo

    11/25/2025, 12:35 PM
    On every layer iteration its just giving me a bunch of faces with face-decomposition tet quality smaller than 1e-30 and faces with concavitiy greater than 80
  • l

    lennygo

    11/25/2025, 12:37 PM
    checkMesh -allTopology -allGeometry on the origin mesh on which I apply the BL gives 5 failed checks with
    Copy code
    Checking geometry...
       *Number of severely non-orthogonal (> 70 degrees) faces: 84.
      <<Writing 84 non-orthogonal faces to set nonOrthoFaces
     ***Error in face pyramids: 3 faces are incorrectly oriented.
     ***Max skewness = 10.3338, 3 highly skew faces detected which may impair the quality of the results
     ***Error in face tets: 909 faces with low quality or negative volume decomposition tets.
       *There are 4203 faces with concave angles between consecutive edges. Max concave angle = 89.9791 degrees.
     ***Concave cells (using face planes) found, number of cells: 274066
     ***Faces with small volume ratio (< 0.01) found, number of faces: 1239
    
    Failed 5 mesh checks.
  • l

    lennygo

    11/25/2025, 12:41 PM
    which isnt great yeah but i should atleast get BL over most of the surface if that works and only collapse on the local bad areas
  • y

    Yann

    11/25/2025, 12:43 PM
    where are the bad areas?
  • l

    lennygo

    11/25/2025, 1:01 PM
    some around trailing edge and a lot of the concave cells are all around the domain but I know theyre fine because I had used them to calculate without boundary layers and it was fine
  • z

    Zino

    11/25/2025, 8:07 PM
    Turn off all the quality checks and send it
  • z

    Zino

    11/25/2025, 8:07 PM
    See what happens
  • l

    lennygo

    11/25/2025, 8:07 PM
    i did, didnt want to mesh
  • l

    lennygo

    11/25/2025, 8:08 PM
    or, well, add layers