Last active
June 18, 2020 20:34
-
-
Save mitchute/82cc8185a45505323a18e0ccf9982fd4 to your computer and use it in GitHub Desktop.
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
#!/bin/bash | |
singularity exec --contain -e --pwd /var/simdata/openstudio -B /lustre/eaglefs/scratch/mmitchel/output/0000001:/var/simdata/openstudio -B /lustre/eaglefs/scratch/mmitchel/EnStore/measures:/lib/measures:ro -B /lustre/eaglefs/scratch/mmitchel/EnStore/resources/seeds/mdoff/5b:/lib/seeds:ro -B /lustre/eaglefs/scratch/mmitchel/EnStore/resources/weather:/lib/weather:ro -B /lustre/eaglefs/scratch/mmitchel/EnStore/resources:/lib/resources:ro enstore.sif /var/simdata/openstudio/worker.sh |
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
# mount and run interactively | |
# note: we can only successfully mount in to /lib/ | |
singularity shell --contain -e --pwd /var/simdata/openstudio -B /home/mmitchel/test:/var/simdata/openstudio -B /home/mmitchel/compact_osw/measures:/lib/measures/:ro -B /home/mmitchel/compact_osw/files:/lib/files/:ro enstore.sif | |
# symlink to the directories | |
ln -s /lib/files/ /var/simdata/openstudio/files | |
ln -s /lib/measures/ /var/simdata/openstudio/measures | |
# run the measures | |
openstudio run -w compact.osw | |
# delete the symlink | |
rm files | |
rm measures |
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
#!/bin/bash | |
# symlink | |
ln -s /lib/measures /var/simdata/openstudio/measures | |
ln -s /lib/seeds /var/simdata/openstudio/seeds | |
ln -s /lib/weather/ /var/simdata/openstudio/weather | |
ln -s /lib/resources/ /var/simdata/openstudio/resources | |
# run openstudio | |
openstudio run -m -w in.osw | |
# run energyplus | |
/usr/local/openstudio-3.0.0/EnergyPlus/energyplus -r -d /var/simdata/openstudio/run -w weather/USA_CO_Aurora-Buckley.Field.ANGB.724695_TMY3.epw run/in.idf | |
# remove symlinks | |
rm measures | |
rm seeds | |
rm weather | |
rm resources |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment