Xiangyu-Hu / SPHinXsys

SPHinXsys provides C++ APIs for engineering simulation and optimization. It aims at complex systems driven by fluid, structure, multi-body dynamics and beyond. The multi-physics library is based on a unique and unified computational framework by which strong coupling has been achieved for all involved physics.

Home Page:https://www.sphinxsys.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

A problem about the test example:test_2d_wetting_effects

HXJ111111 opened this issue · comments

There seemed to be a problem with test_2d_wetting_effects: when I ran the original code for the example, everything was fine, and the square droplets were able to evolve stable contact angles(150°).
angle

But once I added gravity to the wetting.cpp file, the square drops just collapsed.
collapse

The only change I made to the code was the addition of gravity, even if the gravity is very small (0.0098), the droplet will still collapse.
change

I made some attempts to solve the problem, but it didn't work out. I would like to know how to deal with this problem.

In this case, no external body forces apply (i.e., no grav-ity) and surface tension is dominating the system. See Ref. https://doi.org/10.1016/j.jcp.2013.02.038

In this case, no external body forces apply (i.e., no grav-ity) and surface tension is dominating the system. See Ref. [https://doi.org/10.1016/j.jcp.2013.02.038 ](https://doi.org/10.1016/j.jcp.2013.02.038)

Thanks for your reply!
If I need to apply external force to a droplet, are there some similar examples in SPHinXsys, or references that can help me?
I would be very grateful if you could give me some suggestions!

In this case, no external body forces apply (i.e., no grav-ity) and surface tension is dominating the system. See Ref. [https://doi.org/10.1016/j.jcp.2013.02.038 ](https://doi.org/10.1016/j.jcp.2013.02.038)

Thanks for your reply! If I need to apply external force to a droplet, are there some similar examples in SPHinXsys, or references that can help me? I would be very grateful if you could give me some suggestions!

Then, you should find a reference, adjust all the parameters properly, not only add the gravity.

In this case, no external body forces apply (i.e., no grav-ity) and surface tension is dominating the system. See Ref. [https://doi.org/10.1016/j.jcp.2013.02.038 ]([https://doi.org/10.1016/j.jcp.2013.02.038 ](https://doi.org/10.1016/j.jcp.2013.02.038))

Thanks for your reply! If I need to apply external force to a droplet, are there some similar examples in SPHinXsys, or references that can help me? I would be very grateful if you could give me some suggestions!

Then, you should find a reference, adjust all the parameters properly, not only add the gravity.

Ok, I will try it according to your suggestion, thank you very much!