<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Julia on Jorgen Wu</title><link>https://wujorgen.github.io/tags/julia/</link><description>Recent content in Julia on Jorgen Wu</description><generator>Hugo</generator><language>en</language><lastBuildDate>Sat, 13 Jun 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://wujorgen.github.io/tags/julia/index.xml" rel="self" type="application/rss+xml"/><item><title>Staggered Grid</title><link>https://wujorgen.github.io/posts/staggered-grid/</link><pubDate>Sat, 13 Jun 2026 00:00:00 +0000</pubDate><guid>https://wujorgen.github.io/posts/staggered-grid/</guid><description>&lt;p&gt;In a previous &lt;a href="https://wujorgen.github.io/posts/streamfunction-vorticity/" &gt;post&lt;/a&gt;, the vorticity-streamfunction formulation of the Navier-Stokes equations was used to simulate flow over a backwards facing step.
This post will simulate flow over the backwards facing step using the primitive variable approach and a staggered grid.&lt;/p&gt;
&lt;p&gt;To briefly summarize, a key advantage of the streamfunction-vorticity approach is that there is no pressure-velocity coupling.
This is because there is no pressure term in the vorticity transport equation.
However, treatment of boundary conditions is slightly more difficult as values for the streamfunction must also be calculated.&lt;/p&gt;</description></item><item><title>Streamfunction Vorticity</title><link>https://wujorgen.github.io/posts/streamfunction-vorticity/</link><pubDate>Mon, 08 Jun 2026 23:20:42 -0400</pubDate><guid>https://wujorgen.github.io/posts/streamfunction-vorticity/</guid><description>&lt;p&gt;The following post details a code I wrote as part of a CFD course.
It simulates flow over a backwards-facing step using the vorticity-streamfunction formulation.
Specifically, the assignment was to replicate the results from Roache and Mueller&amp;rsquo;s 1970 paper &amp;ldquo;Numerical Solutions of Laminar Separated Flows&amp;rdquo;.&lt;/p&gt;
&lt;h1 id="vorticity-streamfunction--solution-procedure"&gt;
 Vorticity-Streamfunction &amp;amp; Solution Procedure
 &lt;a class="heading-link" href="#vorticity-streamfunction--solution-procedure"&gt;
 &lt;i class="fa-solid fa-link" aria-hidden="true" title="Link to heading"&gt;&lt;/i&gt;
 &lt;span class="sr-only"&gt;Link to heading&lt;/span&gt;
 &lt;/a&gt;
&lt;/h1&gt;
&lt;p&gt;The streamfunction $\psi$ is defined as:
$$
u = \frac{\partial \psi}{\partial y}, \quad v = -\frac{\partial \psi}{\partial x}
$$&lt;/p&gt;</description></item></channel></rss>