24小时热门版块排行榜    

查看: 2188  |  回复: 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的回帖

dying999

铁虫 (小有名气)



小木虫: 金币+0.5, 给个红包,谢谢回帖
我也遇到楼主一样的问题。在网上查找过,找到了三种可以可以孔径计算的方法,目前好像只有楼主发的这种有现成软件,但是安装遇到一样的问题,完全不懂C++,不知道楼主找到了办法了吗
6楼2015-03-11 12:39:43
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
查看全部 10 个回答

gzl9901

铁杆木虫 (文坛精英)


★ ★
小木虫: 金币+0.5, 给个红包,谢谢回帖
shiyiwenren: 金币+1 2013-05-02 08:33:58
祝顺利,科研加油!
2楼2013-04-27 17:50:16
已阅   回复此楼   关注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的回帖

clumsyinsect

新虫 (初入文坛)



小木虫: 金币+0.5, 给个红包,谢谢回帖
我想问一下,楼主,这个是可以作为ms的脚本使用吗?

发自小木虫Android客户端
8楼2016-10-16 07:58:54
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
普通表情 高级回复(可上传附件)
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[访问学者] no news is good news +6 wyjecho666 2024-06-29 9/450 2024-06-29 23:15 by joeymt
[硕博家园] 开题 +3 东北。 2024-06-29 5/250 2024-06-29 21:58 by zyqchem
[访问学者] 公派访问学者申请还是审核中吗? +4 326lhpqk 2024-06-28 5/250 2024-06-29 20:15 by shi01587
[基金申请] 博后面上如何提高创新分? +5 yuyiang 2024-06-29 10/500 2024-06-29 18:24 by yuyiang
[有机交流] 大佬们,打的核磁氢谱与chemdraw预测的有偏差 +8 来了个 2024-06-26 9/450 2024-06-29 17:58 by if今年的吧
[教师之家] +8 小木虫用户100号 2024-06-28 8/400 2024-06-29 17:21 by shl2112501
[基金申请] 能看出是否上会了吗 +11 articlefan 2024-06-23 17/850 2024-06-29 13:28 by articlefan
[考博] 30岁 想读非全博,求建议 +7 八千里路云雨泥 2024-06-27 19/950 2024-06-29 11:24 by 八千里路云雨泥
[论文投稿] 我在写关于多维空间的论文,希望能与大家交流,准备在science上发表 +10 lgf519 2024-06-24 14/700 2024-06-29 01:16 by f1yfish
[基金申请] 博后BC就没人问么?存在感好低啊! +5 qade544 2024-06-28 5/250 2024-06-29 00:20 by 666中
[基金申请] 75批博后基金 +27 d1121345006 2024-06-28 38/1900 2024-06-28 19:40 by sizhouyi
[硕博家园] 哭到鼻子不透气,要窒息 +3 pvrw0224 2024-06-28 3/150 2024-06-28 17:01 by 仲夏夜的星星
[考博] 25申请博士 +3 lxcqwer 2024-06-27 3/150 2024-06-28 12:28 by highxixi
[考博] 申博找导师 +4 疏影横斜水清浅3 2024-06-26 5/250 2024-06-28 11:15 by 安塔瓦拉多
[论文投稿] 为何全世界都用JCR分区,咱们要弄个中科院分区?意义何在? +6 意得辑_editage 2024-06-25 7/350 2024-06-27 20:59 by keyaner23
[论文投稿] 材料投稿速度快的二三区期刊有哪些! +3 加油努力7 2024-06-24 4/200 2024-06-27 18:09 by keyaner23
[有机交流] 脱酯基合成步骤 5+4 小辉灰@anhui 2024-06-25 8/400 2024-06-27 11:17 by 火龙骑士
[有机交流] 大佬们,打的核磁氢谱与chemdraw预测的有偏差 +7 来了个 2024-06-26 7/350 2024-06-27 11:11 by wubiansiya
[找工作] 老博士选高校 5+5 woodhead8386 2024-06-24 8/400 2024-06-26 16:35 by 大大熊呀
[基金申请] 省基金对国自然申请是有利还是有弊 +6 zycumt04 2024-06-26 7/350 2024-06-26 15:02 by 潇湘之迷
信息提示
请填处理意见