Kindfield
|
Functions | |
def | find_nearest_index |
Variables | |
tuple | parser = ArgumentParser() |
tuple | args = parser.parse_args() |
tuple | output_dir = os.path.abspath("tmp") |
states_files = args.two_body_states | |
energy_min = inf | |
energy_max = -inf | |
list | energies = [] |
list | r12s = [] |
tuple | f = h5py.File(statesFile, "r") |
tuple | atomsMeta = f.get("atomMeta") |
list | energyOffset = atomsMeta.attrs["energyOffset"] |
tuple | states = f.get("/states") |
tuple | atoms = states.get(stateName) |
list | r12 = atoms.attrs["r12"] |
list | energy = atoms.attrs["energy"] |
tuple | two_body_r12s = array(r12s) |
tuple | two_body_energies = array(energies) |
dictionary | plots = {} |
energy_differences_min = inf | |
energy_differences_max = -inf | |
list | r13 = atoms.attrs["r13"] |
list | angle = atoms.attrs["angle"] |
string | plot_name = "%.4f" |
atom2_x = r12 | |
tuple | atom3_x = cos(angle) |
tuple | atom3_y = sin(angle) |
tuple | r23_vector = array([atom3_x - atom2_x, atom3_y - 0.0, 0.0 - 0.0]) |
tuple | r23 = linalg.norm(r23_vector) |
tuple | index12 = find_nearest_index(two_body_r12s, r12) |
tuple | index13 = find_nearest_index(two_body_r12s, r13) |
tuple | index23 = find_nearest_index(two_body_r12s, r23) |
list | energy_difference = energy-two_body_energies[index12] |
list | r12_min = atomsMeta.attrs["r12Min"] |
list | r12_max = atomsMeta.attrs["r12Max"] |
list | r13_min = atomsMeta.attrs["r13Min"] |
list | r13_max = atomsMeta.attrs["r13Max"] |
list | angle_min = atomsMeta.attrs["angleMin"] |
list | angle_max = atomsMeta.attrs["angleMax"] |
tuple | r13s = linspace(r13_min, r13_max, 25) |
tuple | n_plots = len(plots) |
tuple | n_plots_per_dim = int(sqrt(n_plots) + 1) |
int | plot_counter = 1 |
vmin = energy_differences_min | |
vmax = energy_differences_max | |
tuple | fig = figure(figsize=(10,10)) |
tuple | ax = fig.add_subplot(n_plots_per_dim, n_plots_per_dim, plot_counter) |
list | values = plots[plot_name] |
tuple | grid_energies = griddata(array(values["r12s_r13s"]), array(values["energies"]), (grid_r12s, grid_r13s), method="nearest") |
tuple | grid_energy_differences = griddata(array(values["r12s_r13s"]), array(values["energy_differences"]), (grid_r12s, grid_r13s), method="nearest") |
tuple | img = contour(r12s, r13s, grid_energy_differences, 50, vmin=vmin, vmax=vmax) |
def plot_three_particle_contribution.find_nearest_index | ( | array, | |
value | |||
) |
Definition at line 9 of file plot_three_particle_contribution.py.
list plot_three_particle_contribution.angle = atoms.attrs["angle"] |
Definition at line 93 of file plot_three_particle_contribution.py.
list plot_three_particle_contribution.angle_max = atomsMeta.attrs["angleMax"] |
Definition at line 125 of file plot_three_particle_contribution.py.
list plot_three_particle_contribution.angle_min = atomsMeta.attrs["angleMin"] |
Definition at line 124 of file plot_three_particle_contribution.py.
tuple plot_three_particle_contribution.args = parser.parse_args() |
Definition at line 17 of file plot_three_particle_contribution.py.
plot_three_particle_contribution.atom2_x = r12 |
Definition at line 97 of file plot_three_particle_contribution.py.
tuple plot_three_particle_contribution.atom3_x = cos(angle) |
Definition at line 99 of file plot_three_particle_contribution.py.
tuple plot_three_particle_contribution.atom3_y = sin(angle) |
Definition at line 100 of file plot_three_particle_contribution.py.
tuple plot_three_particle_contribution.atoms = states.get(stateName) |
Definition at line 48 of file plot_three_particle_contribution.py.
tuple plot_three_particle_contribution.atomsMeta = f.get("atomMeta") |
Definition at line 42 of file plot_three_particle_contribution.py.
tuple plot_three_particle_contribution.ax = fig.add_subplot(n_plots_per_dim, n_plots_per_dim, plot_counter) |
Definition at line 158 of file plot_three_particle_contribution.py.
list plot_three_particle_contribution.energies = [] |
Definition at line 37 of file plot_three_particle_contribution.py.
list plot_three_particle_contribution.energy = atoms.attrs["energy"] |
Definition at line 53 of file plot_three_particle_contribution.py.
float plot_three_particle_contribution.energy_difference = energy-two_body_energies[index12] |
Definition at line 109 of file plot_three_particle_contribution.py.
tuple plot_three_particle_contribution.energy_differences_max = -inf |
Definition at line 78 of file plot_three_particle_contribution.py.
tuple plot_three_particle_contribution.energy_differences_min = inf |
Definition at line 77 of file plot_three_particle_contribution.py.
tuple plot_three_particle_contribution.energy_max = -inf |
Definition at line 35 of file plot_three_particle_contribution.py.
tuple plot_three_particle_contribution.energy_min = inf |
Definition at line 34 of file plot_three_particle_contribution.py.
list plot_three_particle_contribution.energyOffset = atomsMeta.attrs["energyOffset"] |
Definition at line 43 of file plot_three_particle_contribution.py.
tuple plot_three_particle_contribution.f = h5py.File(statesFile, "r") |
Definition at line 41 of file plot_three_particle_contribution.py.
tuple plot_three_particle_contribution.fig = figure(figsize=(10,10)) |
Definition at line 155 of file plot_three_particle_contribution.py.
tuple plot_three_particle_contribution.grid_energies = griddata(array(values["r12s_r13s"]), array(values["energies"]), (grid_r12s, grid_r13s), method="nearest") |
Definition at line 164 of file plot_three_particle_contribution.py.
tuple plot_three_particle_contribution.grid_energy_differences = griddata(array(values["r12s_r13s"]), array(values["energy_differences"]), (grid_r12s, grid_r13s), method="nearest") |
Definition at line 165 of file plot_three_particle_contribution.py.
tuple plot_three_particle_contribution.img = contour(r12s, r13s, grid_energy_differences, 50, vmin=vmin, vmax=vmax) |
Definition at line 173 of file plot_three_particle_contribution.py.
tuple plot_three_particle_contribution.index12 = find_nearest_index(two_body_r12s, r12) |
Definition at line 105 of file plot_three_particle_contribution.py.
tuple plot_three_particle_contribution.index13 = find_nearest_index(two_body_r12s, r13) |
Definition at line 106 of file plot_three_particle_contribution.py.
tuple plot_three_particle_contribution.index23 = find_nearest_index(two_body_r12s, r23) |
Definition at line 107 of file plot_three_particle_contribution.py.
tuple plot_three_particle_contribution.n_plots = len(plots) |
Definition at line 141 of file plot_three_particle_contribution.py.
tuple plot_three_particle_contribution.n_plots_per_dim = int(sqrt(n_plots) + 1) |
Definition at line 142 of file plot_three_particle_contribution.py.
tuple plot_three_particle_contribution.output_dir = os.path.abspath("tmp") |
Definition at line 18 of file plot_three_particle_contribution.py.
tuple plot_three_particle_contribution.parser = ArgumentParser() |
Definition at line 13 of file plot_three_particle_contribution.py.
int plot_three_particle_contribution.plot_counter = 1 |
Definition at line 143 of file plot_three_particle_contribution.py.
string plot_three_particle_contribution.plot_name = "%.4f" |
Definition at line 94 of file plot_three_particle_contribution.py.
tuple plot_three_particle_contribution.plots = {} |
Definition at line 72 of file plot_three_particle_contribution.py.
list plot_three_particle_contribution.r12 = atoms.attrs["r12"] |
Definition at line 52 of file plot_three_particle_contribution.py.
list plot_three_particle_contribution.r12_max = atomsMeta.attrs["r12Max"] |
Definition at line 121 of file plot_three_particle_contribution.py.
list plot_three_particle_contribution.r12_min = atomsMeta.attrs["r12Min"] |
Definition at line 120 of file plot_three_particle_contribution.py.
tuple plot_three_particle_contribution.r12s = [] |
Definition at line 38 of file plot_three_particle_contribution.py.
list plot_three_particle_contribution.r13 = atoms.attrs["r13"] |
Definition at line 91 of file plot_three_particle_contribution.py.
list plot_three_particle_contribution.r13_max = atomsMeta.attrs["r13Max"] |
Definition at line 123 of file plot_three_particle_contribution.py.
list plot_three_particle_contribution.r13_min = atomsMeta.attrs["r13Min"] |
Definition at line 122 of file plot_three_particle_contribution.py.
Definition at line 139 of file plot_three_particle_contribution.py.
tuple plot_three_particle_contribution.r23 = linalg.norm(r23_vector) |
Definition at line 103 of file plot_three_particle_contribution.py.
tuple plot_three_particle_contribution.r23_vector = array([atom3_x - atom2_x, atom3_y - 0.0, 0.0 - 0.0]) |
Definition at line 102 of file plot_three_particle_contribution.py.
tuple plot_three_particle_contribution.states = f.get("/states") |
Definition at line 46 of file plot_three_particle_contribution.py.
tuple plot_three_particle_contribution.states_files = args.two_body_states |
Definition at line 30 of file plot_three_particle_contribution.py.
tuple plot_three_particle_contribution.two_body_energies = array(energies) |
Definition at line 66 of file plot_three_particle_contribution.py.
tuple plot_three_particle_contribution.two_body_r12s = array(r12s) |
Definition at line 65 of file plot_three_particle_contribution.py.
Definition at line 162 of file plot_three_particle_contribution.py.
plot_three_particle_contribution.vmax = energy_differences_max |
Definition at line 149 of file plot_three_particle_contribution.py.
plot_three_particle_contribution.vmin = energy_differences_min |
Definition at line 148 of file plot_three_particle_contribution.py.