Skip to content

Building AMRWind

Matt Larsen edited this page Apr 1, 2021 · 7 revisions

AMR Wind requires a c++14 compiler.

git checkout --recursive [email protected]:Alpine-DAV/amr-wind.git
git checkout ascent
cd amr-wind
mkdir build
cd build
cmake .. -DAMR_WIND_ENABLE_ASCENT=ON -DASCENT_DIR=path_to_ascent_install -DAMR_WIND_ENABLE_MPI=ON
make

To run one of the examples, use the following actions file in the build directory:

-
  action: "add_scenes"
  scenes:
    s1:
      plots:
        p1:
          type: "pseudocolor"
          field: "temperature"
      renders:
        r1:
          image_prefix: "temperature_%04d"
          camera:
            azimuth: 90

Run the example:

srun -n 1 amr_wind ../test/test_files/abl_godunov/abl_godunov.i

Clone this wiki locally