|
[Sponsors] |
March 10, 2021, 04:53 |
Calculate the viscous forces on a patch
|
#1 |
New Member
Jinghong Su
Join Date: Mar 2021
Posts: 3
Rep Power: 5 |
Hello!
I am using foam-extend-3.2. I want to obtain the forces and moments acting on a spherical particle in the channel flow. The forces and moments will be used to adjust the slip velocity on the particle surface. The forces are calculated by the script below and show to be different from the forces output by the libforces.so. totalForce { type patchExpression; outputControlMode timeStep; enabled true; outputInterval 1; patches ( sphere_region0 // change to your name or names of patch ); verbose true; variables ( "position=0;" "rho=1;" "mu=1.0;" "pressure_forces= rho*p*normal()*area();" "viscous_forces= -mu*snGrad(U)*area();" "forces=pressure_forces+viscous_forces;" ); expression "forces"; accumulations ( sum ); } Thank you in advance. Su Last edited by Su JH; April 3, 2021 at 05:21. |
|
Tags |
patch, sngrad, swak4foam, viscous force |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
The CoP Does not exist: Validating Aerodynamic forces through a "line of action" | ds4719 | Main CFD Forum | 14 | February 18, 2022 19:05 |
createPatch Segmentation Fault (CORE DUMPED) | sam.ho | OpenFOAM Pre-Processing | 2 | April 21, 2014 03:01 |
[Commercial meshers] Using starToFoam | clo | OpenFOAM Meshing & Mesh Conversion | 33 | September 26, 2012 05:04 |
[Other] StarToFoam error | Kart | OpenFOAM Meshing & Mesh Conversion | 1 | February 4, 2010 05:38 |
[Gmsh] Import gmsh msh to Foam | adorean | OpenFOAM Meshing & Mesh Conversion | 24 | April 27, 2005 09:19 |