Skip to content

Commit

Permalink
📝 docs(post): update LAMMPS scripting guide with additional tags and …
Browse files Browse the repository at this point in the history
…improved command formatting
  • Loading branch information
chriskyfung committed Dec 29, 2024
1 parent 6e6c725 commit 067d64b
Showing 1 changed file with 16 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,14 @@ layout: post
title: "Tip for scripting LAMMPS: Create And Rename A Folder Based On The Input Variables"
author: chris
date: 2014-07-12
categories: [Academic]
tags: [LAMMPS, Linux, Command-line, Molecular dynamics]
categories:
- Academic
tags:
- LAMMPS
- Linux
- Bash
- Command-line
- Molecular dynamics
css:
syntax: true
---
Expand All @@ -22,11 +28,15 @@ img="lammps/new_3folder_80x80.png" alt="image: New folder with LAMMPS scripts" c

### Methods

I use the mkdir and cp commands this time.
I use the `mkdir` and `cp` commands this time.

`shell mkdir FOLDERNAME` make a new directory named to be FOLDERNAME
```shell
# make a new directory named to be FOLDERNAME
mkdir FOLDERNAME

`shell cp FILENAME  DESTINATION` copy the file to another directory
# copy the file to another directory
cp FILENAME  DESTINATION
```

### Example input script

Expand Down Expand Up @@ -63,7 +73,7 @@ dump         1 all xyz  500 ${respath}/dump.*.lammpstrj
### Example command line
```bash
$ lammps_linux  -v potential  y1990 -v vx  1.0 < in.script
lammps_linux  -v potential  y1990 -v vx  1.0 < in.script
```
### Results
Expand Down

0 comments on commit 067d64b

Please sign in to comment.