A simple, curated web interface for browsing and viewing LAMMPS example files and potential files from the repo.
This is just a LAMMPS example and potential folder text browser/viewer/downloader - nothing more. It's designed for those who work across multiple computing environments and don't want to keep hunting for specific LAMMPS example or potentials files across different git pulls and github tree.
The viewer provides:
- Search and filter
- In-browser text viewing
- Direct links
- Download functionality
- No advanced fuzzy search
- No automatic updates from the LAMMPS repo
- No rich descriptions
Want to add a new example or potential? Great! Here's how:
- Fork this repository
- Edit the data file: To add an example, edit
data/examples.js
. To add a potential, editdata/potentials.js
. - Add your entry to the
exampleEntries
orpotentialEntries
array, following the existing format. Make sure to define theBASE_GITHUB_URL
if it's not already present at the top of the file.
For examples:
{
id: "unique-id",
name: "Display Name",
category: "category-name",
description: "Detailed description of what this example demonstrates",
path: "examples/folder-name", // relative to LAMMPS repo root
files: ["in.filename", "data.filename"], // list of files in the folder
keywords: ["keyword1", "keyword2", "keyword3"],
gitHubUrl: "URL_OR_REPO_TO_FOLDER"
}
For potentials:
{
id: "unique-id",
name: "filename.ext",
type: "Potential Type",
description: "Description of the potential and what systems it models",
elements: ["Element1", "Element2"],
path: "potentials/filename.ext", // relative to LAMMPS repo root
files: ["filename.ext", "anotherfile.ext"], // list of one or more files
keywords: ["keyword1", "keyword2"],
gitHubUrl: "URL_TO_REPO_TO_FILE"
}
- Submit a Pull Request with your changes
npm install
npm run dev
npm run build
This project is licensed under the GNU General Public License v2.0. See the LICENSE file for details.