Skip to content

Tutorial Case: Perpendicular Flap FSI case - Coupling solids4Foam with OpenFoam using OpenFoam Adapter #292

@raynoldtan

Description

@raynoldtan
  • Tutorials state (last commit / release): Perpendicular Flap case inside the develop branch
  • Versions of solvers and adapters used: OpenFoam V2012, Develop branch of the OpenFoam Adapter, NextRelease Branch of Solids4Foam
  • preCICE version: 2.4
  • Log files:
[0]PETSC ERROR: ------------------------------------------------------------------------
[0]PETSC ERROR: Caught signal number 11 SEGV: Segmentation Violation, probably memory access out of range
[0]PETSC ERROR: Try option -start_in_debugger or -on_error_attach_debugger
[0]PETSC ERROR: or see https://petsc.org/release/faq/#valgrind
[0]PETSC ERROR: or try http://valgrind.org on GNU/linux and Apple MacOS to find memory corruption errors
[0]PETSC ERROR: configure using --with-debugging=yes, recompile, link, and run 
[0]PETSC ERROR: to get more information on the crash.
[0]PETSC ERROR: User provided function() at unknown file:0  
--------------------------------------------------------------------------
MPI_ABORT was invoked on rank 0 in communicator MPI_COMM_WORLD
with errorcode 59.

Recently, I was trying to run the Perpendicular Flap FSI case on my linux workstation using openFoam v2012 as the fluid solver and solids4Foam, nextRelease branch as the solid solver. The OS used is Ubuntu 20.04 with gcc 9.4. The eigen library used is version 3.40. Precise was installed using spack with [email protected]. Solids4Foam was installed using the same eigen library. In order to ensure that is the case, I have set the environment variable as:

export EIGEN_DIR=/home/raynoldtan/spack/opt/spack/linux-ubuntu20.04-cascadelake/gcc-9.4.0/eigen-3.4.0-4k2lkyslxqecxkljs4yh6t7rcbrsvh7d/include/eigen3

before compiling solids4Foam. After compilation, I checked that the directory of ThirdParty inside solid4Foam folder is as:

Screenshot 2022-09-08 at 10 44 11

Despite using the same eigen library from spack which was used to install precice 2.4, there was the error above. I have run gdb debugger to check the source of the error and where it is coming. Attached is the screenshot.

Screenshot 2022-09-08 at 11 50 06

Please advise how to resolve this.

Thank you
Raynold

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions