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 Members List Search Today's Posts Mark Forums Read

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

Reply

Tags
patch, sngrad, swak4foam, viscous force

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 5 April 4, 2020 16:36
createPatch Segmentation Fault (CORE DUMPED) sam.ho OpenFOAM Pre-Processing 2 April 21, 2014 02:01
[Commercial meshers] Using starToFoam clo OpenFOAM Meshing & Mesh Conversion 33 September 26, 2012 04:04
[Other] StarToFoam error Kart OpenFOAM Meshing & Mesh Conversion 1 February 4, 2010 04:38
[Gmsh] Import gmsh msh to Foam adorean OpenFOAM Meshing & Mesh Conversion 24 April 27, 2005 08:19


All times are GMT -4. The time now is 04:25.