24小时热门版块排行榜    

CyRhmU.jpeg
查看: 7406  |  回复: 40
【奖励】 本帖被评价17次,作者njuswj增加金币 13.05
当前只显示满足指定条件的回帖,点击这里查看本话题的所有回帖

njuswj

银虫 (小有名气)


[资源] 【分享】castep中断后如何恢复计算。。。

今天用castep计算,不知怎么回事,电脑死机了,不得不重新启动,当时已经算了3天了,总不能白算,于是就在ms帮助文件里找了下,现在跟大家分享。。。
以下是ms帮助文件里的内容:

Restarting a CASTEP calculation
It is not possible to restart a completed CASTEP job automatically via the interface. However, there are circumstances in which you may wish to do this, for example, if you are running a geometry optimization which does not converge in the given number of steps, or a you wish to continue your calculation with manually modified runtime parameters. To restart such jobs you should edit .param file and add the CONTINUATION keyword to the file.

Note. Any additional changes to this file may make it impossible to restart the CASTEP job successfully.

Tip. It is possible to remove everything from .param and leave only the CONTINUATION line. This will ensure that all of the settings remain exactly the same as those from the previous run.

Note. In order to restart a job, the output files from the previous run must be present in the Project folder. This check and the subsequent transfer of the files to the server happens automatically whenever CASTEP is used to run an existing file set or to calculate additional properties.

以下是关于CONTINUATION的说明:
CONTINUATION (.param)

Description
This keyword contains a string which specifies the model file used to continue the job.

If the keyword CONTINUATION contains the string DEFAULT (case-insensitive), the file seedname.check will be used. The same effect can be achieved by providing the CONTINUATION keyword on its own, with no value.

The default value of this parameter is NULL which corresponds to no continuation (a new run).

Note. A run cannot be both a REUSE and a CONTINUATION. A CONTINUATION run restarts the current job from the end of the previous one. As a consequence, only a limited subset of the available parameters may be changed between CONTINUATION runs.

Example
CONTINUATION : default

其实也就是在你的*.param中添加CONTINUATION : default,然后把你上一次计算得到的*.check文件复制到上次计算的那个文件夹下,然后在ms中打开*.param,点Modules->CASTEP->casculation->files...->Run files

其中还要注意一点就是当你把*.check文件复制到当前目录时
务必保持其名字跟当前3d模型*.xsd名字一致,因为如果上一词计算文件名字中有空格,在计算过程中会把空格变成_,直接复制过去名字肯定会不一样,这样就要重命名下。
回复此楼

» 收录本帖的淘帖专辑推荐

第一原理资料汇编 计算MS等 Material Studio 模拟知识汇总
科研相关资料 第一性原理 刺客

» 猜你喜欢

» 本主题相关价值贴推荐,对您同样有帮助:

已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

acridine

木虫 (正式写手)


★ ★ ★
xiaohunhun(金币+3):谢谢 2010-04-27 20:23
看来有不少同志对MS继续计算不熟悉啊。
帮助楼主补充两点:
1. dmol也有继续计算方法,关键词是 scf_restart,当然,也有类似与castep中*.check的文件,扩展名记不得了,Help中肯定有
2.楼上有人问道,从.xsd文件继续计算有何不可?当然也可以,但是这么做是从当前结构出发,效率不高,只是在几何优化中有一定用处,可以从当前结构出发继续优化。CONTINUATION和scf_restart可以做得更好,它们可以从中断时候的波函数开始继续计算。
举几个例子就可以明白:
比如几何优化进行了3步,第三步也走了20个scf了,这时候突然中断。如果你从.xsd出发,则只能从第3步的第一个scf开始。而使用CONTINUATION和scf_restart则可以从第3步的第20个scf继续计算。
再如能量计算的时候突然中断,那么从.xsd出发,无异于重新开始能量计算,没有节省任何时间。而CONTINUATION和scf_restart则可以从中断时候的波函数开始继续计算。
最后,也是比较重要的,就是性质计算。如果我已经计算了某个性质,突然觉得计算另一个性质对说明问题更有帮助,这时候如果不使用继续计算,则还需要从头做一次能量,涉及多次scf迭代,很费时间。如果使用scf_restart开始计算,则会发现,scf瞬间就收敛,很快就进入到性质计算。
还有个要补充的是:大家都知道频率计算的计算量也是很大的,幸好对于频率也是有CONTINUATION和scf_restart的,可以在中断之后继续。Help中自有介绍
29楼2010-04-27 16:25:05
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
相关版块跳转 我要订阅楼主 njuswj 的主题更新
☆ 无星级 ★ 一星级 ★★★ 三星级 ★★★★★ 五星级
普通表情 高级回复(可上传附件)
信息提示
请填处理意见