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

Home Forums OpenFOAM Forum SnappyHexMesh

  • SnappyHexMesh

    Posted by tusharpandey1908 on February 14, 2022 at 4:47 pm

    Dear Baris,

    I have created one of the folder for cylinder case parallel with motorbike and copy-paste the folder of “system”.
    Then
    I have edit the doc file.
    After that
    When i have execute the “surfaceFeatureExtract”, it is showing the error.

    /*
    tushar@tushar-VirtualBox:~/OpenFOAM/tushar-7$ ls
    run
    tushar@tushar-VirtualBox:~/OpenFOAM/tushar-7$ cd run
    tushar@tushar-VirtualBox:~/OpenFOAM/tushar-7/run$ ls
    cavity cylinder motorBike pitzDaily
    tushar@tushar-VirtualBox:~/OpenFOAM/tushar-7/run$ cd cylinde
    bash: cd: cylinde: No such file or directory
    tushar@tushar-VirtualBox:~/OpenFOAM/tushar-7/run$ cd cylinder
    tushar@tushar-VirtualBox:~/OpenFOAM/tushar-7/run/cylinder$ ls
    constant foam.foam surfaceFeaturesDict system
    tushar@tushar-VirtualBox:~/OpenFOAM/tushar-7/run/cylinder$ cd system
    tushar@tushar-VirtualBox:~/OpenFOAM/tushar-7/run/cylinder/system$ ls
    blockMeshDict decomposeParDict fvSolution streamLines
    controlDict forceCoeffs meshQualityDict surfaceFeaturesDict
    cuttingPlane fvSchemes snappyHexMeshDict
    */

    /*

    tushar@tushar-VirtualBox:~/OpenFOAM/tushar-7/run/cylinder$ surfaceFeatureExtract/*—————————————————————————*\
    ========= |
    \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
    \\ / O peration | Website: https://openfoam.org
    \\ / A nd | Version: 7
    \\/ M anipulation |
    \*—————————————————————————*/
    Build : 7-1ff648926f77
    Exec : surfaceFeatureExtract
    Date : Feb 14 2022
    Time : 22:02:46
    Host : “tushar-VirtualBox”
    PID : 4643
    I/O : uncollated
    Case : /home/tushar/OpenFOAM/tushar-7/run/cylinder
    nProcs : 1
    sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
    fileModificationChecking : Monitoring run-time modified files using timeStampMaster (fileModificationSkew 10)
    allowSystemOperations : Allowing user-supplied system call operations

    // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
    Create time

    Reading surfaceFeatureExtractDict

    –> FOAM FATAL ERROR:
    cannot find file “/home/tushar/OpenFOAM/tushar-7/run/cylinder/system/surfaceFeatureExtractDict”

    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

    tushar@tushar-VirtualBox:~/OpenFOAM/tushar-7/run/cylinder$
    */

    Barış Bicer replied 2 years, 3 months ago 2 Members · 9 Replies
  • 9 Replies
  • Barış Bicer

    Moderator
    February 14, 2022 at 8:08 pm

    Hi Tushar,

    First, thank you for question.

    I have checked your case and you mistyped the name of surfaceFeatureExtractDict.

    If you look at the error it says that I couldnt find surfaceFeatureExtractDict file inside your system folder.
    file name looks surfaceFeature”S”Extract –> please correct it as surfaceFeatureExtractDict. Then execute surfaceFeatureExtract command again. It will work.

    Best.

    Barış

  • tusharpandey1908

    Member
    February 15, 2022 at 5:07 pm

    On execution of “surfaceFeatureExtract” –

    /*
    tushar@tushar-VirtualBox:~/OpenFOAM/tushar-7/run/cylinder$ surfaceFeatureExtract
    /*—————————————————————————*\
    ========= |
    \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
    \\ / O peration | Website: https://openfoam.org
    \\ / A nd | Version: 7
    \\/ M anipulation |
    \*—————————————————————————*/
    Build : 7-1ff648926f77
    Exec : surfaceFeatureExtract
    Date : Feb 15 2022
    Time : 01:51:40
    Host : “tushar-VirtualBox”
    PID : 4412
    I/O : uncollated
    Case : /home/tushar/OpenFOAM/tushar-7/run/cylinder
    nProcs : 1
    sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
    fileModificationChecking : Monitoring run-time modified files using timeStampMaster (fileModificationSkew 10)
    allowSystemOperations : Allowing user-supplied system call operations

    // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
    Create time

    Reading surfaceFeatureExtractDict

    ExecutionTime = 0 s ClockTime = 0 s

    End

    */

    Means it has not generated the e mesh file at the location.

    For reference below is the tree –

    /*
    tushar@tushar-VirtualBox:~/OpenFOAM/tushar-7/run/cylinder$ clear

    tushar@tushar-VirtualBox:~/OpenFOAM/tushar-7/run/cylinder$ ls
    0 Allclean Allrun constant foam.foam system
    tushar@tushar-VirtualBox:~/OpenFOAM/tushar-7/run/cylinder$ cd constant
    tushar@tushar-VirtualBox:~/OpenFOAM/tushar-7/run/cylinder/constant$ ls
    transportProperties triSurface turbulenceProperties
    tushar@tushar-VirtualBox:~/OpenFOAM/tushar-7/run/cylinder/constant$ cd triSurface
    tushar@tushar-VirtualBox:~/OpenFOAM/tushar-7/run/cylinder/constant/triSurface$ ls
    cylinder_geometry.stl
    tushar@tushar-VirtualBox:~/OpenFOAM/tushar-7/run/cylinder/constant/triSurface$ cd ..
    tushar@tushar-VirtualBox:~/OpenFOAM/tushar-7/run/cylinder/constant$ cd ..
    tushar@tushar-VirtualBox:~/OpenFOAM/tushar-7/run/cylinder$ cd system
    tushar@tushar-VirtualBox:~/OpenFOAM/tushar-7/run/cylinder/system$ ls
    blockMeshDict decomposeParDict fvSolution streamLines
    controlDict forceCoeffs meshQualityDict surfaceFeatureExtractDict
    cuttingPlane fvSchemes snappyHexMeshDict
    tushar@tushar-VirtualBox:~/OpenFOAM/tushar-7/run/cylinder/system$
    */

    What should i try in this?

  • Barış Bicer

    Moderator
    February 16, 2022 at 7:46 am

    Hi Tushar,

    Can you share the details inside of surfaceFeatureExtractDict located in /system folder? Open this file with an editor and copy the content here please.

    Thank you.

    Barış

  • tusharpandey1908

    Member
    February 16, 2022 at 12:51 pm

    Hi Baris,

    /*

    /*——————————–*- 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;
    object surfaceFeatureExtractDict;
    }
    // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

    surfaces (“cylinder_geometry.stl”);

    // Identify a feature when angle between faces < includedAngle
    includedAngle 150;

    subsetFeatures
    {
    // Keep nonManifold edges (edges with >2 connected faces)
    nonManifoldEdges no;

    // Keep open edges (edges with 1 connected face)
    openEdges yes;
    }

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

    */

  • Barış Bicer

    Moderator
    February 17, 2022 at 11:37 am

    Hi Tushar,

    I think that you are using foundation variant of OpenFOAM.

    When you run surfaceFeatureExtract command what do you see on terminal window. Could you copy all the info here and let me know please.

    Thank you.

  • tusharpandey1908

    Member
    February 17, 2022 at 12:58 pm

    Hi Baris,

    /*
    tushar@tushar-VirtualBox:~/OpenFOAM/tushar-7/run/cylinder$ surfaceFeatureExtract
    /*—————————————————————————*\
    ========= |
    \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
    \\ / O peration | Website: https://openfoam.org
    \\ / A nd | Version: 7
    \\/ M anipulation |
    \*—————————————————————————*/
    Build : 7-1ff648926f77
    Exec : surfaceFeatureExtract
    Date : Feb 15 2022
    Time : 16:28:13
    Host : “tushar-VirtualBox”
    PID : 2658
    I/O : uncollated
    Case : /home/tushar/OpenFOAM/tushar-7/run/cylinder
    nProcs : 1
    sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
    fileModificationChecking : Monitoring run-time modified files using timeStampMaster (fileModificationSkew 10)
    allowSystemOperations : Allowing user-supplied system call operations

    // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
    Create time

    Reading surfaceFeatureExtractDict

    ExecutionTime = 0 s ClockTime = 0 s

    End
    */

    This appears in screen.

  • Barış Bicer

    Moderator
    February 18, 2022 at 5:40 am

    Hi Tushar,

    I think that it doesnt read .stl file. However, I dont know the reason indeed since it is foundation variant of OpenFOAM.

    I will install this weekend also foundation version and I will try to check the reason ok?

    Best

    Barış

  • tusharpandey1908

    Member
    February 19, 2022 at 4:52 am

    Hi Baris,

    Thanks for this and also please elaborate the difference between foundation and other versions that what issues or points are different in them in next weekend meeting.

    Regards,
    Tushar Pandey

  • Barış Bicer

    Moderator
    February 22, 2022 at 11:14 am

    Hi Tushar,

    I have installed OpenFOAM v9 for you to check why it doesnt work.

    It was too funny that Foundation variants stores all the .obj or .stl files under /constant/geometry folder instead of /constant/triSurface where ESI variants stores those files.

    So please copy “cylinder_geometry.stl” under /constant/geometry folder then change surfaceFeaturedDict file (located under /system) as follows :

    surfaces (“cylinder_geometry.stl”);

    // Identify a feature when angle between faces < includedAngle includedAngle 150; subsetFeatures { // Keep nonManifold edges (edges with >2 connected faces)
    nonManifoldEdges no;

    // Keep open edges (edges with 1 connected face)
    openEdges yes;
    }

    ->Then finally run command : surfaceFeatures

    It will create *eMesh file under /constant/geometry folder

    /motorBike$ ls constant/geometry/
    cylinder_geometry.eMesh motorBike.eMesh README
    cylinder_geometry.stl motorBike.obj.gz

    Yeah different variants have different usage styles 🙂

    Hope this works for you too.

    Best.

    Barış.

Log in to reply.

error: Content is protected !!