I am trying to calculate morphology of polymer in solvent (ex water) using two different reax/c force fields and interaction between polymer and water atoms using lj/charmm/coul/long.
But I am getting segmentation error…
my input file is:
units real
dimension 3
boundary p p p
atom_style charge
---------- Create Atoms ---------------------
read_data data_right_middle_left.FC
group PssPedot id <= 14112
group water id >= 14113
pair_style hybrid reax/c NULL checkqeq no safezone 16 mincap 1000 reax/c NULL checkqeq no safezone 16 mincap 1000 lj/charmm/coul/long 8.0 10.0 10.0
pair_coeff * * reax/c 1 ffield_Castro_CombFlame C C O H S C O O H H S NULL NULL
pair_coeff * * reax/c 2 ffield.protein NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL H O
Yes, reax/c supports being called more than once in hybrid or hybrid/overlay.
I think mixing 2 sets of reaxff parameters is the same as hybridizing reaxff with other pair styles - not a big problem if you define interactions between cross terms properly.
Sandeep turned off fix qeq/reax, so he avoided this problem. If qeq/reax were to be used, then two fixes must be defined and be separately applied to different groups.
I can run a test problem with 2 reax/c styles over hybird/overy. Can you try updating your LAMMPS version to a more current one, then report back when you see the seg fault? You can also post the data file so I can run your script and take a look.
Thanks for your kind mail. I updated the Lammps to 10 August 2015 stable version but still facing segmentation problem. I am attaching my data and input file. Please have a look and can you kindly post your test run so I can also have a look at it.
When you said seg fault, I expected it to occur right away after the simulation starts. However, I can run the first 300 steps okay. If it seg faults later, it is highly likely a result of bad dynamics. After all, mixing 2 reaxff potentials in this way is highly risky and not recommended.
If you still want me to look at it, please generate a restart file that fails right before (within a couple hundred steps is okay) the seg fault.
“After all, mixing 2 reaxff potentials in this way is highly risky and not recommended.”
Ray is being polite.
Any calculations you make mixing two ReaxFF will not be considered valid unless you go through a complete validation process and even then you are violating the fundamental basis for the method. Read Adri van Duin’s papers and create a new ReaxFF for your system.