24小时热门版块排行榜    

查看: 1339  |  回复: 2

schuhi

铜虫 (正式写手)

[求助] Shell读取LS-DYNA文件进行计算已有1人参与

采用shell编写个PBS脚本,想实现与学校Linux系统的连接,从而调用LS-DYNA 计算。可是遇到了问题。我先查看了系统可以使用的LS-DYNA modulue,总共有5个,因为ls-dyna/971_R5_1_1_amd这个是默认的,所以我就调用这个
ls-dyna/971.R6.1.0
ls-dyna/971.R7.0.0
ls-dyna/971_R4_2_1_amd
ls-dyna/971_R5_1_1_amd(default)
ls-dyna/971_R5_1_1_intel

我调用这个默认的,如下:
chuq@lyra04:~/explosive> module load ls-dyna
Lyra: LS-Dyna (971) Build R5_1_1_amd module loaded.
To use the lscasedriver utility,  
add the alias command below to your batch script
and run the utility with the command,
lscasedriver [-k] infile execute
alias lscasedriver='python /pkg/suse11/lsdyna/971_R5_1_1_amd/lscasedriver.py'

shell出现几行语句,意思是当我加载这个modulue时,需要加上lscasedriver等语句。我不知道怎么在我的脚本中加。
我这么加,对吗?我把这个脚本已经提交了,可是我们学校计算的人太多你,我的job还在排队,所以我还不知道这样到底对不对。但是很疑惑这两个语句的用法,尤其是 lscasedriver [-k] infile execute 这一句,哪位可以帮我解释一下。非常感谢。。。。
#!/bin/bash -l

#PBS -N explosive002
#PBS -l walltime=10:00:00
#PBS -l select=1:ncpus=12:mpiprocs=12:mem=16gb:cputype=E5-2680v2
#PBS -j oe
module load ls-dyna/971_R5_1_1_amd
cd ~/try002
alias lscasedriver='python/pkg/suse11/lsdyna/971_R5_1_1_amd/lscasedriver.py'
lscasedriver -k ep.k
ls-dyna i=ep.k

谢谢各位啊。
回复此楼
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

FMStation

至尊木虫 (知名作家)

【答案】应助回帖

★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★
感谢参与,应助指数 +1
schuhi: 金币+50, ★★★★★最佳答案 2016-09-23 20:07:39
The argument to run LSCASEDRIVER is as simple as:

prompt> lscasedrive -k main_input_file arguments_to_tell_the_dyna_commands INPUT

Here “-k” option tells LSCASEDRIVE to output the parsed input files.
INPUT is mandatory as this string, which can be positioned anywhere after
the main input file is used by LSCASEDRIVE to substitute the individually
created files based on the case ID.

http://www.d3view.com/more-on-ls-casedriver/
2楼2016-09-23 17:44:45
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

schuhi

铜虫 (正式写手)

引用回帖:
2楼: Originally posted by FMStation at 2016-09-23 17:44:45
The argument to run LSCASEDRIVER is as simple as:

prompt> lscasedrive -k main_input_file arguments_to_tell_the_dyna_commands INPUT

Here “-k” option tells LSCASEDRIVE to output the parsed i ...

Thank you so much. I have worked out this problem use another solver version (LS-DYNA/971.R7.0.0). I will try this version and find out the difference between these two. The PBS script with the LS-DYNA/971.R7.0.0 module is listed as below:

#!/bin/bash -l

#PBS -N explosive001
#PBS -l walltime=5:00:00
#PBS -j oe

module load ls-dyna/971.R7.0.0

cd ~/try001
lsdyna_s i=25.k ncpu=1

Many thanks for your help.
3楼2016-09-23 20:07:27
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
相关版块跳转 我要订阅楼主 schuhi 的主题更新
信息提示
请填处理意见