Calculate surface force using ParaView

Let say you run a time consuming simulation and unfortunately you forgot to include force calculation in controlDict and you don't want to run the simulation again. Don't worry this tutorial will show you how to calculate the pressure force on the desired boundary surfaces.

This tutorial using openFoam data from the simulation of Floating Sphere.

Open the simulation data with ParaView by command paraFoam in the terminal

  1. Calculate normal vector on surface by Filter/Alphabetical/Generate Surface Normal
  2. Calculate pressure *Normal vector of surface on each cell using Calculator ( can be found either in Filter/Data Analysis/Calculator or Filter/Alphabetical/Calculator or toolbar )
  3. Summarise all force in element buy Integrate Variable ( can be found in Filter/Alphabetical/Integrate Variable)

Read the detail instrcution here

Detail_instruction_to_calculate_TotalPressureForce.docx

Download the case and run it yourself. Contact me if you need help and remember to buy me a coffee!

Home

Source & Installation

Mesh & Geometry

Cases & Projects

Programming & Codes

Coupling