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

How to compute forces properly in axisymmetric case?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 13, 2024, 10:30
Default How to compute forces properly in axisymmetric case?
  #1
New Member
 
Vadim Mikhailov
Join Date: Nov 2023
Posts: 8
Rep Power: 3
sabbraxcaddabra is on a distinguished road
Hello everyone!

My problem is: in axisymmetric case (zero AoA) there x-axis is axis of symmetry I have a very small drag force and some lift force that is unreallistic (axisymmetric body with zero AoA dont have lift force).

I guess that problem in how OF intergate pressure and stress over the body surface, but may there are correct solution for that case&
sabbraxcaddabra is offline   Reply With Quote

Old   August 13, 2024, 12:24
Default
  #2
Senior Member
 
Yann
Join Date: Apr 2012
Location: France
Posts: 1,200
Rep Power: 28
Yann will become famous soon enough
Hello Vadim,

It would probably be useful to see how you defined your forces function in order to see what could be wrong.
Yann is offline   Reply With Quote

Old   August 14, 2024, 07:11
Default
  #3
New Member
 
Vadim Mikhailov
Join Date: Nov 2023
Posts: 8
Rep Power: 3
sabbraxcaddabra is on a distinguished road
Thank you for your reply

This is my forces file code
Code:
#includeEtc "caseDicts/postProcessing/forces/forces.cfg"

patches     (body); // Names of patches on which to calculate forces

CofR        (0 0 0);         // Centre of rotation; e.g., (0 0 0)
sabbraxcaddabra is offline   Reply With Quote

Old   August 15, 2024, 06:00
Default
  #4
Senior Member
 
Yann
Join Date: Apr 2012
Location: France
Posts: 1,200
Rep Power: 28
Yann will become famous soon enough
I'm surprised it runs as it is.
Which OpenFOAM version are you using ? And which solver?

This line:

Code:
#includeEtc "caseDicts/postProcessing/forces/forces.cfg"
Is pointing to a configuration file in the OpenFOAM installation directory.

You may want to check which settings are used there, or define the whole function by yourself to be sure all parameters are set properly for your case (density, coordinate system...)
Yann is offline   Reply With Quote

Old   August 19, 2024, 03:21
Default
  #5
New Member
 
Vadim Mikhailov
Join Date: Nov 2023
Posts: 8
Rep Power: 3
sabbraxcaddabra is on a distinguished road
Im using OpenFOAM-v2312 and rhoPimpleFoam solver
And this is forces.cfg file code
Code:
type            forces;
libs            ("libforces.so");

// How often force and moment volume fields will be written
writeControl    writeTime; // none

// How often the forces force.dat and moment.dat data files are updated
// Note: .dat files are always updated on writeControl times
executeControl  timeStep;
executeInterval 1;

log             off;
sabbraxcaddabra is offline   Reply With Quote

Old   August 19, 2024, 04:21
Default
  #6
Senior Member
 
Yann
Join Date: Apr 2012
Location: France
Posts: 1,200
Rep Power: 28
Yann will become famous soon enough
You can have a look here for a more complete description of the function: https://develop.openfoam.com/Develop...orces/forces.H

What coordinate system are you using in your case?
Yann is offline   Reply With Quote

Reply

Tags
forces, lift and drag calculation


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 when trying to compute forces Jahir OpenFOAM Post-Processing 0 July 31, 2024 01:33
Residuals and forces spiraling out of control before failing edomalley1 OpenFOAM Running, Solving & CFD 3 September 7, 2018 11:42
Forces on wall in unsteady case sondinho FLUENT 4 December 8, 2012 08:55
Free surface boudary conditions with SOLA-VOF Fan Main CFD Forum 10 September 9, 2006 13:24
B C for 2D axisymmetric FV case Amith Main CFD Forum 7 June 20, 2002 19:06


All times are GMT -4. The time now is 22:49.