Polymer generating libraries and a few other functions.
C++ 9.0 and above
make
- Download the tar file. Extract to install location.
tar -xf Polylib.tar
OR
git clone https://github.com/SerpentByte/PolyLib.git - mv Polylib
- cd /Polylib
- make
- echo
"export PATH=\$PATH:<install location>/Polylib/bin" >> ~/.bashrc - source ~/.bashrc
- pwd /home/user/Downloads
- tar -xf Polylib.tar
- mv Polylib /home/user/programs
- cd /home/user/programs/Polylib
- make
- echo
"export PATH=\$PATH:/home/user/programs/Polylib/bin" >> ~/.bashrc - source ~/.bashrc
If you type the command without any options, usage will be shown.
-
rnd rnd -beads <integer> -sig <float>
Essential flags -beads <number of beads in the polymer> -sig <size of one bead> Optional flags -o <output> Output file name [default = out.gro] -bond <value> Manual bond distance [default = sigma] -c Center polymer inside box (overrides -centre) -box <a> <b> <c> (a,b,c) are box side lengths [default = (0,0,0)] -centre <x> <y> <z> Define center [default (0,0,0)] -avoid <true/false> Self avoiding beads [default true] -nt [default 1] -v Verbose. Print parameters. -
box box -beads <integer> -sig <float> -box <float> <float> <float>
Essential flags -beads <number of beads in the polymer> -sig <size of one bead> -box <a> <b> <c> (a, b, c are box side lengths) Optional flags -o <output> Output file name [default = out.gro] -bond <value> Manual bond distance [default = sigma] -c Center polymer inside box (overrides -centre) -box <a> <b> <c> (a,b,c) are box side lengths [default = (0,0,0)] -centre <x> <y> <z> Define center [default (0,0,0)] -avoid <true/false> Self avoiding beads [default true] -nt [default 1] -v Verbose. Print parameters. -
sph sph -beads <integer> -sig <float> -r <float>
Essential flags -beads <number of beads in the polymer> -sig <size of one bead> -r <r> (radius of the sphere) Optional flags -o <output> Output file name [default = out.gro] -bond <value> Manual bond distance [default = sigma] -c Center polymer inside box (overrides -centre) -centre <x> <y> <z> Define center [default (0,0,0)] -avoid <true/false> Self avoiding beads [default true] -nt [default 1] -v Verbose. Print parameters. Box is set to (2r, 2r, 2r) by default.
-
spcl sph -beads <integer> -sig <float> -r <float> -l <float>
Essential flags -beads <number of beads in the polymer> -sig <size of one bead> -r <r> (radius of the sphere) -l <length of cylinder including end-caps> Optional flags -o <output> Output file name [default = out.gro] -bond <value> Manual bond distance [default = sigma] -c Center polymer inside box (overrides -centre) -centre <x> <y> <z> Define center [default (0,0,0)] -avoid <true/false> Self avoiding beads [default true] -nt [default 1] -v Verbose. Print parameters. Box is set to (2r, 2r, l) by default.
-
re re -f
- rm -rf /Polylib
- edit .bashrc and remove the line
export PATH=$PATH:<install location>/Polylib/bin
- rm -rf /home/user/programs/Polylib
- edit .bashrc in your home using any text editor and remove the following line
export PATH=$PATH:/home/user/programs/Polylib/bin