class PE

PE - potential energy class

Public Methods

[more] PE()
[more] ~PE()
[more]void init_struct(int i_num_atom, int i_num_h, int i_num_c, int i_num_n, int i_num_o, int i_num_s)
init the data structs used in PE from given protein info
[more]double calculate_pe(Vec i_at1, Vec i_at2, string i_name_at1, string i_name_at2, int i_type_res1, int i_type_res2, long i_id_at1, long i_id_at2)
calculate forces acting on each pair of atom in the protein
[more]double get_tot_pe()
return the pe of the whole protein currently
[more]void clear_force_vec()
clear the force vectors associated with each atom

Private Fields

[more]Vec* force_vec
stores the cumulated force vector on a atom
[more]float** pairwise_force
force as a scalar value between each pair of atoms
[more]float* force
force as a scalar value on each atom
[more]int num_atoms
number of atoms in residue
[more]float ave_12
averaged out lennard jones 12 parameter
[more]float ave_6
averaged out lennard jones 6 parameter
[more]float ave_equil_dist
averaged out 0 energy distance for getting cut off point
[more]float ave_min_ener_dist
for computing distance from force
[more]float cut_off_dist
cut off distance
[more]double max_force
calculated from cut off dist
[more]bool* start

Private Methods

[more]double calculate_vDW(Vec i_atom1, Vec i_atom2, int i_type_at1, int i_type_at2)
calculate the vDW forces between 2 atoms using the lennard-jones 6-12 potential


Documentation

PE - potential energy class
o PE()

o ~PE()

ovoid init_struct(int i_num_atom, int i_num_h, int i_num_c, int i_num_n, int i_num_o, int i_num_s)
init the data structs used in PE from given protein info

odouble calculate_pe(Vec i_at1, Vec i_at2, string i_name_at1, string i_name_at2, int i_type_res1, int i_type_res2, long i_id_at1, long i_id_at2)
calculate forces acting on each pair of atom in the protein

odouble get_tot_pe()
return the pe of the whole protein currently

ovoid clear_force_vec()
clear the force vectors associated with each atom

odouble calculate_vDW(Vec i_atom1, Vec i_atom2, int i_type_at1, int i_type_at2)
calculate the vDW forces between 2 atoms using the lennard-jones 6-12 potential

oVec* force_vec
stores the cumulated force vector on a atom

ofloat** pairwise_force
force as a scalar value between each pair of atoms

ofloat* force
force as a scalar value on each atom

oint num_atoms
number of atoms in residue

ofloat ave_12
averaged out lennard jones 12 parameter

ofloat ave_6
averaged out lennard jones 6 parameter

ofloat ave_equil_dist
averaged out 0 energy distance for getting cut off point

ofloat ave_min_ener_dist
for computing distance from force

ofloat cut_off_dist
cut off distance

odouble max_force
calculated from cut off dist

obool* start


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.