Giter Club home page Giter Club logo

anemoi's Introduction

ANEMOI

@author: Mou Lin ([email protected]),Tristan Revaz([email protected]) Farmers Market Finder Demo

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.

anemoi's People

Contributors

kaveh01 avatar moulin1024 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

anemoi's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.