#!/bin/bash
set -eu

rm -rf GRN* syn* *.png

# --------------------------------------------------------------------------------------
# BEGIN GRN
# -e 表示计算空间导数
grt greenfn -Mmilrow -D2/0 -N500/0.02 -OGRN -R10 -e
# END GRN
# --------------------------------------------------------------------------------------

# --------------------------------------------------------------------------------------
# BEGIN SYN DC
# -e 表示计算空间导数
grt syn -GGRN/milrow_2_0_10 -S1e24 -A30 -M33/50/120 -Osyn_dc -e
# END SYN DC
# --------------------------------------------------------------------------------------

# --------------------------------------------------------------------------------------
# BEGIN ZNE
# -N 表示输出ZNE分量
grt syn -GGRN/milrow_2_0_10 -S1e24 -A30 -M33/50/120 -Osyn_dc_zne -e -N
# END ZNE
# --------------------------------------------------------------------------------------


# --------------------------------------------------------------------------------------
# BEGIN STRAIN 
# 指定文件夹，会在原文件夹内输出SAC格式的应变张量
grt strain syn_dc_zne
# END STRAIN
# --------------------------------------------------------------------------------------

# --------------------------------------------------------------------------------------
# BEGIN ROTATION 
# 指定文件夹，会在原文件夹内输出SAC格式的旋转张量
grt rotation syn_dc_zne
# END ROTATION
# --------------------------------------------------------------------------------------


# --------------------------------------------------------------------------------------
# BEGIN STRESS 
# 指定文件夹，会在原文件夹内输出SAC格式的应力张量
grt stress syn_dc_zne
# END STRESS
# --------------------------------------------------------------------------------------
