Invalid variable name in variable formula




I tried, but it did’n’t work.








I attach input and data file.








The input file is little bit long, because I made some repeated command using loop option in variable.








Kind Regards.






--------- 원본 메일 ---------


> 보낸사람: Rolf Isele-Holder <rolf.isele@…1516…>
> 받는사람 : 윤홍민 <1234dndd@…1333…>
> 참조 : LAMMPS Users Mailing List [email protected]
> 날짜: 2013년 8월 29일 목요일, 19시 03분 11초 +0900
> 제목: Re: [lammps-users] Invalid variable name in variable formula







wat_suf_oil.data (6.25 MB)

wat_suf_oil.in (9.57 KB)

  I tried, but it did'n't work.

that is because the error *is* at a completely different location. if you
run your input with -echo screen you can see the exact location:

label reg_hi_a
variable i loop 10
label reg_hi_b
variable j loop 10
variable b equal (($i)-1)*v_a
variable b equal ((1)-1)*v_a
variable c equal ($i)*v_a
variable c equal (1)*v_a
variable d equal (($j)-1)*v_a
variable d equal ((1)-1)*v_a
variable e equal ($j)*v_a
variable e equal (1)*v_a
region h_$i_$j block v_b v_c v_d v_e 45 90.035 units box
region h_1_$j block v_b v_c v_d v_e 45 90.035 units box
region h_1_1 block v_b v_c v_d v_e 45 90.035 units box
ERROR: Expected floating point parameter in input script or data file
(../region_block.cpp:37)

so the error is the definition of the region, where you must use $
expansion and not v_ expansion.

this has *nothing* to do with the therm stuff you were talking about in
your previous e-mail.

axel.