Regarding solver in diffusion.h

39 views
Skip to first unread message

Shyam Sunder Yadav

unread,
Aug 8, 2026, 3:17:46 AM (7 days ago) Aug 8
to basilisk-fr
Dear All

I was solving the energy equation in terms of temperature using the diffusion routine in diffusion.h.

During the implicit solution of heat conduction step, if I use theta=rho * Cp and D = thermal conductivity, the solver do not converge.

While if I use theta=1 and D = thermal diffusivity, the solver converges.

Why this difference? Is something wrong with my implementation or is it related to the solution process of multigrids?

Please let me know.

Thank you. Regards

--
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.

Wojciech (Voitek) Aniszewski

unread,
Aug 8, 2026, 4:23:31 AM (7 days ago) Aug 8
to Shyam Sunder Yadav, basilisk-fr

Dear SSY,

we've done a hefty dose of such simulations using diffusion.h. Now, what usually makes it stiff (not divergent, stiffness was a better description of our case) was: 1. often, parameters ended up not well chosen, i.e. in parameter studies we had inputs orders of magnitude off the physical ones, diffusion.h was very sensitive to that; 2. certain grid resolutions. This means that e.g. you can have a stiff solver with octree at maxlevel N, but at N-1 or N+1 (if you can afford it) it's not stiff.

I know this is very empirical, but usually, after making sure all params are physical, convergence was in reach.

kindly

Voitek A.

---
 /^..^\      
( (••) )    Wojciech (vôitek) ANISZEWSKI
(|)_._(|)~  Researcher@ U. Paris-Saclay (EM2C)
OrcId   : https://orcid.org/0000-0002-4248-1194
Scholar : https://tinyurl.com/y28b8gfp

--
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/CA%2BetC8Jn72%3DonTqtCg0OLOfU6rsLCVqjB-ybKUq5%2B%2B%3DCL_B1wg%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages