Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • openfoam openfoam
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 426
    • Issues 426
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 9
    • Merge requests 9
  • Deployments
    • Deployments
    • Releases
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Development
  • openfoamopenfoam
  • Issues
  • #2127
Closed
Open
Issue created Jun 17, 2021 by Mattijs Janssens@MattijsMaintainer

rigidBodyMeshMotion accesses CofG even if CofG object not specified

Summary

rigidBodyMeshMotion saves the CofG of even if not needed. This causes problems whilst checking for whether the body supplying the CofG is actually valid.

Steps to reproduce

multiphase/overInterDyMFoam/boatAndPropeller tutorial

What is the current bug behaviour?

Out-of-bounds access if bodyId of CofG is negative.

Environment information

  • OpenFOAM version : v2103

Possible fixes

do not access rigidBodyMeshMotion::bodyIdCofG_ unless needed.

@Sergio

Assignee
Assign to
Time tracking