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

Implementing a dynamic retention force in interFoam

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 21, 2013, 11:28
Default Implementing a dynamic retention force in interFoam
  #1
New Member
 
Moritz
Join Date: Feb 2013
Posts: 4
Rep Power: 13
u2947 is on a distinguished road
Hello Everybody,

I'm new to OpenFOAM and need your help. I have read the user guide and part of the programmers guide, and experimented a little with the tutorials, but that is about as far as I have come so far. Also I should add that my knowledge of C++ is limited and a bit rusty. I have searched the forum and elsewhere but could not find anything relating to my problem.

I am simulating airflow through a straight 2D (for now) channel of 1cm height and 20 cm length and the interaction of the flow with a water droplet in the middle of the channel. I modified the DamBreak tutorial and after some initial difficulties got it to to work so that the droplet is set in motion by the airstream and is eventually pushed out of the channel.

What i want to do now is to introduce a holding/retention force acting on the droplet which is dynamically adjusted during the simulation so that the droplet stays in the middle of the channel regardless of the velocity of the air. The goal is to get a single force value for each air velocity value, and then use these values to calculate the drag force coefficient. Unfortunately, I have no idea how to go about this. I would appreciate any suggestions!

Thanks in advance

Moritz

Last edited by u2947; February 25, 2013 at 10:26.
u2947 is offline   Reply With Quote

Old   February 25, 2013, 11:01
Default
  #2
New Member
 
Moritz
Join Date: Feb 2013
Posts: 4
Rep Power: 13
u2947 is on a distinguished road
Would it maybe be possible as a first step to use the gravitational force in the way i described above? It would affect the water drop while the effect on the air should be negligible. Is it possible to alter gravity while a simulation is running?
u2947 is offline   Reply With Quote

Old   June 17, 2013, 09:14
Default Solved
  #3
New Member
 
Moritz
Join Date: Feb 2013
Posts: 4
Rep Power: 13
u2947 is on a distinguished road
I found a solution that works for me. Basically I was able to modify the code proposed in this thread

http://www.cfd-online.com/Forums/ope...ty-time-2.html

so that now g is independent of time but dependent on the position of the droplet. I'll enclose the (very simple) piece of code I first tried out as an example. I'm sorry it didn't occur to me to post this earlier, but apparently this topic isn't of interest to anyone anyhow, so I guess it doesn't matter.
Attached Files
File Type: c new_interFoam_simple_control.C (5.3 KB, 10 views)
u2947 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
ActuatorDiskExplicitForce in OF2.1. Help be_inspired OpenFOAM Programming & Development 10 September 14, 2018 11:12
interFoam with dynamic contact angle: distorted interface michielm OpenFOAM Running, Solving & CFD 4 December 20, 2012 07:54
how to calculate force with dynamic pressure T.Matrix OpenFOAM Post-Processing 0 October 14, 2012 00:39
Force can not converge colopolo CFX 13 October 4, 2011 22:03
Theoretical background of formula for dynamic contact angle in interfoam sebastian_vogl OpenFOAM Running, Solving & CFD 3 June 22, 2009 12:25


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