Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Load original data from LAMDA #4

Open
jzhouastro opened this issue Aug 5, 2021 · 1 comment
Open

Load original data from LAMDA #4

jzhouastro opened this issue Aug 5, 2021 · 1 comment

Comments

@jzhouastro
Copy link

原始分子数据文件:

Screenshot from 2021-08-04 22-57-47

在读取碰撞粒子的时候会将光标所在行以空格分开将 CO-pH2 和 Yang分别当做碰撞粒子输入。我们需要的是 CO 和 pH2

定位代码:statistic_equilibrium.f90 的 193行调用分割字符串函数。

Screenshot from 2021-08-04 23-04-41

函数所在位置:sub_trivials.f90 的 576 行。 现在将字符串中 空格,+,- 都去除,选择第二,三个字符串得到分子名。

修改代码如下:

revised.zip

Screenshot from 2021-08-04 23-16-02

没有测试所有分子数据。特殊数据可能需要进一步修改。

@fjdu
Copy link
Owner

fjdu commented Mar 31, 2023

我觉得针对这种情况,最简单的做法是简单地修改一下从LAMDA网站上下载的数据文件。
因为如果允许使用加减号(+、-)作为分隔符,那么就难以处理有些情况下分子的名称本身就包含正负号的情况。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants