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 424
    • Issues 424
    • 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
  • #1380
Closed
Open
Issue created Jul 21, 2019 by Admin@OpenFOAM-adminMaintainer

Simplify output of the forces functionObject

Functionality to add/problem to solve

The output produced by the forces function object is much more complex than what it could be. For each time step the output line is as

0.65004 \t(4.966426e-01 1.252274e+00 -3.007485e-04)\t(4.246068e-01 1.273820e+00 2.141011e-17)\t(7.203576e-02 -2.154636e-02 -3.007485e-04) Here \t is a tab. Also, two separate files are created, one for the forces and one for the moments.

Proposal

Simply having 10 values separated by spaces or tabs (consistently!) would make it much easier to open the text file with e.g. numpy or pandas, without sacrificing much. Combining both forces and moments into single file is also reasonable. A switch could be added to allow falling back to the old output format.

## Reattaching the author to the issue ticket: @timofeymukha ##

Edited Dec 11, 2019 by Kutalmış Berçin
Assignee
Assign to
Time tracking