24小时热门版块排行榜    

查看: 2187  |  回复: 9
【有奖交流】积极回复本帖子,参与交流,就有机会分得作者 shiyiwenren 的 18 个金币
当前只显示满足指定条件的回帖,点击这里查看本话题的所有回帖

[交流] 分享一个计算孔径分布的程序同时求助该程序使用时碰到的问题

以前做多孔材料的模拟的时候,一直想看下材料的孔径分布,但是不知道怎么进行这方面的模拟,今天在google上搜索pore size distribution的时候,惊喜地发现有人提供了这方面计算的程序,网址如下:
http://supriyo.net/research/psd/psd.htm
我将上面的程序下载了下来,并上传到小木虫上,大家有兴趣可以看下,相互交流一下。网上提供了两个版本的程序:普通的和可以并行的。
我将这两个程序都尝试安装到自己组里的机群上了,但是在用的时候发现有很多问题。
首先我安装了普通版本的,我将PSDsolv.tar.gz文件解压到自己新建的目录下面,然后按照readme里的说明执行操作的时候,在第一步就碰到了错误,readme文件内容如下:
******************* PSDsolv v.1.0 **********************

Author of psd.cpp: Supriyo Bhattacharya
solvopt.cpp and solvopt.h were included upon permission
from Prof. Franz Kappel. ran_nr.cpp is taken from
"Numerical Recipes in C++"

Feel free to modify / distribute the original code for
nonprofit / academic purposes. I give permission for
commercial use of my own code, however solvopt is
forbidden from being used commercially. Therefore
commercial users can use the code as long as they
provide their own nonlinear optimization routine and
give proper credits to the author and cite the reference
given at the end of this document. Also, commercial
establishments may not prohibit others from modifying
/ distributing the original codes either for nonprofit
or for commercial purposes.

GENERAL DESCRIPTION

This program calculates the pore size distribution
from a structure file. The program does not need the
connect records, only the locations and atom types,
so the xyz format is the simplest to work with. If
your structure is in a pdb or mol2 format, use babel
to convert: i.e. openbabel -ipdb struc.pdb -oxyz struc.xyz
The atoms are modeled as hard spheres (vdW radii).
The program uses a nonlinear optimization routine (SOLVOPT)

INSTALL

Run the install script (./install)
Then place the executable (psd) somewhere in your path or
create a link in /usr/local/bin.
Place radii_list.dat in the same directory where you run
the program. This file  contains the vdW radii of the
common atom types used by the program. New user defined
atom types can be added to radii_list.dat.

RUN

psd
A bin width of 0.25A seems to be the optimum.  The output produces
three files: psd_diff.dat (the actual distribution), psd_cumm.dat
(cummulative PSD, see paper for explanation) and error.dat (shows
the average error over time / MC steps).

Once you start the program, a rough profile can be seen within an hour.
However, it may take upto 24 hours to get a smooth profile
(depending on the system size). Please continue to monitor the
distribution and the estimated error. Once you are satisfied with the results,
just kill the process, simple!!

OTHER INFO

Please cite the following:
psd calculation:
S. Bhattacharya and K. E. Gubbins, fast Method for Computing
Pore Size Distributions of Model Materials, Langmuir 2006, 22, 7726.

solvopt:
F. Kappel and A. V. Kuntsevich, Comput. Optim. Appl. 2000, 15, 193.

Send all comments to sup27606@yahoo.com
---------------------------------------------------------------------------------------------------
我执行了./install后,跳出如下说明:
cc1plus: error: unrecognized command line option "-fast"
cc1plus: error: unrecognized command line option "-fast"
我对install进行了编译,删除了原来里面包含的-fast后,再重新执行./install后,跳出如下说明:
solvopt.cpp: In function 鈊ouble solvopt(short unsigned int, double*, double (*)(double*), double (*)(double*, double*), double*, double (*)(double*), double (*)(double*, double*))?
solvopt.cpp:186: warning: converting to 鈙hort unsigned int?from 鈊ouble?
solvopt.cpp:205: warning: converting to 鈙hort int?from 鈊ouble?
In file included from /usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../include/c++/4.1.2/backward/iostream.h:31,
                 from psd.cpp:1:
/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../include/c++/4.1.2/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the header for the header for C++ includes, or instead of the deprecated header . To disable this warning use -Wno-deprecated.
In file included from psd.cpp:7:
ran_nr.cpp:58:2: warning: no newline at end of file
gettime.c: In function 鈏nt gettime(double*)?
gettime.c:8: error: aggregate 鈚imezone tz?has incomplete type and cannot be defined
gettime.c:11: error: 鈍ettimeofday?was not declared in this scope
psd.cpp: In function 鈒ong int nearest(double)?
psd.cpp:17: warning: converting to 鈒ong int?from 鈊ouble
所以程序在进行install的时候就执行不下去了,也就没有能用这个程序进行测试。我用C++对程序里包含的.cpp和.c文件进行了compile,发现都有提示程序有错误。但是因为我自己不会C++编程,所以也不知道怎么解决。希望有用过这个程序的人能给与帮助吧。
回复此楼

