ANEMOI
Large-eddy simulation code written in CUDA Fortran for simulating atmospheric boundary layer flows.
https://github.com/moulin1024/ANEMOI
Category: Atmosphere
Sub Category: Atmospheric Composition and Dynamics
Keywords
computational-fluid-dynamics cuda-fortran large-eddy-simulation
Last synced: about 21 hours ago
JSON representation
Repository metadata
Large-eddy simulation code written in CUDA Fortran for simulating atmospheric boundary layer flows
- Host: GitHub
- URL: https://github.com/moulin1024/ANEMOI
- Owner: moulin1024
- License: mit
- Created: 2020-09-10T09:43:21.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-01-23T11:49:06.000Z (over 1 year ago)
- Last Synced: 2024-10-29T19:57:35.364Z (6 months ago)
- Topics: computational-fluid-dynamics, cuda-fortran, large-eddy-simulation
- Language: Fortran
- Homepage:
- Size: 12.2 MB
- Stars: 15
- Watchers: 3
- Forks: 3
- Open Issues: 1
- Releases: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
README.md
ANEMOI
@author: Mou Lin ([email protected]),Tristan Revaz([email protected])
Introduction
ANEMOI is a large-eddy simulation code written in CUDA Fortran for simulating atmospheric boundary layer flows. It solves the filtered continuity equation and the filtered Navier-Stokes equations (using the Boussinesq approximation). The numerical method used in this code is based on the PhD thesis of Albertson, 1996 [1] (attached in doc/theory).
Its main features can be summarized as follows: It uses a second-order Adams–Bashforth explicit scheme for time advancement and a hybrid pseudospectral finite-difference scheme for the spatial discretization. The lateral boundary conditions are periodic. The top boundary condition is set up as a flux-free condition. The bottom boundary condition requires the calculation of the instantaneous surface shear stress, which is accomplished through the local application of Monin–Obukhov similarity theory. The SGS fluxes of momentum are parameterized using Lagrangian scale-dependent dynamic models [2].
Code structure:
WireLES2/
├── doc (documentation dir)
├── job (simulation job dir)
│ └── [job1_name]
│ ├── input (contains config file)
│ └── src (copied and compiled src dir)
│ └── [job2_name]
│ └── ...
├── prc (preprocessing python script dir)
└── src (CUDA Fortran code dir)
How to run
Run the following line in the terminal first or add it in ~/.bashrc :
alias wireles='python prc/wireles.py'
then you can run various of application with the line
wireles [applications name] [case name]
applications list:
- create: create case with dummy default file
- remove: remove case completely
- clean: remove all files except input/config
- edit: edit config file
- pre: pre-process case
- solve: submit case to the cluster through the slurm
- debug: run the case on the local machine or cluster interactive debug mode
- make: compile the case
- post: quick build-in post processing of the simulation data
- anime: produce an animation of the flow from instant fields output
- h5gen: generating self-explained hdf5 file of the simulation data for customized postprocessing
A simple workflow: create --> edit --> pre --> solve/debug --> post/anime
To make life easier, a bash script test_run.sh has been provided to allow the new user to run a example case easily.
Reference
[1] Albertson, J.D., 1996. Large eddy simulation of land-atmosphere interaction. University of California, Davis.
[2] Bou-Zeid, E., Meneveau, C. and Parlange, M., 2005. A scale-dependent Lagrangian dynamic model for large eddy simulation of complex turbulent flows. Physics of fluids, 17(2), p.025105.
Owner metadata
- Name: Mou Lin
- Login: moulin1024
- Email:
- Kind: user
- Description: A turbulence chaser in a turbulent world
- Website:
- Location: Lausanne, Switzerland
- Twitter:
- Company: École polytechnique fédérale de Lausanne
- Icon url: https://avatars.githubusercontent.com/u/8977432?u=f389bdc216f5782e1f9b9d23e8b77d11f41c837d&v=4
- Repositories: 2
- Last ynced at: 2023-10-19T19:04:10.748Z
- Profile URL: https://github.com/moulin1024
GitHub Events
Total
Last Year
Committers metadata
Last synced: 6 months ago
Total Commits: 248
Total Committers: 3
Avg Commits per committer: 82.667
Development Distribution Score (DDS): 0.024
Commits in past year: 32
Committers in past year: 1
Avg Commits per committer in past year: 32.0
Development Distribution Score (DDS) in past year: 0.0
Name | Commits | |
---|---|---|
Mou Lin | m****4@g****m | 242 |
moulin | m****4 | 3 |
Kaveh Haghighi Mood | k****d@f****e | 3 |
Committer domains:
Issue and Pull Request metadata
Last synced: 18 days ago
Total issues: 1
Total pull requests: 0
Average time to close issues: N/A
Average time to close pull requests: N/A
Total issue authors: 1
Total pull request authors: 0
Average comments per issue: 0.0
Average comments per pull request: 0
Merged pull request: 0
Bot issues: 0
Bot pull requests: 0
Past year issues: 0
Past year pull requests: 0
Past year average time to close issues: N/A
Past year average time to close pull requests: N/A
Past year issue authors: 0
Past year pull request authors: 0
Past year average comments per issue: 0
Past year average comments per pull request: 0
Past year merged pull request: 0
Past year bot issues: 0
Past year bot pull requests: 0
Top Issue Authors
- moulin1024 (1)
Top Pull Request Authors
Top Issue Labels
Top Pull Request Labels
Score: 3.8712010109078907