Wiki
Clone wikiug3 / Home
Welcome to the UG3 code website
UG3 is a parallel 3-D finite volume code for compressible flows on unstructured grids. It solves compressible Euler and Navier-Stokes equations. The code is written in simple modern Fortran. Parallelization is achieved using PETSc data structures. Our goal is to write an efficient code that can be used to build an efficient adjoint solver using automatic differentiation.
Access to UG3 is restricted. If you have access to it, you can read the code here or clone it to your computer
git clone git@bitbucket.org:cpraveen/ug3.git
git clone https://bitbucket.org/cpraveen/ug3.git
To make use of ug3, you will need
Note: The code in directory src_ser
is the serial code which is no longer updated. Use the parallel version of the code in src_mpi
which can also run on a single processor.
UG3 features
The current features of the code are:
- 2/3-d compressible Euler and Navier-Stokes equations
- Unstructured grids containing tetrahedra, pyramid, prism and hexahedra
- Vertex-centered finite volume scheme
- Numerical fluxes: Rusanov, HLLC, Roe, KEPEC
- Second order by MUSCL approach for inviscid fluxes
- Compact discretization of diffusive fluxes
- Explicit time stepping: SSPRK3, SSPRK43, Petsc TS (adaptive time stepping)
- Parallelization using Metis, MPI and PETSc
- Visualization using VTK, HDF5+XDMF
Future development will include the following
- LES models
- Spalart-Allmaras turbulence model
- Implicit time integration
- Adjoint solver using automatic differentiation
Roadmap for code development
- Grid preprocessor for serial computations (completed)
- Serial, explicit code for Euler on hybrid grids (completed)
- Parallel, explicit Euler code using PETSc (completed)
- Grid preprocessor for parallel computations (completed)
- Laminar Navier-Stokes equation (completed)
- LES models
- RANS with Spalart-Allmaras model
- Implicit time integration schemes using PETSc
Documentation
- Numerical scheme
- Grid preprocessor
- Running the code
- Discussion group
- Coding style guide
- Trouble shooting
Examples
2-D, Inviscid
- Isentropic vortex
- NACA0012 airfoil
- Cylinder
3-D, Inviscid
- Onera M6 wing
- RAE A plane
- YF17 fighter plane
Team
- Ashish Bhole
- Praveen Chandrashekar
- Deep Ray
- Deepak Varma
If you are interested to contribute, contact the code developer by email.
Updated