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

Home Forums OpenFOAM Forum Post processsing Assignment on Lesson 19 Reply To: Post processsing Assignment on Lesson 19

  • Barış Bicer

    Moderator
    March 6, 2022 at 4:42 am

    Hi Adityan,

    First, thank you for your question.

    To understand what is going on a tutorial, my suggestion is always to look at Allrun file which shows the required steps for running that case. As you can see below that Mesh is created in starCCM and then converted to OpenFOAM:

    # Convert mesh from resources directory
    runApplication star4ToFoam -scale 1 \
    “$FOAM_TUTORIALS”/resources/geometry/nacaAirfoil/nacaAirfoil

    You dont need to do anything. Only use below line (inside Allrun file) and delete other lines

    #!/bin/sh
    cd “${0%/*}” || exit # Run from this directory
    . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions
    #——————————————————————————

    restore0Dir

    # Convert mesh from resources directory
    runApplication star4ToFoam -scale 1 \
    “$FOAM_TUTORIALS”/resources/geometry/nacaAirfoil/nacaAirfoil

    after that only run this command : ./Allrun

    That will create your mesh.

    or simply you can copy nacaAirFoil folder from geometry to your case folder.

    cp -r $FOAM_TUTORIALS/resources/geometry/nacaAirfoil/nacaAirfoil .

    then use : star4ToFoam -scale 1 nacaAirfoil/nacaAirfoil.inp

    That will also create your mesh.

    I hope that it addresses your question.

    Best.

    Barış

error: Content is protected !!