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 423
    • Issues 423
    • 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
  • #1875
Closed
Open
Issue created Oct 09, 2020 by Kutalmış Berçin@kutiMaintainer

BUG: forces FO: adds forces and moments beyond binMax to the last bin

Summary

In forces FO, when binData == true with a user-defined binMax, forces and moment estimations for the patch region outside the bin are added into the last bin if binMax is less than the extent of a given patch in the binning direction.

For example, in the following sketch, the forces and moments outside the linear bin are added into the bin-3.

image

The error arises from the applyBins func:

            ...
            const scalarField dd((d & binDir_) - binMin_);

            forAll(dd, i)
            {
                label bini = min(max(floor(dd[i]/binDx_), 0), force_[0].size() - 1); // PROBLEM

                force_[0][bini] += fN[i];
                ...

Environment information

  • OpenFOAM version : 73057447
Edited Oct 09, 2020 by Kutalmış Berçin
Assignee
Assign to
Time tracking