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

OF-9: extracting forces and momenta

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 6, 2021, 05:07
Default OF-9: extracting forces and momenta
  #1
New Member
 
Dario
Join Date: Sep 2021
Location: Italy
Posts: 6
Rep Power: 5
DarioP is on a distinguished road
I struggled on this, with bits of (outdated) information scattered all over the place, so here is a brief tutorial, any comment, correction, improvement is welcome!

In OpenFOAM v9 let's consider tutorials/compressible/rhoPimpleFoam/RAS/mixerVessel2D.
There we have the following geometry where the rotation of central region is modeled according to MRF approach (but AMI would be the same for our sake).



The question is: what would be the momentum required to sustain the rotation of the stirrer at the specified velocity?

To get that we need to add the following lines in system/controlDict
Code:
functions
{
    forces
    {
         type forces;
         libs ("libforces.so");
         patches (rotor);
         CofR (0 0 0);
         executeControl adjustableRunTime;
         executeInterval 0.01;
         writeControl adjustableRunTime;
         writeInterval 0.01;
    }
};
The results get written in the postProcessing folder while the solver runs.
Attached Images
File Type: png Screenshot from 2021-10-06 09-52-10.png (40.6 KB, 54 views)
DarioP is offline   Reply With Quote

Reply

Tags
forces, momentum, mrf, openfoam 9


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



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