» 本帖附件资源列表

  • 欢迎监督和反馈:小木虫仅提供交流平台,不对该内容负责。
    本内容由用户自主发布,如果其内容涉及到知识产权问题,其责任在于用户本人,如对版权有异议,请联系邮箱:libolin3@tal.com
  • 附件 1 : PSDsolv.tar.gz
  • 2013-04-27 16:42:27, 13.99 K
  • 附件 2 : PSDsolvMPI.tar.gz
  • 2013-04-27 16:42:35, 14.72 K

» 本帖已获得的红花(最新10朵)

» 猜你喜欢

» 本主题相关商家推荐: (我也要在这里推广)

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

» 抢金币啦!回帖就可以得到:

查看全部散金贴

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

安德

铁杆木虫 (著名写手)


★ ★
小木虫: 金币+0.5, 给个红包,谢谢回帖
送红花一朵
shiyiwenren: 金币+1 2013-05-02 08:34:02
虽然不是很容易看明白,但是为楼主这种认真的精神感动的泪流满面,送你一朵红花聊表我的敬意!
3楼2013-04-27 21:13:41
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
相关版块跳转 我要订阅楼主 shiyiwenren 的主题更新
普通表情 高级回复(可上传附件)
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[基金申请] 博后基金意难平…… +16 kkll2025 2024-06-29 20/1000 2024-06-29 23:48 by songyuren
[基金申请] 2024国自然会评日期 +3 王兄弟 2024-06-29 4/200 2024-06-29 23:39 by yatou
[基金申请] 收到科研之友的邮件 +17 prisonrabbit 2024-06-28 18/900 2024-06-29 22:50 by sunbetty
[硕博家园] 开题 +3 东北。 2024-06-29 5/250 2024-06-29 21:58 by zyqchem
[有机交流] 大佬们,打的核磁氢谱与chemdraw预测的有偏差 +8 来了个 2024-06-26 9/450 2024-06-29 17:58 by if今年的吧
[教师之家] 佛山大学和深职大怎么选? +7 24601 2024-06-29 13/650 2024-06-29 16:14 by kanyechris
[硕博家园] 博士该不该读? +14 L1009225316 2024-06-25 16/800 2024-06-29 15:33 by wwgl92
[基金申请] 感觉地区基金太难了,申请了多年不中 +24 123为wqw 2024-06-27 31/1550 2024-06-29 14:14 by Siuhong Yiu
[药学] 大佬们来讨论下,为什么分子里加入了有毒性的官能团分子反而没毒了 +4 HF111001 2024-06-24 5/250 2024-06-28 22:45 by 渣男2019
[基金申请] 恳请大家帮我看看如何提高 +10 drwuwenhan 2024-06-28 13/650 2024-06-28 22:14 by 好人与坏人
[基金申请] 博后网上办公系统维护 +14 取名字烦人 2024-06-25 23/1150 2024-06-28 17:22 by cincpac
[论文投稿] 为何全世界都用JCR分区,咱们要弄个中科院分区?意义何在? +6 意得辑_editage 2024-06-25 7/350 2024-06-27 20:59 by keyaner23
[论文投稿] Nano energy 投稿一个月with editor 到今天状态没有变过 5+3 甜甜甜。 2024-06-26 3/150 2024-06-27 18:00 by nono2009
[基金申请] 75批面上出结果了么?系统卡的进不去了 +4 wziguang33 2024-06-27 4/200 2024-06-27 15:53 by xter9665
[基金申请] 今年什么时候会评啊 +9 lancet0903 2024-06-24 9/450 2024-06-27 13:22 by yrzhu1984
[教师之家] 神奇的中医 +8 水冰月月野兔 2024-06-24 10/500 2024-06-26 12:10 by lyfbangong
[有机交流] 酚羟基甲基化 10+4 A好运来啦啦啦 2024-06-25 6/300 2024-06-26 10:08 by 88817753
[基金申请] 今天能不能出来名单 +8 地理学1995 2024-06-25 10/500 2024-06-26 09:46 by msjy
[基金申请] 这样的说辞是上会了吗 +12 学员d3zYCz 2024-06-24 15/750 2024-06-25 22:05 by 3115321
[硕博家园] 数据不好 +5 Hetai 2024-06-23 7/350 2024-06-25 12:37 by 1591099
信息提示
请填处理意见