24小时热门版块排行榜    

北京石油化工学院2026年研究生招生接收调剂公告
查看: 1394  |  回复: 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 的主题更新
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[考研] 288求调剂 一志愿哈工大 材料与化工 +11 洛神哥哥 2026-03-31 11/550 2026-03-31 16:47 by yanflower7133
[考研] 材料科学与工程调剂 +13 深V宿舍吧 2026-03-30 14/700 2026-03-31 16:28 by hypershenger
[考研] 347求调剂 +11 山顶见α 2026-03-25 11/550 2026-03-31 14:14 by 记事本2026
[考研] 求调剂 +8 11ggg 2026-03-30 8/400 2026-03-31 13:56 by nanaliuyun
[考研] 一志愿大连理工大学,机械工程学硕,341 +3 西瓜田的守望者 2026-03-30 3/150 2026-03-31 11:08 by asdfzly
[考研] 材料科学与工程 317求调剂 +7 JKSOIID 2026-03-26 7/350 2026-03-30 20:10 by 滴滴上岸呀
[考研] 一志愿南开大学0710生物学359求调剂 +5 兔兔兔111223314 2026-03-29 7/350 2026-03-30 18:29 by 兔兔兔111223314
[考研] 334分 一志愿武理 材料求调剂 +16 李李不服输 2026-03-26 16/800 2026-03-30 17:47 by wangjy2002
[考研] 材料专硕 085600求调剂 +7 BBQ233 2026-03-30 7/350 2026-03-30 17:44 by oooqiao
[考研] 0703 化学 求调剂,一志愿山东大学 342 分 +7 Shern—- 2026-03-28 7/350 2026-03-30 16:31 by nothing投稿中
[考研] 0703本科郑州大学求调剂 +7 nhj_ 2026-03-25 7/350 2026-03-30 12:44 by fangnagu
[考研] 337求调剂 +6 《树》 2026-03-29 6/300 2026-03-30 10:15 by herarysara
[考研] 290求调剂 +3 dfffsar 2026-03-29 3/150 2026-03-29 22:38 by 毛毛毛阿莫2
[考研] 总分293求调剂 +8 加一一九 2026-03-25 11/550 2026-03-29 19:53 by 无际的草原
[硕博家园] 招收生物学/细胞生物学调剂 +4 IceGuo 2026-03-26 5/250 2026-03-29 01:25 by griffith2014
[考研] 356求调剂 +3 gysy?s?a 2026-03-28 3/150 2026-03-29 00:33 by 544594351
[考研] 311(085601)求调剂 +4 liziyeyeye 2026-03-28 4/200 2026-03-28 18:50 by 535743368
[考研] 339求调剂,想调回江苏 +6 烤麦芽 2026-03-27 8/400 2026-03-28 10:40 by 烤麦芽
[考研] 285求调剂 +4 AZMK 2026-03-27 7/350 2026-03-27 20:59 by AZMK
[考研] 材料与化工304求B区调剂 +3 邱gl 2026-03-25 3/150 2026-03-25 19:03 by Ainin_
信息提示
请填处理意见