-
Hi, I am trying to calculate the Radial Distribution Function (RDF) of salt ions to water molecules in a 2 phase system of ice and water. I allowed the system to progress such that some ions have been trapped in the ice and the remainder are in the solution. I have already located the phase boundary and use that to select the ions on in each phase. I also use it to select the oxygens of each water molecule in each phase. I then input these into necessary functions, run, and plot the results. However, the plots have been showing a normalization at 2 or higher rather than at 1 and I am not sure what to change about it. Is there something I am doing wrong/missing that I need to fix to get the correct normalization? My code is shown below:
The results are plotted in the following figure. Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
@ahrazz99 would you be able to examine a longer RDF cutoff (if needed in a larger system) for the ice system? Ice has a periodic structure with a lot more coherence and lower entropy than water and may have long range structure at > 14 A. Perhaps some snapshots of your system may also help. |
Beta Was this translation helpful? Give feedback.
Hi, sorry for the slow response.
So it looks like the reason it is decaying to 0 is that there is empty space in your box! When the averaging is done for the RDF, even if the empty box is eventually filled, the time average will still see the empty box, so it will drop below one. An RDF that decays neatly to one is a function of the periodicity of the system.