This result control item allows calculating forces and moments in the course of the simulation by integrating the pressure and skin-friction over a boundary. It is possible to select a set of boundaries to calculate the overall force and moment on them.
It can be added under “Result Control” in the simulation setup tree entry.
The figure below shows a sample setting where the forces and moments are calculated on the face group named ‘cylinder’:
Values of force and moment are printed in the simulation log and their plots are available at the end of the simulation along with other results in the “Post-processor” tab.
The figure below shows a sample plot of Pressure forces on the body in X- direction:
Multiphase flow simulation, as the name suggests, models two fluids of different densities and their interaction with each other in the flow domain. This is done through a phase fraction variable ϕ
$\varphi $that takes a value of 0
$0$for one fluid and 1
$1$for the other. Depending on the case, one might be interested in computing the cumulative force of both or only one of the fluids on the object they interact with. For example, in the simulation of a boat sailing on a water surface represented by the following figure, one could calculate the net drag force on the boat due to both water and air, or only one of them.
In order to post-process your results locally, ParaView should be installed on your system. Depending on your operating system, the appropriate version of ParaView can be downloaded from here.
Step 1: Download and open the results
Once a simulation is completed on the SimScale platform, the results can be downloaded to your local system. See the Post-processing via 3rd-party solution for a detailed description of how this can be done.
By default, ParaView loads the entire data set. However, the interest now lies only on computing the forces on certain specific faces of the body. Therefore, before opening the case, please make a list of these faces.
Step 3: Calculate the forces
In Step 2, we computed the normals on the faces of interest. These normals are scaled according to the area of the respective faces. Since we already have the pressure data on these faces, we can now easily compute the net force on each face.
Click on Filters–Calculator. A new object Calculator1 is created in the pipeline.
If need be, change the Result Array Name to something relevant, such as ‘Forces’.
Force is computed as prgh.n
${p}_{rgh}.n$, where prgh
${p}_{rgh}$is the static pressure, and n
$n$is the surface normal. Depending on what you want to calculate:
For total force, due to both phases, enter ” p_rgh * Normals ” in the text box below.
For force due to only one phase, enter
- ” p_rgh * Normals * alpha.phase1 ” for the phase which corresponds to ϕ=1
$\varphi =1$
.
- ” p_rgh * Normals * (1 – alpha.phase1) ” for the phase which corresponds to ϕ=0
$\varphi =0$
.
Click on Apply. The force value is now available for each face.
NOTE: The reason why density is not required as input is because we already know the static pressure. Therefore, simply multiplying with the area is sufficient to compute the force.
Step 4: Integrate the force over the faces
The result of Step 3 is local to each face; in order to get the net force on all faces, this result needs to be integrated.
A spreadsheet view opens up. The Forces tab displays the net force value (in N
$N$) in the three coordinate directions.