Updated ipython examples

This commit is contained in:
Richard Berger
2016-07-14 17:50:20 -04:00
parent b232cc29df
commit 7bc6d1cfd2
3 changed files with 78 additions and 41 deletions

File diff suppressed because one or more lines are too long

View File

@ -73,7 +73,7 @@
},
"outputs": [],
"source": [
"from lammps import lammps, LammpsIPythonWrapper"
"from lammps import lammps, IPyLammps"
]
},
{
@ -85,7 +85,7 @@
"outputs": [],
"source": [
"lmp = lammps()\n",
"L = LammpsIPythonWrapper(lmp)"
"L = IPyLammps(lmp)"
]
},
{
@ -207,7 +207,7 @@
{
"data": {
"text/plain": [
"System(nangles=0, atom_style='bond', style='lj/cut', nimpropertypes=0, zlo=-0.582767, orthogonal_box=[58.2767, 40.3753, 1.16553], natoms=361, dihedral_style='none', angle_style='none', xhi=58.2767, dimensions=2, improper_style='none', xlo=0.0, ntypes=1, atom_map='array', bond_style='harmonic', molecule_type='standard', nbondtypes=1, kspace_style='none', nangletypes=0, nimpropers=0, ylo=0.0, units='lj', yhi=40.3753, zhi=0.582767, ndihedrals=0, boundaries='f,f f,f p,p', nbonds=1014)"
"System(xlo=0.0, dihedral_style='none', atom_style='bond', xhi=58.2767, yhi=40.3753, orthogonal_box=[58.2767, 40.3753, 1.16553], boundaries='f,f f,f p,p', dimensions=2, atom_map='array', zhi=0.582767, ylo=0.0, bond_style='harmonic', units='lj', nimpropertypes=0, molecule_type='standard', style='lj/cut', kspace_style='none', ntypes=1, natoms=361, zlo=-0.582767, improper_style='none', ndihedrals=0, nbonds=1014, nangles=0, nimpropers=0, angle_style='none', nbondtypes=1, nangletypes=0)"
]
},
"execution_count": 6,
@ -295,7 +295,7 @@
{
"data": {
"text/plain": [
"Communication(mpi_version='MPI v3.0', nprocs=1, ghost_velocity=False, comm_style='brick', comm_layout='uniform', nthreads=1, proc_grid=[1, 1, 1])"
"Communication(nprocs=1, ghost_velocity=False, proc_grid=[1, 1, 1], nthreads=1, comm_style='brick', mpi_version='MPI v3.0', comm_layout='uniform')"
]
},
"execution_count": 10,
@ -427,7 +427,7 @@
{
"data": {
"text/plain": [
"{'a': <lammps.Variable at 0x7ffa2c48a5f8>}"
"{'a': <lammps.Variable at 0x7f9de49096a0>}"
]
},
"execution_count": 16,
@ -460,8 +460,8 @@
{
"data": {
"text/plain": [
"{'a': <lammps.Variable at 0x7ffa2c48a198>,\n",
" 't': <lammps.Variable at 0x7ffa2c48a550>}"
"{'a': <lammps.Variable at 0x7f9de4909588>,\n",
" 't': <lammps.Variable at 0x7f9de4909668>}"
]
},
"execution_count": 18,
@ -711,7 +711,7 @@
{
"data": {
"text/plain": [
"<lammps.Atom at 0x7ffa2c48ae80>"
"<lammps.Atom at 0x7f9de4909c50>"
]
},
"execution_count": 30,

File diff suppressed because one or more lines are too long