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

What is the formula for the frictional drag force in the "force" function?

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By fish man

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 1, 2024, 00:19
Post What is the formula for the frictional drag force in the "force" function?
  #1
New Member
 
Join Date: Nov 2022
Posts: 11
Rep Power: 4
fish man is on a distinguished road
We use OpenFOAM v1806.
The "force" function is used to calculate the force.
When performing the "force" function, what is the equation used to determine the frictional drag force?
fish man is offline   Reply With Quote

Old   August 2, 2024, 13:43
Default
  #2
Senior Member
 
Join Date: Apr 2020
Location: UK
Posts: 736
Rep Power: 14
Tobermory will become famous soon enough
Check member function calcForcesMoments() in forces.C (https://www.openfoam.com/documentati...8C_source.html) ... it's all in there.
Tobermory is offline   Reply With Quote

Old   August 2, 2024, 21:33
Question
  #3
New Member
 
Join Date: Nov 2022
Posts: 11
Rep Power: 4
fish man is on a distinguished road
Thank you.
I have done the analysis with a laminar flow model.
Does the equation for viscous drag then depend on line 253 of force.c?
fish man is offline   Reply With Quote

Old   August 3, 2024, 09:53
Default
  #4
Senior Member
 
Join Date: Apr 2020
Location: UK
Posts: 736
Rep Power: 14
Tobermory will become famous soon enough
Very close - it's the section before that is used when a laminar turbulence model is selected:
Code:
    else if (foundObject<transportModel>("transportProperties"))
    {
        const auto& laminarT =
            lookupObject<transportModel>("transportProperties");
 
        const auto& U = lookupObject<volVectorField>(UName_);
 
        return -rho()*laminarT.nu()*dev(twoSymm(fvc::grad(U)));
... i.e. line 242 (same expression though!). This calculates the viscous stress, and then this is dot producted with the boundary face area vector on line 721:

Code:
const vectorField fV(Sfb[patchi] & devRhoReffb[patchi]);
to give the vector force.
Tobermory is offline   Reply With Quote

Old   August 4, 2024, 06:46
Thumbs up
  #5
New Member
 
Join Date: Nov 2022
Posts: 11
Rep Power: 4
fish man is on a distinguished road
Thank you very much.
I now have a better understanding of "force.c".
Tobermory likes this.
fish man is offline   Reply With Quote

Reply

Tags
force, openfoam


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
Error in enabling the python wrapper Jinn SU2 Installation 2 April 23, 2022 14:52
[OpenFOAM] Drag Force from Forces Function different from Paraview edomalley1 ParaView 4 December 14, 2018 00:44
udf for compute pressure drag force fatemi Fluent UDF and Scheme Programming 1 January 26, 2018 14:27
Running UDF with Supercomputer roi247 FLUENT 4 October 15, 2015 14:41
[blockMesh] non-orthogonal faces and incorrect orientation? nennbs OpenFOAM Meshing & Mesh Conversion 7 April 17, 2013 06:42


All times are GMT -4. The time now is 19:23.