Hi all,
I have been encountering this very problem lately in my code:
[…]
variable bodyfx atom mass*${gx}
fix pressure flow addforce bodyfx 0.0 0.0
[…]
The following error comes up:
ERROR: Expected floating point parameter in input script or data file
This must be something very simple, yet having tried all c_, v_ and f_ it doesn’t seem to work.
What am I missing?
Thanks,
Quang
http://lammps.sandia.gov/doc/fix_addforce.html
Fix addforce requires three floats (for x, y, and z direction).
Michal
Hi all,
I have been encountering this very problem lately in my code:
[...]
variable bodyfx atom mass*${gx}
fix pressure flow addforce bodyfx 0.0 0.0
[...]
The following error comes up:
ERROR: Expected floating point parameter in input script or data file
This must be something very simple, yet having tried all c_, v_ and f_ it
doesn't seem to work.
What am I missing?
for starters you are not reporting your LAMMPS version.
axel.
I have updated with the latest commit from github - still the same error.
I thought mass*${gx} shall be computed to a float? before I have
variable gx equal 1e-4
You probably want to read up on the syntax for variables:
http://lammps.sandia.gov/doc/variable.html
Ok I had a brain fart… clearly not enough espressos…
sorry…