gravity defying droplets

25 views
Skip to first unread message

Emily Lane

unread,
3:57 AM (14 hours ago) 3:57 AM
to basil...@googlegroups.com
Hi,
I am having something strange happen with one of my simulations where  a small droplet starts to accelerate unboundedly diagonally upwards contrary to gravity.
I have tried specifying gravity using the reduced or just by specifying the acceleration and the same thing happens in both. It seems to only be when a small droplet goes rogue. I have tried removing the small droplets using the remove droplet command and it slows the onset but doesn't seem to stop it. 
I am wondering whether I have gravity properly specified because the splashes I get seem bigger than I expect too.
A version of the code I am using can be found in http://basilisk.fr/sandbox/Emily/vof/Injection_at_Ramp.c and I am compiling it using  
>> qcc -fopenmp Injection_at_Ramp.c -o Injection_at_Ramp.exe -lm -L. -ldl -lstdc++ -Wall -O2 -lGLU -lOSMesa -lglutils -L$BASILISK/gl -lfb_osmesa 

Plotting the locations of where the maximum speed for the air and the water occur we can see the rogue droplet. The black is the air/water interface. The red dot shows where the maximum speed was at the timestep when the interface was output. You can see there is a small droplet underneath the red cross.
In this version I am removing all but the three largest droplets so it took a while before it went haywire. Without that it goes off far faster.
Any idea why this is happening and more importantly, what I can do to stop it?
Thanks
Emily
image.png

Shyam Sunder Yadav

unread,
4:21 AM (13 hours ago) 4:21 AM
to Emily Lane, basil...@googlegroups.com
Dear Emily

I tried compiling your code, it is asking for waveprobes.h header file which is not on your sandbox.

In the meantime, try adding an acceleration event as follows instead of specifying gravity in the main program

event acceleration (i++) {
  face vector av = a;
  foreach_face(y)
    av.y[] -= 9.81;

This assumes you want to specify gravity along -y direction.

Best wishes

--
You received this message because you are subscribed to the Google Groups "basilisk-fr" group.
To unsubscribe from this group and stop receiving emails from it, send an email to basilisk-fr...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/basilisk-fr/CAAZ%2BRGHbcLE-z2%3DS-veUmfXiayPUUFzjarswuiQjDT15QjfwXw%40mail.gmail.com.


--
Dr. Shyam Sunder Yadav
Associate Professor
Mechanical Engineering
BITS Pilani
09902346342
http://www.bits-pilani.ac.in/pilani/ssyadav/Profile

The information contained in this electronic communication is intended solely for the individual(s) or entity to which it is addressed. It may contain proprietary, confidential and/or legally privileged information. Any review, retransmission, dissemination, printing, copying or other use of, or taking any action in reliance on the contents of this information by person(s) or entities other than the intended recipient is strictly prohibited and may be unlawful. If you have received this communication in error, please notify us by responding to this email or telephone and immediately and permanently delete all copies of this message and any attachments from your system(s). The contents of this message do not necessarily represent the views or policies of BITS Pilani.

Stephane Popinet

unread,
4:23 AM (13 hours ago) 4:23 AM
to basil...@googlegroups.com
Hi Emily,

Did you try with the momentum conserving option?

https://basilisk.fr/src/navier-stokes/conserving.h

Stephane


Reply all
Reply to author
Forward
0 new messages