Deepika,
HOOMD does not implement 4*epsilon(sigma/r)^6 as a potential. To make LJ purely repulsive, most research applications use Weeks-Chandler-Anderson (WCA) potentials which is LJ with r_cut=2**(1/6)*sigma.
You don't define exactly how the special pair is "not working", so the best I can suggest is that you follow instructions in the documentation.
------
Joshua A. Anderson, Ph.D.
Research Area Specialist, Chemical Engineering, University of Michigan
> On Apr 27, 2022, at 5:40 AM, Deepika Srivastva <
dsri...@gmail.com> wrote:
>
> Hi Joshua,
>
> Thank you so much for your response.
>
> I have fixed my code for FENE potential, the simulation is running fine, and the FENE energy is matching my calculated energy values.
>
> Now, I have another problem.
> Firstly, I want to implement purely repulsive LJ potential of the form (4*epsilon(sigma/r)^6), which I am unable to implement in hoomd. I tried combining Mie potential with Morse potential to obtain the desired potential LJ form, but that does not seem to work.
>
> Secondly, I have a question regarding the use of special pair in the exclusions in the neighbor list (hoomd.md.nlist). I want to have two types of special pairs which I want to use for purely repulsive LJ (the one I mentioned above) and the other one for normal LJ potential. When I am providing different names to the special pair, it is not working.
> Can you please suggest what can I do?
>
> Thanks,
> Deepika
> To view this discussion on the web visit
https://groups.google.com/d/msgid/hoomd-users/6819e84c-c6a7-4a5d-8e19-c05cc686b4c6n%40googlegroups.com.