-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
146 changed files
with
43,289 additions
and
198,456 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Example: AMR Wind Only | ||
|
||
## Description | ||
|
||
This first example runs AMR Wind, using Hercules, but without any additional generation simulated. | ||
|
||
Most examples will have the pattern of having an sbatch_script.sh file which calls a run_script.sh file. The paradigm is that the run_script.sh can be run on a local machine, while the sbatch_script.sh is used to submit the job to a cluster. However, in this case since AMR-Wind can only be run on a cluster, the sbatch_script.sh is the only script provided. | ||
|
||
## Running | ||
|
||
To run the example, execute the following command in the terminal: | ||
|
||
```bash | ||
sbatch sbatch_script.sh | ||
``` | ||
## Outputs | ||
|
||
To plot the outputs run the following command in the terminal: | ||
|
||
```bash | ||
python plot_outputs.py | ||
``` | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#!/bin/bash | ||
#SBATCH --job-name=hercules | ||
#SBATCH --time=1:00:00 | ||
#SBATCH --nodes=2 | ||
#SBATCH --ntasks-per-node=36 | ||
#SBATCH --account=ssc | ||
# #SBATCH --qos=high # Uncomment for higher prioirty | ||
|
||
# A lot of modules and conda stuff | ||
# source /nopt/nrel/apps/anaconda/5.3/etc/profile.d/conda.sh | ||
# module use /not/nrel/apps/modules/default/modulefiles | ||
module purge | ||
module load conda | ||
# export PREFIX=~/.conda-envs/hercules | ||
# export PATH=$PREFIX/bin:$PATH | ||
# export FI_PROVIDER_PATH=$PREFIX/lib/libfabric/prov | ||
# export LD_LIBRARY_PATH=$PREFIX/lib/libfabric:$PREFIX/lib/release_mt:$LD_LIBRARY_PATH | ||
conda activate hercules | ||
module load helics/3.4.0-gcc10.1.0-open-mpi | ||
module load netcdf-c/4.9.2-openmpi-gcc | ||
|
||
export HELICS_PORT=32000 | ||
|
||
# Set up the helics broker | ||
helics_broker -t zmq -f 2 --loglevel="debug" --local_port=$HELICS_PORT & | ||
python hercules_runscript.py hercules_input_000.yaml >> loghercules 2>&1 & # Start the controller center and pass in input file | ||
mpirun -n 72 /home/pfleming/amr-wind/build/amr_wind amr_input.inp >> logamr 2>&1 | ||
|
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
181 changes: 0 additions & 181 deletions
181
example_case_folders/02_amr_wind_standin_only/amr_input.inp
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.