Hello all,
I am trying to simulate stable argon nano droplet on gold surface. I have relaxed the structure. For contact angle calculation I need to output the density profile. I am using the following command but not getting anything near what I want. Would anyone please help me out?
My bad, I am describing everything here.
I want to simulate a stable nano droplet of Argon interacting with solid surface of Au substrate. I have to relax the structure first for stable nano droplet (No atoms flying out of the surface). I am running 100000 steps for that using nvt ensemble, and after that I am running another 100000 steps and I want to output density profile (Density vs radial distance) during these steps. From that profile, I want to calculate the contact angle of the liquid and solid surface.
My question is,
How can I output density profile from which I can calculate contact angle?
I am putting up my code below,
stable Ar nanodroplet
units real
atom_style atomic
boundary s s s
processors 2 2 2
dump config all custom 600000 Ar.droplet.config.* id type x y z vx vy vz
dump_modify config format line “%8d %5d %25.18g %25.18g %25.18g %20.13g %20.13g %20.13g”
You answered most of them, but it looks like you need help in doing basic scientific research work beyond what we can provide here.
If you don’t know what to do, why did you choose it?
Your figure shows a graph labeled in x- and z- direction (how was this obtained?), but the cylinder binning is in direction of the given axis and radial distance orthogonal to it. The format of the output data is explained in the fix ave/chunk documentation.
If you need to learn how to do post-processing of data and in particular how to process and visualize data created by LAMMPS, you need to build your skills and start with something much simpler (say a 1d binning density profile). Run the computation, figure out how to process the data, compare it to what you should get and then move on to a more complex procedure. For as long as you only move on to the next step when you have mastered the current, you will eventually reach your goal.
But you cannot expect that there is a simple “do this, not that” kind of answer or somebody that will sit down and provide you with the result and work that you should be doing.
Basically, any kind of question of the kind “how do it do this task?” is something that you need to work on with your adviser or colleagues or similar. The forum can help more with the more technical aspects, e.g. when you get errors or when your output has a different format than what is written in the documentation. LAMMPS input is in many ways like a programming language, we can help with the syntax, but the program itself you have to write yourself.
One final remark, if you do a little research of the literature on how to obtain the contact angle from molecular dynamics, you should quickly find some useful discussions on what are suitable approaches. Your strategy of binning and deriving a geometry from that is not likely going to be very useful or accurate. Transferring macroscopic methods to the atomic scale rarely works.
Radius/height are not well defined for atomic systems. Unlike with macroscopic systems, you don’t have a well defined surface since the atoms are represented by point particles. This is a double problem since a) you have a system with mostly vacuum and a few points and b) you would have to consider the size of the atoms but that is also not a well defined property.
Also, you cannot really define a density map on an atomic scale (it would be very noisy and very coarse) so trying the kind of contour mapping and analyzing cannot easily work. To get a representation of the surface you would need to apply some completely different method, i.e. some kind of tessellation, but that is also not so easily usable since you also have fluctuations and thus would have to average over a sufficient period to get converged results.
As I have mentioned before, there are publications discussing how to determine the property you are looking for and even publications comparing the shortcomings and benefits of different methods. You seem to be trying to apply logic and methods that are suitable for macroscopic experiment to atom scale data without taking into account the differences.
Thank you so much for your detailed answer. I have gone through 5/6 publications but none of them mentioned anything about the code in LAMMPS. They just mentioned the result.
Then you should search more specifically for methods to compute the contact angle. I did a quick Google search and found multiple publications easily that are describing or discussing different methods.