LAMMPS WWW Site - LAMMPS Documentation - LAMMPS Mailing List Archives
Re: [lammps-users] Expected floating point parameter in input script or data file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lammps-users] Expected floating point parameter in input script or data file


From: Michał Kański <michal.kanski@...2460...>
Date: Wed, 30 Aug 2017 17:29:45 +0000

http://lammps.sandia.gov/doc/fix_addforce.html

 

Fix addforce requires three floats (for x, y, and z direction).

 

Michal

 

From: Quang Ha
Sent: 30 August 2017 18:56
To: LAMMPS Users Mailing List
Subject: [lammps-users] Expected floating point parameter in input script or data file

 

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