New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add simple LAMMPS GUI using Qt library #3870
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…n file from command line.
@lammps/core I just realized, after merging this we have to change one of the statements on the LAMMPS home page. With this PR LAMMPS is no longer a software without at GUI (albeit a very minimal one). 😉 |
sjplimp
approved these changes
Aug 1, 2023
stanmoore1
approved these changes
Aug 2, 2023
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this a lot, has potential.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
This pull request implements a simple LAMMPS GUI. It is by design very similar to using using a text editor and the command line. The main difference is that the application is linked to the LAMMPS library and thus can execute LAMMPS directly without calling an executable. That makes it a convenient choice in graphical desktop environments like Linux with Gnome or macOS or Windows. While not complete, it is quite usable already.
Related Issue(s)
Please see
https://matsci.org/t/wanted-collaborator-with-experience-in-programming-qt-for-implementing-a-lightweight-lammps-gui/49858
Author(s)
Axel Kohlmeyer, Temple U
Licensing
By submitting this pull request, I agree, that my contribution will be included in LAMMPS and redistributed under either the GNU General Public License version 2 (GPL v2) or the GNU Lesser General Public License version 2.1 (LGPL v2.1).
Backward Compatibility
N/A
Implementation Notes
This is based on a text editor tutorial for Qt with syntax highlighting added. There are several ideas that still need to be implemented some of which require a collaborator with experience in programming with Qt. See the included TODO file. Some of the available and planned functionality are similar to what the LAMMPS shell offers.
This creates a LAMMPS instance via the library interface and feeds it either individual commands or the entire buffer (with an automatic "clear" command inserted beforehand). Of course there is no MPI support, but OpenMP is possible.
One particular property is that any filename to be opened will be converted to an absolute path, the directory part extracted and the current working directory will be changed to that, so it can read external files, e.g. data files when loading, testing benchmark or example inputs from the GUI.
CMake is required.
Post Submission Checklist
Further Information, Files, and Links
Below is a screenshot of the state when this pull request was submitted.