Numerical shadowgraph

81 views
Skip to first unread message

alexandr...@gmail.com

unread,
May 14, 2025, 7:42:30 AMMay 14
to basilisk-fr
Hello,
I would like to integrate the laplacian of temperature over z : 

Capture d’écran du 2025-05-14 13-31-38.png
foreach()
  shadow[] += ((T[1,0,0] - 2.*T[] + T[-1,0,0])/sq(Delta) + (T[0,1,0] - 2.*T[] + T[0,-1,0])/sq(Delta)) * Delta;

How do I say that I want to integrate only on z with basilisk iterators?
Thank you,
Alexandre

j.a.v...@gmail.com

unread,
May 14, 2025, 2:24:05 PMMay 14
to basilisk-fr
Hallo Alexandre,

You can integrate along a line segment using "foreach_segment()". e.g.,

If you want an "integral field" of some sort, you could look (past all the errors) here,
and notice that the segment integral is likely more robust.

Antoon

Op woensdag 14 mei 2025 om 13:42:30 UTC+2 schreef alexandr...@gmail.com:
Reply all
Reply to author
Forward
0 new messages