User Created Potentials

Hello all,
I created a potential that calculates the capillary and viscous forces due to an underlying fluid. I added the following line to my header:
PairStyle(bat/soulie,PairSoulie)

However when I call pair_style bat/soulie … in my in.myfile file, i get the following error:

​ERROR: Unknown pair style bat/soulie (…/force.cpp:246)
Last command: pair_style bat/soulie 1.0 1.0 1.0 1.0 testSC.txt testVisc.txt​

​I was sure to run the following command before making the mpi version of lammps:
make yes-USER-BAT

Note: USER-BAT is where I keep the files.

Any suggestions?​

Hello all,
I created a potential that calculates the capillary and viscous forces
due to an underlying fluid. I added the following line to my header:
PairStyle(bat/soulie,PairSoulie)

However when I call pair_style bat/soulie .... in my in.myfile file, i
get the following error:

​ERROR: Unknown pair style bat/soulie (../force.cpp:246)
Last command: pair_style bat/soulie 1.0 1.0 1.0 1.0 testSC.txt
testVisc.txt​

​I was sure to run the following command before making the mpi version of
lammps:
make yes-USER-BAT

Note: USER-BAT is where I keep the files.

Any suggestions?​

​are the files for your pair style in the src folder?
do you see your custom pair style when you run: ​lmp_mpi -h
​you need to make certain, that you are correctly calling the new
executable.

axel.

I forgot and cannot check right now, does a USER-* require an Install script to do anything when “make yes-user-*” is executed? If yes, maybe that’s missing?

As a workaround just copy your source files to the “src” dir and recompile, like Axel suggests.

I forgot and cannot check right now, does a USER-* require an Install
script to do anything when "make yes-user-*" is executed? If yes, maybe
that's missing?

​if there is no Install.sh file, LAMMPS will use a default one. a custom
one is only needed, if there are dependencies, i.e. a file can only be
installed if some other file from a different package is also installed.

axel.​

Danke schön!