-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
107 additions
and
2 deletions.
There are no files selected for viewing
5 changes: 5 additions & 0 deletions
5
examples/features/geometry_optimization/SD_pswater_with_fixatoms/init.xyz
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
3 | ||
# CELL(abcABC): 35.23300 35.23300 35.23300 90.00000 90.00000 90.00000 Traj: positions{angstrom} Step: 11 Bead: 0 | ||
O 0.00000e+00 -2.00000e-02 0.00000e+00 | ||
H 7.50000e-01 5.00000e-01 0.00000e+00 | ||
H -7.50000e-01 5.00000e-01 0.00000e+00 |
31 changes: 31 additions & 0 deletions
31
examples/features/geometry_optimization/SD_pswater_with_fixatoms/input.xml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<simulation mode='static' verbosity='high'> | ||
<output prefix='simulation'> | ||
<properties stride='1' filename='out'> [ step, potential ] </properties> | ||
<trajectory filename='pos' stride='1'> positions </trajectory> | ||
</output> | ||
<total_steps> 1000 </total_steps> | ||
<prng> | ||
<seed> 32342 </seed> | ||
</prng> | ||
<ffsocket name='pswater' mode='unix' pbc='false'> | ||
<address> h2o-geop </address> | ||
</ffsocket> | ||
<system> | ||
<initialize nbeads='1'> | ||
<file mode='xyz'> init.xyz </file> | ||
</initialize> | ||
<forces> | ||
<force forcefield='pswater'> </force> | ||
</forces> | ||
<motion mode='minimize'> | ||
<fixatoms>[0]</fixatoms> | ||
<optimizer mode='sd'> | ||
<tolerances> | ||
<energy> 1e-5 </energy> | ||
<force> 1e-5 </force> | ||
<position> 1e-5 </position> | ||
</tolerances> | ||
</optimizer> | ||
</motion> | ||
</system> | ||
</simulation> |
16 changes: 16 additions & 0 deletions
16
examples/features/geometry_optimization/SD_pswater_with_fixatoms/run.sh
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
ipi=i-pi | ||
driver="i-pi-driver -m pswater -u -a h2o-geop" | ||
sleep_time=4 | ||
|
||
${ipi} input.xml > log.i-pi & | ||
echo "# i-PI is running" | ||
|
||
echo "# Waiting for ${sleep_time} (s) before executing driver" | ||
sleep ${sleep_time} | ||
|
||
${driver} > /dev/null & | ||
echo "# Driver is running" | ||
|
||
wait | ||
|
||
echo "# Simulation complete" |
5 changes: 5 additions & 0 deletions
5
examples/features/geometry_optimization/SD_pswater_with_fixdofs/init.xyz
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
3 | ||
# CELL(abcABC): 35.23300 35.23300 35.23300 90.00000 90.00000 90.00000 Traj: positions{angstrom} Step: 11 Bead: 0 | ||
O 0.00000e+00 -2.00000e-02 0.00000e+00 | ||
H 7.50000e-01 5.00000e-01 0.00000e+00 | ||
H -7.50000e-01 5.00000e-01 0.00000e+00 |
31 changes: 31 additions & 0 deletions
31
examples/features/geometry_optimization/SD_pswater_with_fixdofs/input.xml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<simulation mode='static' verbosity='high'> | ||
<output prefix='simulation'> | ||
<properties stride='1' filename='out'> [ step, potential ] </properties> | ||
<trajectory filename='pos' stride='1'> positions </trajectory> | ||
</output> | ||
<total_steps> 1000 </total_steps> | ||
<prng> | ||
<seed> 32342 </seed> | ||
</prng> | ||
<ffsocket name='pswater' mode='unix' pbc='false'> | ||
<address> h2o-geop </address> | ||
</ffsocket> | ||
<system> | ||
<initialize nbeads='1'> | ||
<file mode='xyz'> init.xyz </file> | ||
</initialize> | ||
<forces> | ||
<force forcefield='pswater'> </force> | ||
</forces> | ||
<motion mode='minimize'> | ||
<fixatoms_dof>[0,1,2]</fixatoms_dof> | ||
<optimizer mode='sd'> | ||
<tolerances> | ||
<energy> 1e-5 </energy> | ||
<force> 1e-5 </force> | ||
<position> 1e-5 </position> | ||
</tolerances> | ||
</optimizer> | ||
</motion> | ||
</system> | ||
</simulation> |
16 changes: 16 additions & 0 deletions
16
examples/features/geometry_optimization/SD_pswater_with_fixdofs/run.sh
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
ipi=i-pi | ||
driver="i-pi-driver -m pswater -u -a h2o-geop" | ||
sleep_time=4 | ||
|
||
${ipi} input.xml > log.i-pi & | ||
echo "# i-PI is running" | ||
|
||
echo "# Waiting for ${sleep_time} (s) before executing driver" | ||
sleep ${sleep_time} | ||
|
||
${driver} > /dev/null & | ||
echo "# Driver is running" | ||
|
||
wait | ||
|
||
echo "# Simulation complete" |
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
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