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

Implementing a dynamic retention force in interFoam

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   February 21, 2013, 12:28
Default Implementing a dynamic retention force in interFoam
  #1
New Member
 
Moritz
Join Date: Feb 2013
Posts: 4
Rep Power: 3
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 11:26.
u2947 is offline   Reply With Quote

Old   February 25, 2013, 12:01
Default
  #2
New Member
 
Moritz
Join Date: Feb 2013
Posts: 4
Rep Power: 3
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, 10:14
Default Solved
  #3
New Member
 
Moritz
Join Date: Feb 2013
Posts: 4
Rep Power: 3
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

Variation of gravity with time

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, 5 views)
u2947 is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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 On
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 8 July 3, 2014 11:54
interFoam with dynamic contact angle: distorted interface michielm OpenFOAM Running, Solving & CFD 4 December 20, 2012 08:54
how to calculate force with dynamic pressure T.Matrix OpenFOAM Post-Processing 0 October 14, 2012 01:39
Force can not converge colopolo CFX 13 October 4, 2011 23:03
Theoretical background of formula for dynamic contact angle in interfoam sebastian_vogl OpenFOAM Running, Solving & CFD 3 June 22, 2009 13:25


All times are GMT -4. The time now is 10:37.