CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

Calculate the viscous forces on a patch

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 10, 2021, 04:53
Default Calculate the viscous forces on a patch
  #1
New Member
 
Jinghong Su
Join Date: Mar 2021
Posts: 3
Rep Power: 5
Su JH is on a distinguished road
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.
Su JH is offline   Reply With Quote

Reply

Tags
patch, sngrad, swak4foam, viscous force


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 10:51.