XJTUhehuan的个人博客分享 http://blog.sciencenet.cn/u/XJTUhehuan

博文

Lammps中一个小小的语法规则

已有 3833 次阅读 2018-1-18 08:57 |系统分类:科研笔记

 单字符串和多字符串用来命名variable的name时,引用时注意,如果是单字符串,只需$x,而多字符串,则需加上curly brackets(花括号),${temp}。


lammps-manual-3.2中原话如下:

 If the $ is followed by curly brackets, then the variable name is the text inside the curly brackets. If no curly brackets follow the $, then the variable name is the single character immediately following the $. Thus ${myTemp} and $x refer to variable names "myTemp" and "x"



https://blog.sciencenet.cn/blog-3362186-1095464.html

上一篇:Lammps中Voronoi package的安装
下一篇:记好用的科研软件(随时不定期更新)
收藏 IP: 111.20.225.*| 热度|

0

该博文允许注册用户评论 请点击登录 评论 (0 个评论)

数据加载中...

Archiver|手机版|科学网 ( 京ICP备07017567号-12 )

GMT+8, 2024-4-24 21:03

Powered by ScienceNet.cn

Copyright © 2007- 中国科学报社

返回顶部