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

Home Forums OpenFOAM Forum Lesson 21

  • Lesson 21

    Posted by Adityan on April 23, 2022 at 1:36 pm

    Hi Everyone,
    I am currently doing Lesson 21 of running the damBreak case.
    But I am not able to run the case in parallel.

    when I executed blockMesh command, it meshed, but it also showed a warning in the beginning.
    And it went like this.
    // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
    Create time

    Creating block mesh from “system/blockMeshDict”
    Creating block edges
    No non-planar block faces defined
    Creating topology blocks

    Creating topology patches – from boundary section

    Creating block mesh topology – scaling/transform applied later
    –> FOAM Warning :
    From Foam::polyMesh::polyMesh(const Foam::IOobject&, Foam::pointField&&, const cellShapeList&, const faceListList&, const wordList&, const Foam::PtrList<Foam::dictionary>&, const Foam::word&, const Foam::word&, bool)
    in file meshes/polyMesh/polyMeshFromShapeMesh.C at line 920
    Found 10 undefined faces in mesh; adding to default patch defaultFaces

    Check topology

    Basic statistics
    Number of internal faces : 4
    Number of boundary faces : 22
    Number of defined boundary faces : 22
    Number of undefined boundary faces : 0
    Checking patch -> block consistency

    Creating block offsets
    Creating merge list (topological search)…

    Creating polyMesh from blockMesh
    Creating patches
    Creating cells
    Creating points with scale (0.146 0.146 0.146)
    Block 0 cell size :
    i : 0.0126957 .. 0.0126957
    j : 0.00599987 .. 0.00599987
    k : 0.0146 .. 0.0146

    Block 1 cell size :
    i : 0.0141053 .. 0.0141053
    j : 0.00599987 .. 0.00599987
    k : 0.0146 .. 0.0146

    Block 2 cell size :
    i : 0.0126957 .. 0.0126957
    j : 0.0127619 .. 0.0127619
    k : 0.0146 .. 0.0146

    Block 3 cell size :
    i : 0.00599987 .. 0.00599987
    j : 0.0127619 .. 0.0127619
    k : 0.0146 .. 0.0146

    Block 4 cell size :
    i : 0.0141053 .. 0.0141053
    j : 0.0127619 .. 0.0127619
    k : 0.0146 .. 0.0146

    There are no merge patch pairs

    Writing polyMesh with 0 cellZones
    —————-
    Mesh Information
    —————-
    boundingBox: (0 0 0) (0.584 0.584 0.0146)
    nPoints: 4746
    nCells: 2268
    nFaces: 9176
    nInternalFaces: 4432
    —————-
    Patches
    —————-
    patch 0 (start: 4432 size: 50) name: leftWall
    patch 1 (start: 4482 size: 50) name: rightWall
    patch 2 (start: 4532 size: 62) name: lowerWall
    patch 3 (start: 4594 size: 46) name: atmosphere
    patch 4 (start: 4640 size: 4536) name: defaultFaces

    End

    after that I executed the command, setFields.
    There it showed several warnings, instead of an error.
    It went like this:
    // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
    Create time

    Create mesh for time = 0

    Reading setFieldsDict

    Setting field default values
    –> FOAM Warning :
    From bool setCellFieldType(const Foam::word&, const Foam::fvMesh&, const labelList&, Foam::Istream&) [with Type = double; Foam::labelList = Foam::List<int>]
    in file setFields.C at line 125
    Field alpha.water not found

    Setting field region values
    Adding cells with centre within boxes 1((0 0 -1) (0.1461 0.292 1))
    –> FOAM Warning :
    From bool setCellFieldType(const Foam::word&, const Foam::fvMesh&, const labelList&, Foam::Istream&) [with Type = double; Foam::labelList = Foam::List<int>]
    in file setFields.C at line 125
    Field alpha.water not found

    End

    After that I ran the decomposePar command.

    Later I ran the command:
    mpirun -np 4 interFoam -parallel | tee log.interFoam
    But it started showing an Error, and Exited.
    Here is how it went:
    WARNING: Linux kernel CMA support was requested via the
    btl_vader_single_copy_mechanism MCA variable, but CMA support is
    not available due to restrictive ptrace settings.

    The vader shared memory BTL will fall back on another single-copy
    mechanism if one is available. This may result in lower performance.

    Local host: DESKTOP-QJKQ6RU
    ————————————————————————–
    /*—————————————————————————*\
    | ========= | |
    | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
    | \\ / O peration | Version: 2112 |
    | \\ / A nd | Website: http://www.openfoam.com |
    | \\/ M anipulation | |
    \*—————————————————————————*/
    Build : _d44c8318-20220111 OPENFOAM=2112 version=2112
    Arch : “LSB;label=32;scalar=64”
    Exec : interFoam -parallel
    Date : Apr 23 2022
    Time : 18:56:02
    Host : DESKTOP-QJKQ6RU
    PID : 531
    I/O : uncollated
    Case : /home/adityan/OpenFOAM/adityan-v2112/run/damBreak
    nProcs : 4
    Hosts :
    (
    (DESKTOP-QJKQ6RU 4)
    )
    Pstream initialized with:
    floatTransfer : 0
    nProcsSimpleSum : 0
    commsType : nonBlocking
    polling iterations : 0
    trapFpe: Floating point exception trapping enabled (FOAM_SIGFPE).
    fileModificationChecking : Monitoring run-time modified files using timeStampMaster (fileModificationSkew 5, maxFileModificationPolls 20)
    allowSystemOperations : Allowing user-supplied system call operations

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

    Create mesh for time = 0

    PIMPLE: Operating solver in PISO mode

    [0]
    [0]
    [0] –> FOAM FATAL ERROR: (openfoam-Reading field p_rgh

    [2]
    [2]
    [2] –> FOAM FATAL ERROR: (openfoam-2112)
    [2] cannot find file “/home/adityan/OpenFOAM/adityan-v2112/run/damBreak/processor2/0/p_rgh”
    [2]
    [2] From [3]
    [3]
    [3] –> FOAM FATAL ERROR: (openfoam-2112)
    [3] cannot find file “/home/adityan/OpenFOAM/adityan-v2112/run/damBreak/processor3/0/p_rgh”
    ————————————————————————–
    MPI_ABORT was invoked on rank 0 in communicator MPI_COMM_WORLD
    with errorcode 1.

    NOTE: invoking MPI_ABORT causes Open MPI to kill all MPI processes.
    You may or may not see output from other processes, depending on
    exactly when Open MPI kills them.
    ————————————————————————–
    2112)
    [0] cannot find file “/home/adityan/OpenFOAM/adityan-v2112/run/damBreak/processor0/0/p_rgh”
    [0]
    [0] From virtual Foam::autoPtr<Foam::ISstream> Foam::fileOperations::uncollatedFileOperation::readStream(Foam::regIOobject&, const Foam::fileName&, const Foam::word&, bool) const
    [0] in file global/fileOperations/uncollatedFileOperation/uncollatedFileOperation.C at line 542.
    [0]
    FOAM parallel run exiting
    [0]
    [1]
    [1]
    [1] –> FOAM FATAL ERROR: (openfoam-2112)
    [1] cannot find file “/home/adityan/OpenFOAM/adityan-v2112/run/damBreak/processor1/0/p_rgh”
    [1]
    [1] From virtual Foam::autoPtr<Foam::ISstream> Foam::fileOperations::uncollatedFileOperation::readStream(Foam::regIOobject&, const Foam::fileName&, const Foam::word&, bool) const
    [1] in file global/fileOperations/uncollatedFileOperation/uncollatedFileOperation.C at line 542.
    [1]
    FOAM parallel run exiting
    [1]
    [3]
    [3] From virtual Foam::autoPtr<Foam::ISstream> Foam::fileOperations::uncollatedFileOperation::readStream(Foam::regIOobject&, const Foam::fileName&, const Foam::word&, bool) const
    [3] in file global/fileOperations/uncollatedFileOperation/uncollatedFileOperation.C at line 542.
    [3]
    FOAM parallel run exiting
    [3]
    virtual Foam::autoPtr<Foam::ISstream> Foam::fileOperations::uncollatedFileOperation::readStream(Foam::regIOobject&, const Foam::fileName&, const Foam::word&, bool) const
    [2] in file global/fileOperations/uncollatedFileOperation/uncollatedFileOperation.C at line 542.
    [2]
    FOAM parallel run exiting
    [2]
    [DESKTOP-QJKQ6RU:00526] 3 more processes have sent help message help-btl-vader.txt / cma-permission-denied
    [DESKTOP-QJKQ6RU:00526] Set MCA parameter “orte_base_help_aggregate” to 0 to see all help / error messages
    [DESKTOP-QJKQ6RU:00526] 3 more processes have sent help message help-mpi-api.txt / mpi-abort

    What went wrong here?
    And these are the specs of my CPU
    CPU(s): 8
    On-line CPU(s) list: 0-7
    Thread(s) per core: 2
    Core(s) per socket: 4
    Socket(s): 1

    The number of subdomains is 4 for the case.

    Barış Bicer replied 1 year, 12 months ago 3 Members · 5 Replies
  • 5 Replies
  • Adityan

    Member
    April 24, 2022 at 6:21 am

    Hi,
    It worked for Coarse Mesh
    Bu setFields is showing a error when I am trying a fine mesh
    How to solve that problem

  • Adityan

    Member
    April 24, 2022 at 4:56 pm

    Hi,
    It worked now.
    Thanks Alot

  • Barış Bicer

    Moderator
    April 25, 2022 at 10:11 am

    Great Adityan,

    You are going to solve your problems step by step. And also Thank you for replies Krishnendugs.

Log in to reply.

error: Content is protected !!