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

Home Forums OpenFOAM Forum Lesson 21 , motorBike parallel run

  • Lesson 21 , motorBike parallel run

    Posted by Raghu Karthik on December 7, 2023 at 1:54 pm

    hi ,
    1) i first copied motorbike case from tutorials then i ran the following.

    cp -r 0.orig/ 0

    mkdir constant/triSurface

    cp $FOAM_TUTORIALS/resourses/geometry/motorBike.obj.gz constant/triSurface/

    gzip -d constant/triSurface/motorBike.obj.gz

    blockMesh

    surfaceFeatureExtract

    snappyHexMesh

    (created decomposeParDict with scotch method with 2 processors)

    decomposePar

    mpirun -np 2 simpleFoam -parallel | tee log. 2CPUs

    2) after decomposePar the walls of motor Bike aren’t visible in paraview. the rest of mesh is there but motorBike is missing. Before decompose Par all mesh is available including motorBike walls.

    3) Also I could not do reconstrucPar after mpirun . Error messege as follows

    ***************************************************************************************************************

    –> FOAM Warning :

    From virtual Foam::polyMesh::readUpdateState Foam::polyMesh::readUpdate()

    in file meshes/polyMesh/polyMeshIO.C at line 210

    Number of patches has changed. This may have unexpected consequences. Proceed with care.

    –> FOAM Warning :

    From int main(int, char**)

    in file reconstructPar.C at line 369

    readUpdate for the reconstructed mesh:3

    readUpdate for the processor meshes :0

    These should be equal or your addressing might be incorrect. Please check your time directories for any mesh directories.

    ***************************************************************************************************************

    4) i could still visualize the fields but there is no motorBike in it. What’s happening here???

    Barış Bicer replied 4 months, 1 week ago 2 Members · 1 Reply
  • 1 Reply
  • Barış Bicer

    Moderator
    December 9, 2023 at 11:34 am

    Hi Karthik,

    I found the problem. you dont have real mesh. When you run snappyHexMesh alone it created 1 2 3 folders where it shows the each stages of snappy process. there are 2 ways here:

    1. you can copy 3/polyMesh folder inside of constant folder

    2. or you can run snappyHexMesh -overwrite option which directly overwrite each step of snappy under constant/polyMesh

    after that you will see and solve your problem.

    for your information.

    Best

Log in to reply.

error: Content is protected !!