1 |
|
#!/bin/sh |
2 |
< |
# |
2 |
> |
OPENMD_HOME=@CMAKE_INSTALL_PREFIX@ |
3 |
|
# This is a collection of sample commands that can be used to build |
4 |
|
# OpenMD start files. In OpenMD, the start files have a <MetaData> |
5 |
|
# block to give information about the kind of simulation being performed. |
22 |
|
# The thermalizer command takes the FCC.md file and resamples the velocities |
23 |
|
# from a Maxwell-Boltzmann distribution set to 100K: |
24 |
|
# |
25 |
< |
../../bin/simpleBuilder -o FCC.md --nx=5 --ny=5 --nz=5 --density=1.0 one_component.md |
26 |
< |
../../bin/thermalizer -o FCC-100K.md -t 100 FCC.md |
25 |
> |
${OPENMD_HOME}/bin/simpleBuilder -o FCC.md --nx=5 --ny=5 --nz=5 --density=1.0 one_component.md |
26 |
> |
${OPENMD_HOME}/bin/thermalizer -o FCC-100K.md -t 100 FCC.md |
27 |
|
# |
28 |
|
# Example 2: |
29 |
|
# Builds an FCC lattice from the <MetaData> block in three_component.md |
34 |
|
# Note that builders will rewrite the number of molecules in each component |
35 |
|
# to match the number of lattice sites. |
36 |
|
# |
37 |
< |
../../bin/randomBuilder -o random_FCC.md --nx=4 --ny=4 --nz=4 --density=1.0 --molFraction=0.4 --molFraction=0.4 three_component.md |
38 |
< |
../../bin/thermalizer -o random_FCC-100K.md -t 100 random_FCC.md |
37 |
> |
${OPENMD_HOME}/bin/randomBuilder -o random_FCC.md --nx=4 --ny=4 --nz=4 --density=1.0 --molFraction=0.4 --molFraction=0.4 three_component.md |
38 |
> |
${OPENMD_HOME}/bin/thermalizer -o random_FCC-100K.md -t 100 random_FCC.md |
39 |
|
# |
40 |
|
# Example 3: |
41 |
|
# Builds a spherical nanoparticle (FCC) from the <MetaData> block in gold.md |
46 |
|
# Note that builders will rewrite the number of molecules in each component |
47 |
|
# to match the number of lattice sites. |
48 |
|
# |
49 |
< |
../../bin/nanoparticleBuilder -o gold_sphere.md --radius=30.0 --latticeConstant=4.09 gold.md |
50 |
< |
../../bin/thermalizer -o gold_sphere-500K.md -t 500.0 gold_sphere.md |
49 |
> |
${OPENMD_HOME}/bin/nanoparticleBuilder -o gold_sphere.md --radius=30.0 --latticeConstant=4.09 gold.md |
50 |
> |
${OPENMD_HOME}/bin/thermalizer -o gold_sphere-500K.md -t 500.0 gold_sphere.md |
51 |
|
# |
52 |
|
# Example 4: |
53 |
|
# Builds a random alloy spherical nanoparticle (FCC) from the <MetaData> |
59 |
|
# Note that builders will rewrite the number of molecules in each component |
60 |
|
# to match the number of lattice sites. |
61 |
|
# |
62 |
< |
../../bin/nanoparticleBuilder -o Au_Ag_alloy.md --radius=30.0 --latticeConstant=4.09 --molFraction=0.4 bimetallic.md |
63 |
< |
../../bin/thermalizer -o Au_Ag_alloy-600K.md -t 600 Au_Ag_alloy.md |
62 |
> |
${OPENMD_HOME}/bin/nanoparticleBuilder -o Au_Ag_alloy.md --radius=30.0 --latticeConstant=4.09 --molFraction=0.4 bimetallic.md |
63 |
> |
${OPENMD_HOME}/bin/thermalizer -o Au_Ag_alloy-600K.md -t 600 Au_Ag_alloy.md |
64 |
|
# |
65 |
|
# Example 5: |
66 |
|
# Builds a Au(core)-Ag(shell) spherical nanoparticle (FCC) from the <MetaData> |
72 |
|
# Note that builders will rewrite the number of molecules in each component |
73 |
|
# to match the number of lattice sites. |
74 |
|
# |
75 |
< |
../../bin/nanoparticleBuilder -o Au-core-Ag-shell.md --radius=30.0 --latticeConstant=4.09 --shellRadius=12.5 bimetallic.md |
76 |
< |
../../bin/thermalizer -o Au-core-Ag-shell-800K.md -t 800.0 Au-core-Ag-shell.md |
75 |
> |
${OPENMD_HOME}/bin/nanoparticleBuilder -o Au-core-Ag-shell.md --radius=30.0 --latticeConstant=4.09 --shellRadius=12.5 bimetallic.md |
76 |
> |
${OPENMD_HOME}/bin/thermalizer -o Au-core-Ag-shell-800K.md -t 800.0 Au-core-Ag-shell.md |
77 |
|
# |
78 |
|
# Example 6: |
79 |
|
# Reverses example 5 by building a Ag(core)-Au(shell) spherical nanoparticle. |
87 |
|
# but since the components are reversed in this example, both are specified: |
88 |
|
# |
89 |
|
# |
90 |
< |
../../bin/nanoparticleBuilder -o Ag-core-Au-shell.md --radius=30.0 --latticeConstant=4.09 --shellRadius=30.0,12.5 bimetallic.md |
91 |
< |
../../bin/thermalizer -o Ag-core-Au-shell-800K.md -t 800.0 Ag-core-Au-shell.md |
90 |
> |
${OPENMD_HOME}/bin/nanoparticleBuilder -o Ag-core-Au-shell.md --radius=30.0 --latticeConstant=4.09 --shellRadius=30.0,12.5 bimetallic.md |
91 |
> |
${OPENMD_HOME}/bin/thermalizer -o Ag-core-Au-shell-800K.md -t 800.0 Ag-core-Au-shell.md |
92 |
|
# |
93 |
|
# Example 7: |
94 |
|
# Builds a Au(core)-Ag(shell) spherical nanoparticle (FCC) from the <MetaData> |
100 |
|
# This example also introduces 70% vacancies in a 6 angstrom radial band |
101 |
|
# around the bimetallic interface: |
102 |
|
# |
103 |
< |
../../bin/nanoparticleBuilder -o vacancy_interface.md --radius=20.0 --latticeConstant=4.09 --shellRadius=12.5 --vacancyPercent=70 --vacancyInnerRadius=9.5 --vacancyOuterRadius=15.5 bimetallic.md |
104 |
< |
../../bin/thermalizer -o vacancy_interface-800K.md -t 800 vacancy_interface.md |
103 |
> |
${OPENMD_HOME}/bin/nanoparticleBuilder -o vacancy_interface.md --radius=20.0 --latticeConstant=4.09 --shellRadius=12.5 --vacancyPercent=70 --vacancyInnerRadius=9.5 --vacancyOuterRadius=15.5 bimetallic.md |
104 |
> |
${OPENMD_HOME}/bin/thermalizer -o vacancy_interface-800K.md -t 800 vacancy_interface.md |
105 |
|
# |
106 |
|
# Example 8: |
107 |
|
# Builds a random alloy spherical nanoparticle with 30% vacancies using the |
110 |
|
# Places the output (which can be used to start an OpenMD job) in |
111 |
|
# vacancy_alloy.md |
112 |
|
# |
113 |
< |
../../bin/nanoparticleBuilder -o vacancy_alloy.md --radius=30.0 --latticeConstant=4.09 --molFraction=0.4 --vacancyPercent=80 bimetallic.md |
114 |
< |
../../bin/thermalizer -o vacancy_alloy-900K.md -t 900 vacancy_alloy.md |
113 |
> |
${OPENMD_HOME}/bin/nanoparticleBuilder -o vacancy_alloy.md --radius=30.0 --latticeConstant=4.09 --molFraction=0.4 --vacancyPercent=80 bimetallic.md |
114 |
> |
${OPENMD_HOME}/bin/thermalizer -o vacancy_alloy-900K.md -t 900 vacancy_alloy.md |
115 |
> |
# |
116 |
> |
#Example 9: |
117 |
> |
# Builds a spherically-capped nanorod (FCC) from the <MetaData> block in gold.md |
118 |
> |
# using a nanorod radius of 20 Angstroms, a length of 50 Angstroms and a lattice constant of 4.08 |
119 |
> |
# angstroms. Places the output (which can be used to start an OpenMD job) in |
120 |
> |
# gold_fccrod.md |
121 |
> |
# |
122 |
> |
# Note that builders will rewrite the number of molecules in each component |
123 |
> |
# to match the number of lattice sites. |
124 |
> |
# |
125 |
> |
${OPENMD_HOME}/bin/nanorodBuilder -o gold_fccrod.md --radius=20.0 --length=50.0 --latticeConstant=4.08 gold.md |
126 |
> |
# |
127 |
> |
#Example 10: |
128 |
> |
# Builds a pentagonal nanorod from the <MetaData> block in gold.md |
129 |
> |
# using a nanorod radius of 15 Angstroms, a length of 64 Angstroms and a lattice constant of 4.08 |
130 |
> |
# angstroms. Places the output (which can be used to start an OpenMD job) in |
131 |
> |
# gold_pentrod.md |
132 |
> |
# |
133 |
> |
# Note that builders will rewrite the number of molecules in each component |
134 |
> |
# to match the number of lattice sites. |
135 |
> |
# |
136 |
> |
${OPENMD_HOME}/bin/nanorod_pentBuilder -o gold_pentrod.md --radius=15.0 --length=64.0 --latticeConstant=4.08 gold.md |
137 |
> |
# |
138 |
> |
#Example 11: |
139 |
> |
# Builds a Mackay icosahedral nanoparticle from the <MetaData> block in gold.md |
140 |
> |
# using a 8 shells, and a lattice constant of 4.08 angstroms. |
141 |
> |
# Places the output (which can be used to start an OpenMD job) in |
142 |
> |
# gold_ico.md |
143 |
> |
# |
144 |
> |
# Note that builders will rewrite the number of molecules in each component |
145 |
> |
# to match the number of lattice sites. |
146 |
> |
# |
147 |
> |
${OPENMD_HOME}/bin/icosahedralBuilder -o gold_ico.md --shells=8 --latticeConstant=4.08 gold.md |
148 |
> |
${OPENMD_HOME}/bin/thermalizer -o gold_ico_300K.md -t 300 gold_ico.md |