Help with Local Electric field

Hi,
I'm going to define a local electric field in LAMMPS .I'm still beginner and don't know how to that.I'm just going to define an electric field with this components for now : (x,0,0) which the x component of field is depends on the location:
I've read the efield section of the manual but I think I'm making a mistake.

variable x
fix h a efield x 0.0 0.0

Best,
Ata Madanchi

________________________________
From: [email protected]...
To: [email protected]
Subject: Help with Local Electric field
Date: Sat, 12 Mar 2016 10:07:52 +0330

Hi,
I'm going to define a local electric field in LAMMPS .I'm still beginner and

what do you mean by "local" electric field?
please note what fix efield does is essentially a statically added
force that is scaled by the atomic charge of the affected particle.

don't know how to that.I'm just going to define an electric field with this
components for now : (x,0,0) which the x component of field is depends on
the location:
I've read the efield section of the manual but I think I'm making a mistake.

yes, the following has *two* mistakes. both the variable command and
the fix efield command are use incorrectly and in disagreement what
the respective documentation says.

axel.