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

    Lookid

    12/23/2018, 4:32 PM
    This section summarizes the tips and main important problems solved by the discord, so they're not lost in the deep of the channels forever. 1. The OpenFOAM Wiki There is quite some basic questions often asked, and people already took a lot of time to answer them. This has all been grouped of the OpenFOAM Wiki : https://wiki.openfoam.com/Tutorials. The best from this website are for me: - The 3 Weeks series - PDF from Joel Guerrero where you'll find about everything. My favourite is "Crash introduction to the FVM and numerical playground". You'll learn about how to setup fvSchemes and fvSolutions depending on your mesh quality. Definitely worth spending your time looking for what interests you there. 2. Create a proper STL file from a STEP file This serie of YT video describes the process properly : watch?v=5U7jZ48vOZ4 3. Visualize STL problems after running surfaceCheck by @User - Create a surfaceSubsetDict file based on the post https://www.cfd-online.com/Forums/openfoam-meshing-snappyhexmesh/195643-visualizing-badfaces-via-surfacesubsetdict.html#post671554 - Place your .stl and surfaceSubsetDict in constant/triSurface - run $surfaceSubset surfaceSubsetDict yourstl.stl problem.stl in constant/triSurface 4. Install cfmesh git clone https://git.code.sf.net/p/cfmesh/code cfmesh-code -b port-v1606+ cd cfmesh git checkout development // here open the file meshLibrary/Make/options // and change the line : // CFMESH_MACROS = -DNoSizeType to // CFMESH_MACROS = -DNoSizeType -DOpenCFDSpecific export WM_NCOMPPROCS=4 ./Allwmake 5. CFD Theory great YoutTube Channel : https://www.youtube.com/channel/UCcqQi9LT0ETkRoUu8eYaEkg
  • l

    Lookid

    05/22/2020, 6:17 AM
    6. Remove all quality controls in SHM to generate layers: Hi! Adding layers is a complex process in SHM and is often asked here. I personally don't have a solution for what you're trying to do but you can trial and error 😄 First you can try deactivating all quality controls, this will generate layers whatever happens even if it totally destroys your mesh also, try this while generating one single layer. It is a "good practice" to generate a single layer at a time. If it doesn't work with 1 layers, chances are it won't work with more.
    Copy code
    maxNonOrtho 180; 
        maxBoundarySkewness -1; 
        maxInternalSkewness -1; 
        maxConcave 180; 
        minVol -1e30;
        minTetQuality -1e30; 
        minArea -1;
        minTwist 0.02; 
        minDeterminant 0.001; 
        minFaceWeight 0.05; 
        minVolRatio 0.01; 
        minTriangleTwist -1; 
    
        nSmoothScale 4;
        errorReduction 0.75;
  • l

    Lookid

    12/16/2020, 1:04 PM
    7. Wolf Dynamics OpenFOAM Pratical Guide!
    howtoof
  • k

    kandelabr

    11/08/2023, 7:20 AM
    A study on snappyHexMesh layer addition settings: I've now added all the cases I've run, including the laplacian mesh shrinker, to this page: https://ben-malin.github.io/2023/11/06/snappyLayers.html