#!/bin/csh -f ##setenv GFORTRAN_UNBUFFERED_ALL y ## *** パラメーター範囲 *** set COA_LIST=( 1.60 1.61 1.62 1.63 1.64 1.65 1.66 1.67 1.68 1.69 1.70 ) set OMEGA_LIST=( 160 158 156 154 152 150 148 146 144 142 140 ) ## *** マフィンティン半径の計算 *** set OMEGA=${OMEGA_LIST[1]} set COA0=`echo $COA_LIST[1]` set A0=`echo "e((1/3)*l(2*${OMEGA}/(sqrt(3)*${COA0})))" | bc -l` if (`echo "${COA0} > 2*sqrt(2)/sqrt(3)" | bc -l` == 1) then set RMTB0=`echo "${A0}/2" | bc -l` else set RMTB0=`echo "${A0}*sqrt(1/3+(${COA0}^2)/4)/2" | bc -l` endif set COA1=`echo $COA_LIST[$#COA_LIST]` set A1=`echo "e((1/3)*l(2*${OMEGA}/(sqrt(3)*${COA1})))" | bc -l` if (`echo "${COA1} > 2*sqrt(2)/sqrt(3)" | bc -l` == 1) then set RMTB1=`echo "${A1}/2" | bc -l` else set RMTB1=`echo "${A1}*sqrt(1/3+(${COA1}^2)/4)/2" | bc -l` endif if (`echo "${RMTB0} < ${RMTB1}" | bc -l` == 1) then set RMTB=`echo $RMTB0` else set RMTB=`echo $RMTB1` endif set RMTOMEGA=`echo "${RMTB}/e((1/3)*l(${OMEGA}))" | bc -l | sed -e 's/^\./0./g'` echo ${RMTOMEGA}