Find answers, ask questions, and connect with our <br>community around the world.

Home Forums OpenFOAM Forum question about the assignment of lesson 19

  • question about the assignment of lesson 19

    Posted by Xin on February 8, 2024 at 4:23 pm

    Hi Support team,

    I am doing assingment 19, and copy the tutorial folder RAS/sonicFoam but there are no mesh file and any blockMeshDict or snappyHexMesh file. I copy the resourses file of nacaairfoil and unzip it but there are files below. Can you please explain how i can generate mesh.

    Thank you in advance
    Xin Xiong

    Barış Bicer replied 2 months, 1 week ago 2 Members · 3 Replies
  • 3 Replies
  • Barış Bicer

    February 8, 2024 at 9:53 pm

    Hi Xin,

    First rule: if you dont know how to proceed and a tutorial always look at .Allrun file inside case to see each steps of process.

    As you can see here that mesh is converted from starccm to openfoam. So you dont need to use blockMesh or snappy here.

    cd "${0%/*}" || exit                                # Run from this directory
    . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions        # Tutorial run functions
    # Convert mesh from resources directory
    runApplication star4ToFoam -scale 1 \
    # Symmetry plane -> empty
    sed -i -e 's/symmetry\([)]*;\)/empty\1/' constant/polyMesh/boundary
    # Don't need these extra files (from star4ToFoam conversion)
    rm -f \
       constant/cellTable \
       constant/polyMesh/cellTableId \
       constant/polyMesh/interfaces  \
       constant/polyMesh/origCellId  \
    if isParallel "$@"
        runApplication decomposePar
        runParallel $(getApplication)
        runApplication $(getApplication)

  • Xin

    February 8, 2024 at 10:33 pm

    Alright thank you, got it

  • Barış Bicer

    February 10, 2024 at 4:28 pm

    you are welcome!

    Good luck!

Log in to reply.

error: Content is protected !!