AFiD-MuRPhFi
所属分类:游戏引擎
开发工具:Fortran
文件大小:0KB
下载次数:0
上传日期:2023-09-22 13:59:50
上 传 者:
sh-1993
说明: 具有多分辨率和相场实现的高级有限差分流动求解器,
(Advanced Finite Difference flow solver with Multiple Resolution and Phase- Field implementations,)
文件列表:
Makefile (7354, 2023-09-22)
docs/ (0, 2023-09-22)
docs/assets/ (0, 2023-09-22)
docs/assets/1D_DD_analytic.mp4 (110053, 2023-09-22)
docs/assets/AxisymMelting.mp4 (101954, 2023-09-22)
docs/assets/MeltingRBC.mp4 (361778, 2023-09-22)
docs/assets/RBC.mp4 (552822, 2023-09-22)
docs/assets/RBC_Pr10_square.jpg (47920, 2023-09-22)
docs/assets/afid_grid.svg (25279, 2023-09-22)
docs/assets/compiler_scaling.svg (28608, 2023-09-22)
docs/assets/disc_growth_ice.mp4 (277297, 2023-09-22)
docs/assets/favicon.png (47993, 2023-09-22)
docs/assets/radial_PF_param.svg (20600, 2023-09-22)
docs/buoyancy.md (3695, 2023-09-22)
docs/compilers.md (3573, 2023-09-22)
docs/convergence.md (5921, 2023-09-22)
docs/equations.md (12745, 2023-09-22)
docs/examples/ (0, 2023-09-22)
docs/examples/coupled_flows.md (1152, 2023-09-22)
docs/examples/ddc.md (44, 2023-09-22)
docs/examples/rbc.md (3675, 2023-09-22)
docs/examples/stefan.md (11924, 2023-09-22)
docs/figures/ (0, 2023-09-22)
docs/figures/1DFreezing_T_convergence.svg (36692, 2023-09-22)
docs/figures/1DFreezing_convergence.svg (42204, 2023-09-22)
docs/figures/2d_supercool_radius.html (39226, 2023-09-22)
docs/figures/2d_supercool_temperature.html (187137, 2023-09-22)
docs/figures/Nusselt.svg (62505, 2023-09-22)
docs/figures/Reynolds.svg (43499, 2023-09-22)
docs/figures/axisymmetric_melting_radius.html (61042, 2023-09-22)
docs/figures/axisymmetric_melting_temperature.html (250878, 2023-09-22)
docs/figures/freezing_convergence_interface.html (78748, 2023-09-22)
docs/figures/freezing_convergence_temperature.html (993812, 2023-09-22)
docs/figures/melting_RBC_interface_convergence.html (100250, 2023-09-22)
... ...
# AFiD-MuRPhFi
**A**dvanced **Fi**nite **D**ifference flow solver with **Mu**ltiple **R**esolution and **Ph**ase-**Fi**eld implementations
![Build status](https://github.com/chowland/AFiD-MuRPhFi/actions/workflows/CI.yml/badge.svg)
[![Documentation](https://img.shields.io/badge/documentation-in%20progress-blue)](https://chowland.github.io/AFiD-MuRPhFi/)
## Quickstart
AFiD has the following prerequisites that must be installed to compile and run the program:
- A parallel HDF5 library wrapping an MPI implementation and a Fortran 90 compiler
- The numerical LAPACK library (or Intel MKL)
- FFTW3 (*not* the MKL implementation)
On Ubuntu, these prerequisites can be installed using the single line command
```
sudo apt install build-essential gfortran liblapack-dev libhdf5-mpich-dev libfftw3-dev
```
AFiD can then be compiled simply by running `make`.
The [Makefile](./Makefile) contains a `MACHINE` variable and a `FLAVOUR` variable that the user can modify to reflect the libraries installed (e.g. setting `FLAVOUR=Intel` ensures the MKL libraries and Intel compiler options are used).
Presets are also available for a collection of European HPC systems using the `MACHINE` variable.
## Code description
### Key features
- Third-order Runge-Kutta time stepping
- Finite-differences calculate spatial derivatives on staggered velocity grid
- Pencil MPI decomposition based on the 2DECOMP&FFT library
- Cubic Hermite interpolation between two decoupled grids for multiple resolution
- Phase-field model to simulate the flow around melting objects following [Hester et al. (2020)](https://doi.org/10.1098/rspa.2020.0508)
- Immersed boundary method for fixed objects following [Fadlun et al. (2000)](https://doi.org/10.1006/jcph.2000.6484)
- A simple moisture model for a rapidly condensing vapour field following [Vallis et al. (2019)](https://doi.org/10.1017/jfm.2018.954)
AFiD is a highly parallel application for simulating canonical flows in a channel domain.
More technical details can be found in [van der Poel et al (2015)](https://doi.org/10.1016/j.compfluid.2015.04.007).
The code is developed jointly by the University of Twente, SURFsara, and the University of Rome "Tor Vergata".
In addition to the method described in [van der Poel et al (2015)](https://doi.org/10.1016/j.compfluid.2015.04.007), this *multi-resolution* version of AFiD evolves a second scalar field.
This scalar field is simulated on a refined grid to allow for low diffusivity values or high Schmidt numbers.
The multi-resolution method applied is detailed in [Ostilla-Monico et al (2015)](https://doi.org/10.1016/j.jcp.2015.08.031) and was implemented into AFiD by [@chongshenng](https://github.com/chongshenng).
Interpolation between the two grids is performed using a four-point Hermite interpolation scheme.
One key difference from the original version of AFiD is that the scalar fields are evaluated at the mid-points of the computational cells.
This staggered grid provides more flexibility for applications with different gravitational axes.
The refined grid can also be used to evolve a phase-field variable to model the melting and dissolving of immersed solid objects.
## Contributing
If you would like to contribute to bug fixing/feature development/documentation, please create a new branch, commit your changes and then submit a pull request.
近期下载者:
相关文件:
收藏者: