Kindfield
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties Friends Pages
Functions | Variables
electrostatic_potential Namespace Reference

Functions

def draw_atoms
 

Variables

tuple parser = ArgumentParser()
 
tuple args = parser.parse_args()
 
string output_dir = "tmp"
 
string path_name = "/home/svenni/Dropbox/projects/programming/hartree-fock/build-hartree-fock-stan-Desktop_Qt_5_2_1_GCC_64bit-Release/app"
 
tuple atoms_data_file = h5py.File(join(path_name, "results.h5"))
 
tuple atom_meta = atoms_data_file.get("atomMeta")
 
tuple atoms = atoms_data_file.get("state")
 
string file_name = "electrostatic_potential.h5"
 
tuple density_file = h5py.File(join(path_name, file_name))
 
tuple data = density_file.get("dataset")
 
tuple n_electrons = draw_atoms(atoms, atom_meta)
 
tuple data_max_min_diff = (data.max() - data.min())
 
list levels = [0.0003, 0.008]
 
list contours = []
 
tuple iso = mlab.contour3d(X, Y, Z, data, vmin=contours[0], vmax=contours[-1], opacity=0.5, contours=contours)
 

Function Documentation

def electrostatic_potential.draw_atoms (   atoms,
  atom_meta 
)

Definition at line 28 of file electrostatic_potential.py.

28 
29 def draw_atoms(atoms, atom_meta):
30  n_electrons = 0
31  counter = 0
32  for atom in atoms:
33  if atom_meta[counter]["type"] == 1:
34  color = (1, 1, 1)
35  elif atom_meta[counter]["type"] == 8:
36  color = (1, 0, 0)
37  else:
38  color = (1, 1, 0)
39  mlab.points3d(atom[0], atom[1], atom[2],
40  scale_factor=0.3,
41  resolution=20,
42  color=color,
43  scale_mode='none')
44  counter += 1
45  return n_electrons
46 
#path_name = "/home/svenni/Dropbox/projects/programming/hartree-fock/build-hartree-fock-Desktop_Qt_5_2_1_GCC_64bit-Release/app"

Variable Documentation

tuple electrostatic_potential.args = parser.parse_args()

Definition at line 14 of file electrostatic_potential.py.

tuple electrostatic_potential.atom_meta = atoms_data_file.get("atomMeta")

Definition at line 50 of file electrostatic_potential.py.

tuple electrostatic_potential.atoms = atoms_data_file.get("state")

Definition at line 51 of file electrostatic_potential.py.

tuple electrostatic_potential.atoms_data_file = h5py.File(join(path_name, "results.h5"))

Definition at line 49 of file electrostatic_potential.py.

list electrostatic_potential.contours = []

Definition at line 68 of file electrostatic_potential.py.

tuple electrostatic_potential.data = density_file.get("dataset")

Definition at line 56 of file electrostatic_potential.py.

tuple electrostatic_potential.data_max_min_diff = (data.max() - data.min())

Definition at line 66 of file electrostatic_potential.py.

tuple electrostatic_potential.density_file = h5py.File(join(path_name, file_name))

Definition at line 55 of file electrostatic_potential.py.

string electrostatic_potential.file_name = "electrostatic_potential.h5"

Definition at line 54 of file electrostatic_potential.py.

tuple electrostatic_potential.iso = mlab.contour3d(X, Y, Z, data, vmin=contours[0], vmax=contours[-1], opacity=0.5, contours=contours)

Definition at line 72 of file electrostatic_potential.py.

list electrostatic_potential.levels = [0.0003, 0.008]

Definition at line 67 of file electrostatic_potential.py.

tuple electrostatic_potential.n_electrons = draw_atoms(atoms, atom_meta)

Definition at line 65 of file electrostatic_potential.py.

tuple electrostatic_potential.output_dir = "tmp"

Definition at line 16 of file electrostatic_potential.py.

tuple electrostatic_potential.parser = ArgumentParser()

Definition at line 11 of file electrostatic_potential.py.

string electrostatic_potential.path_name = "/home/svenni/Dropbox/projects/programming/hartree-fock/build-hartree-fock-stan-Desktop_Qt_5_2_1_GCC_64bit-Release/app"

Definition at line 47 of file electrostatic_potential.py.