Skip to content

Scientific Computing Blog (1): Hydrodynamics Code using Julia | Computational Science Blog #3

@utterances-bot

Description

@utterances-bot

Scientific Computing Blog (1): Hydrodynamics Code using Julia | Computational Science Blog

I am a strong proponent of Julia as a programming language for scientific computing. Julia is a new language that is as fast as C/Fortran and as easy to use as Python. In this demonstration, I wrote a one-dimensional hydrodynamics code using the Lax scheme and Euler method. Below is an animation of the gas with a classical initial condition: a Sod shock tube. The simulation, plotting, and animation are all done by a single Julia script which you can download from here. The script is also copied below. From the scripts, you can appreciate the simplicity and cleanness of the syntax.

https://chongchonghe.github.io/computational-science/julia/hydro/2021/11/09/julia-hydro.html

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions