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

Home Forums OpenFOAM Forum Lecture-19 Assignment nacaAirfoil

  • Lecture-19 Assignment nacaAirfoil

    Posted by tusharpandey1908 on April 19, 2022 at 2:34 pm

    Hi Baris,

    While i am executing the simpleFoam, following issue is appearing-

    /*
    –> FOAM FATAL IO ERROR:
    keyword SIMPLE is undefined in dictionary “/home/tushar/OpenFOAM/tushar-7/run/nacaAirfoil/system/fvSolution”

    file: /home/tushar/OpenFOAM/tushar-7/run/nacaAirfoil/system/fvSolution from line 22 to line 52.

    From function const Foam::dictionary& Foam::dictionary::subDict(const Foam::word&) const
    in file db/dictionary/dictionary.C at line 708.

    FOAM exiting
    */

    For your information-

    /*
    tushar@tushar-VirtualBox:~/OpenFOAM/tushar-7/run/nacaAirfoil$ ls
    0 Allrun log.rhoPimpleFoam prostar Running_Notes
    Allclean constant log.star3ToFoam runApplication system

    tushar@tushar-VirtualBox:~/OpenFOAM/tushar-7/run/nacaAirfoil$ ls system
    blockMeshDict controlDict fvSchemes fvSolution
    tushar@tushar-VirtualBox:~/OpenFOAM/tushar-7/run/nacaAirfoil$

    */

    I am using the OpenFOAM7 Foundation version.

    fvSolution is as below

    /*
    /*——————————–*- C++ -*———————————-*\
    ========= |
    \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
    \\ / O peration | Website: https://openfoam.org
    \\ / A nd | Version: 7
    \\/ M anipulation |
    \*—————————————————————————*/
    FoamFile
    {
    version 2.0;
    format ascii;
    class dictionary;
    location “system”;
    object fvSolution;
    }
    // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

    solvers
    {
    “rho.*”
    {
    solver diagonal;
    }

    “p.*”
    {
    solver PBiCGStab;
    preconditioner DILU;
    tolerance 1e-12;
    relTol 0;
    }

    “(U|e).*”
    {
    $p;
    tolerance 1e-9;
    }

    “(k|epsilon).*”
    {
    $p;
    tolerance 1e-10;
    }
    }

    PIMPLE
    {
    nOuterCorrectors 1;
    nCorrectors 2;
    nNonOrthogonalCorrectors 0;

    transonic yes;
    }

    // ************************************************************************* //
    */

    Barış Bicer replied 2 years, 1 month ago 3 Members · 7 Replies
  • 7 Replies
  • Barış Bicer

    Moderator
    April 19, 2022 at 9:06 pm

    Hi Tushar,

    When I look at your fvSolution file that nacaAirfoil is working using pimpleFoam not simpleFoam solver. Can you also post your controlDict file details here…

    Why do you wanna run airFoil case with simpleFoam? nacaAirFoil case is located under tutorials/compressible/sonicFoam/RAS/nacaAirfoil

    So it is using sonicFoam solver… If you wanna run this airFoil case with simpleFoam then you should change system directory files plus constant directory files with the motorBike case files (Which is simpleFoam tutorial).

    For your info.

    Best

    Barış

  • tusharpandey1908

    Member
    April 20, 2022 at 3:41 pm

    Hi Baris,

    While i am using the pimpleFoam, this error is appearing –

    /*
    –> FOAM FATAL ERROR:
    cannot find file “/home/tushar/OpenFOAM/tushar-7/run/nacaAirfoil/constant/transportProperties”

    From function virtual Foam::autoPtr<Foam::ISstream> Foam::fileOperations::uncollatedFileOperation::readStream(Foam::regIOobject&, const Foam::fileName&, const Foam::word&, bool) const
    in file global/fileOperations/uncollatedFileOperation/uncollatedFileOperation.C at line 538.

    FOAM exiting
    */

    controlDict file is –

    /*
    /*——————————–*- C++ -*———————————-*\
    ========= |
    \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
    \\ / O peration | Website: https://openfoam.org
    \\ / A nd | Version: 7
    \\/ M anipulation |
    \*—————————————————————————*/
    FoamFile
    {
    version 2.0;
    format ascii;
    class dictionary;
    location “system”;
    object controlDict;
    }
    // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

    application rhoPimpleFoam;

    startFrom latestTime;

    startTime 0;

    stopAt endTime;

    endTime 0.01;

    deltaT 4e-08;

    writeControl runTime;

    writeInterval 2e-04;

    purgeWrite 0;

    writeFormat ascii;

    writePrecision 6;

    writeCompression off;

    timeFormat general;

    timePrecision 6;

    runTimeModifiable true;

    functions
    {
    forces
    {
    type forceCoeffs;
    libs (“libforces.so”);
    writeControl timeStep;
    writeInterval 1;

    patches
    (
    WALL10
    );

    log true;
    rhoInf 1;
    CofR (0 0 0);
    liftDir (-0.239733 0.970839 0);
    dragDir (0.970839 0.239733 0);
    pitchAxis (0 0 1);
    magUInf 618.022;
    lRef 1;
    Aref 1;
    }
    }

    // ************************************************************************* //
    */

    For your information –

    /*
    tushar@tushar-VirtualBox:~/OpenFOAM/tushar-7/run/nacaAirfoil$ ls system
    blockMeshDict controlDict fvSchemes fvSolution
    tushar@tushar-VirtualBox:~/OpenFOAM/tushar-7/run/nacaAirfoil$ ls constant
    polyMesh thermophysicalProperties turbulenceProperties

    */
    Error is appearing for “transport properties.”

    For your information –

    /*
    tushar@tushar-VirtualBox:~/OpenFOAM/tutorials$ ls
    Allclean combustion electromagnetics IO resources
    Allrun compressible financial lagrangian stressAnalysis
    Alltest discreteMethods heatTransfer mesh
    basic DNS incompressible multiphase

    tushar@tushar-VirtualBox:~/OpenFOAM/tutorials$ ls compressible
    rhoCentralFoam rhoPimpleFoam rhoPorousSimpleFoam rhoSimpleFoam

    */

    sonicFoam is not appearing under tutorials.

    CFD Foundation version

  • Barış Bicer

    Moderator
    April 21, 2022 at 6:50 am

    Good point Krishnendu,

    Thank you!

  • tusharpandey1908

    Member
    April 23, 2022 at 4:11 pm

    Hi Krishnendu,

    Its working.
    Thanks.

  • Barış Bicer

    Moderator
    April 25, 2022 at 12:28 pm

    Great!!!

Log in to reply.

error: Content is protected !!