I’m a beginner user of LAMMPS, I’ve been running some cases and now I need to plot some results but not sure how to get plots from there results. A bit confusing for me. Any help will be greatly appreciated. Thanks
log.lammps (54.6 KB)
press.log (1.7 KB)
gnuplot> p 'press.log' u 2:5 w l,'' u 2:6 w l,'' u 2:7 w l
Thanks much for your help. I’m trying to get lz and vx data in just one file to plot them but not sure how to do it???,have not been able to do it, any help will be appreciated. thanks much
in.pressure1a (1.9 KB)
If you want more help than you have been given, you need to provide more details about what exactly you have tried and why and how it failed to be usable. You cannot expect somebody to be doing all of your work for you by stating your inability to achieve it yourself.
Thanks for your reply. Maybe I was not so clear. I have run about ten different cases/simulations. I’ve doing some post-proccessing. I have plotted a lot data. I need to plot lz vs vx. So I added this line to get velocity:
fix vel fluid ave/chunk 100 1000 100000 cc01 vx vy file tmp.out
I get data for vx and vy and the pressure.log file generates lz data. However, not sure how to set up just one file in which I can gather vz and lz??? as they are generated in separate files.
Thanks much
Well, looking for LAMMPS to do this for you is looking in the wrong place. This is clearly a post-processing task that requires some programming of your own for example in Python or some other script/programming language that you are familiar with.
Right, thanks. what’s the right syntax to run this: log2txt.py, I have installed all the dependencies required but I still get “command not found”
Thanks
Your problem is of more general nature. The error message is from the shell program and would show in case a program is not in a folder listed in the PATH environment variable or does not have executable permissions.