Convergence issues

85 views
Skip to first unread message

Symphony Chakraborty

unread,
Mar 17, 2026, 4:42:51 AMMar 17
to basilisk-fr
Dear Everyone,

I'm trying to achieve grid independence. For the first test, I ran my existing simulation with maxlevel = 8. For the second test, I set maxlevel = 7, which was running fine. For the third test, I set maxlevel = 9.  
Then the problem appears, and warnings are shown: src/poisson.h:219: warning: convergence for u.x not reached after 200 iterations
  res: 0.00616655 sum: -130.135 nrelax: 100 tolerance: 0.0001
src/poisson.h:219: warning: convergence for u.x not reached after 200 iterations
  res: 0.00175725 sum: 71.4775 nrelax: 100 tolerance: 0.0001

I have increased NITERMAX from 100 to 200 and mgp.nrelax from 200 to 300, but the warnings still appear at the same simulation time. 
Could you please suggest something that will help me remove these warnings so the simulation smoothly converges? Please have a look at my simulation code attached to this email.

With best regards,
Symphony
3dm.c

Shyam Sunder Yadav

unread,
Mar 17, 2026, 5:03:37 AMMar 17
to Symphony Chakraborty, basilisk-fr
Dear Symphony

Try reducing the time step...

Does the code runs at time step of 1e-7?

Are you getting divergence when the time step starts increasing after the time instant of 1e-4?

Best wishes

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

--
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/5528685d-7d08-4671-8bd1-fcfe2c3d912cn%40googlegroups.com.

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.

Symphony Chakraborty

unread,
Mar 17, 2026, 5:43:51 AMMar 17
to Shyam Sunder Yadav, basilisk-fr
Dear Shyam,

The code runs with a time step of 1e-6 and diverges when the time step reaches t = 1.01e-2.

Best regards,
Symphony
--

Dr Symphony Chakraborty, 

Post Doctoral Fellow,
Advanced Thermal Science and Flow Control Lab,
Institute of Applied Mechanics,
National Taiwan University, 


Shyam Sunder Yadav

unread,
Mar 17, 2026, 5:50:44 AMMar 17
to Symphony Chakraborty, basilisk-fr
Symphony the high density ratio, high surface tension combined with a small Delta at level 9 may be violating stability criterion.

The drop may be touching the embedded boundary at the mentioned time instant of 1.01e-2. High velocities may be generating at that instant leading to convergence failure...

Try with a small time step of 1.0e-7 (or even smaller) when the simulation time t is between, say, 1.0e-2 and 1.02e-2.

Another option is to use higher viscosity in cells next to the embedded boundary...

You can also try reducing the surface tension and density ratio...

Best wishes 



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

On Tue, 17 Mar, 2026, 3:01 pm Symphony Chakraborty, <symphony.c...@gmail.com> wrote:
Dear Shyam,

The code runs with a time step of 1e-6 and diverges when the time step reaches t = 1.01e-2.

Best regards,
Symphony

On Tue, Mar 17, 2026 at 5:03 PM Shyam Sunder Yadav <ss.y...@pilani.bits-pilani.ac.in> wrote:
--

Dr Symphony Chakraborty, 

Post Doctoral Fellow,
Advanced Thermal Science and Flow Control Lab,
Institute of Applied Mechanics,
National Taiwan University, 


Symphony Chakraborty

unread,
Mar 18, 2026, 9:20:24 AMMar 18
to Shyam Sunder Yadav, basilisk-fr
Thank you, Shyam!
I will check it out.

Best regards,
Symphony

Reply all
Reply to author
Forward
0 new messages