-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcli_usage.sh
More file actions
executable file
·27 lines (23 loc) · 851 Bytes
/
Copy pathcli_usage.sh
File metadata and controls
executable file
·27 lines (23 loc) · 851 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/usr/bin/env bash
set -euo pipefail
if [ "$#" -gt 3 ]; then
echo "Usage: $0 [POSITION_FILE [Lx [Ly]]]" >&2
exit 2
fi
script_dir=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd)
position_file=${1:-"$script_dir/xy.dat"}
lx=${2:-1284.0}
ly=${3:-$lx}
# Particle summation is the default method.
structure-factor "$position_file" "$lx" "$ly" --max-mode 8 --no-show
structure-factor "$position_file" "$lx" "$ly" --method binary --grid-size 2.0 --no-show
structure-factor "$position_file" "$lx" "$ly" --method density --grid-size 2.0 --no-show
structure-factor "$position_file" "$lx" "$ly" --method occupancy --grid-size 2.0 --no-show
for kernel in gaussian top-hat disk; do
structure-factor \
"$position_file" "$lx" "$ly" \
--method kernel \
--kernel "$kernel" \
--grid-size 2.0 \
--no-show
done