ViscousFlow.jl
a framework for simulating viscous incompressible flows
The objective of this package is to allow easy setup and fast simulation of incompressible flows, particularly those past bodies in motion. The package provides tools for
- constructing grids and body shapes,
- specifying the relevant parameters and setting their values,
- solving the problem, and finally,
- visualizing and analyzing the results.
The underlying grids are uniform and Cartesian, making use of the CartesianGrids package. This package allows the use of the lattice Green's function (LGF) for inverting the Poisson equation; the diffusion operators are solved with the integrating factor (Liska and Colonius [2]). Many of the core aspects of the fluid-body interaction are based on the Method of Immersed Layers [1], ImmersedLayers, which is an extension of the immersed boundary projection method [3]. The solver is implemented with the ConstrainedSystems package. Tools for creating bodies and their motions are based on the RigidBodyTools package.
Installation
This package works on Julia 1.4
and above and is registered in the general Julia registry. To install from the REPL, type e.g.,
] add ViscousFlow
Then, in any version, type
julia> using ViscousFlow
The plots in this documentation are generated using Plots.jl. You might want to install that, too, to follow the examples.
References
- 1Eldredge, J. D. (2022) "A method of immersed layers on Cartesian grids, with application to incompressible flows," Journal of Computational Physics 448: 110716.
- 2Liska, S. and Colonius, T. (2017) "A fast immersed boundary method for external incompressible viscous flows using lattice Green's functions," J. Comput. Phys., 331, 257–279.
- 3Taira, K. and Colonius, T. (2007) "The immersed boundary method: a projection approach," J. Comput. Phys., 225, 2118–2137.