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

Drag and lift calculation in Arbitrary Mesh Interface simulation

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 1 Post By anon_q
  • 1 Post By wyldckat

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 30, 2018, 17:27
Default Drag and lift calculation in Arbitrary Mesh Interface simulation
  #1
Senior Member
 
Join Date: Mar 2018
Posts: 115
Rep Power: 8
anon_q is on a distinguished road
Hello everyone, I have a simple question about lift and drag calculation in OpenFOAM. Obviously, in a simulation with no moving mesh it is straightforward to specify LiftDir and DragDir (lift direction vector and drag direction vector, respectively). But in case of sliding mesh, that is, those directions are changing with respect to time, so How can we specify the lift and drag directions in this case?

Update: I want to clarify the question because someone got it wrong. What I mean exactly is: in case of say rotating airfoil about some axis, horizontal axis wind turbine, vertical axis wind turbine ...etc) obviously the body is moving so in this case how to specify the lift and drag directions?
Metikurke likes this.

Last edited by anon_q; April 20, 2018 at 17:31.
anon_q is offline   Reply With Quote

Old   March 31, 2018, 00:51
Default
  #2
Senior Member
 
piu58's Avatar
 
Uwe Pilz
Join Date: Feb 2017
Location: Leipzig, Germany
Posts: 744
Rep Power: 15
piu58 is on a distinguished road
Quote:
Originally Posted by Evren Linda View Post
Hello everyone, I have a simple question about lift and drag calculation in OpenFOAM. Obviously, in a simulation with no moving mesh it is straightforward to specify LiftDir and DragDir (lift direction vector and drag direction vector, respectively). But in case of sliding mesh, that is, those directions are changing with respect to time, so How can we specify the lift and drag directions in this case?
The direction of the force has nothing to do with the mesh. You may give it with respect to your body (which is a solid one, I assume) or with respect to the external flow.
__________________
Uwe Pilz
--
Die der Hauptbewegung überlagerte Schwankungsbewegung ist in ihren Einzelheiten so hoffnungslos kompliziert, daß ihre theoretische Berechnung aussichtslos erscheint. (Hermann Schlichting, 1950)
piu58 is offline   Reply With Quote

Old   March 31, 2018, 07:29
Default
  #3
Senior Member
 
Join Date: Mar 2018
Posts: 115
Rep Power: 8
anon_q is on a distinguished road
No please I guess you can understand what I mean. Of course I mean a body within a dynamic mesh (rotation, oscillation,...etc). In my example I've a rotating airfoil about some axis. Can you imagine lift and drag for no object??!!!

Last edited by anon_q; April 20, 2018 at 17:27.
anon_q is offline   Reply With Quote

Old   April 20, 2018, 17:30
Default
  #4
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,978
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Greetings to all,

I've arrived at this thread, coming from here: https://github.com/blueCFD/Core/issues/98 - from which the following additional questions+information are relevant:
Quote:
If a have a simulation with dynamic mesh because the body is also moving, How can I set the liftDir and dragDir directions? Can OpenFOAM detect the direction automatically ? or do I need to create some scripts to deal with that (e.g Python)?
OK, if the body is moving with the mesh, and if coding isn't possible, then currently the only possibility is calculate the forces after the simulation is over.

This way it's possible to change the lift and drag directions for each already recorded time step and use a function object entry in accordance to each time step. The annoying part is that the lift and drag directions have to be known for each time step and manually defined...

@Evren, a few questions:
  1. Any chance you know of a tutorial case in OpenFOAM that we can use as an example to test this?
  2. In your case, is the body rigid? Or does its surface also change?
Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   April 20, 2018, 17:39
Default
  #5
Senior Member
 
Join Date: Mar 2018
Posts: 115
Rep Power: 8
anon_q is on a distinguished road
Thank you very much dear Bruno,
For an example let's say we want to calculate force coefficients (Cl, and Cd) for the following simulation of vertical axis wind turbine:
https://www.youtube.com/watch?v=6o4L...ature=youtu.be
The surface is not changing but the mesh is composed of a rotating zone and a fixed zone
anon_q is offline   Reply With Quote

Old   April 20, 2018, 17:42
Default
  #6
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,978
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
So that means that the positions are predefined and can be calculated directly based on the rotation speed?

My concern is if the rotation/movement speed was meant to change with the flow itself...
wyldckat is offline   Reply With Quote

Old   April 20, 2018, 17:58
Default
  #7
Senior Member
 
Join Date: Mar 2018
Posts: 115
Rep Power: 8
anon_q is on a distinguished road
In my case the rotation speed is constant, the position of the airfoils as a function of time are known.

Last edited by anon_q; April 22, 2018 at 16:04.
anon_q is offline   Reply With Quote

Old   April 22, 2018, 13:24
Default
  #8
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,978
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quick answer: Unfortunately I didn't have more time beyond the following attached example:
  1. The attached case "movingCone.tar.gz" is based on the tutorial case "incompressible/pimpleDyMFoam/movingCone".
  2. I used OpenFOAM 5.x.
  3. To run the case (after unpacking), simply run:
    Code:
    ./Allrun
  4. The new line of interest for you is that I ran the post-processing step like this:
    Code:
    pimpleDyMFoam -postProcess -dict system/functionsDict
    make sure you update to your own solver, whichever it is (I don't remember and I didn't check).
  5. Study the following two files:
    1. "system/functionsDict" - this has the calculation of "forceCoeffs" for each specific time step.
    2. "system/forceCoeffs" - this file has the common configuration for the object being monitored.
  6. The idea is that you should have one file "system/forceCoeffs" for each blade.
  7. And for each time step, have an entry in "system/functionsDict", where each entry defines a new position and orientation, while including the "system/forceCoeffs" file for each entry.
I will likely only be able to give any additional answers around Thursday (holiday here in Portugal).
Attached Files
File Type: gz movingCone.tar.gz (3.1 KB, 45 views)
anon_q likes this.
wyldckat is offline   Reply With Quote

Reply


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
Calculation of lift and drag coefficients on airfoil CoolHersheys OpenFOAM Post-Processing 5 September 27, 2021 06:04
Lift and drag calculation Franny CFX 16 November 27, 2019 13:47
wrong SU2 calculation for lift and drag coefficient for NAC4421 mechy SU2 7 January 9, 2017 05:18
Calculation of drag and lift coefficient in flow around a semi-cylinder shape Lorenzo C. FLUENT 0 November 18, 2016 13:47
Mesh Grid Study - Result Tolerance - Lift, Drag, Moment. Wingman Main CFD Forum 4 November 14, 2016 16:50


All times are GMT -4. The time now is 20:14.