ESPResSo 3.2.0-11-g9950804-git
Extensible Simulation Package for Soft Matter Research
energy.h File Reference

Implementation of the energy calculation. More...

#include "utils.h"
#include "integrate.h"
#include "statistics.h"
#include "thermostat.h"
#include "p3m.h"
#include "p3m-dipolar.h"
#include "lj.h"
#include "ljgen.h"
#include "steppot.h"
#include "hertzian.h"
#include "gaussian.h"
#include "bmhtf-nacl.h"
#include "buckingham.h"
#include "soft_sphere.h"
#include "hat.h"
#include "ljcos.h"
#include "ljcos2.h"
#include "ljangle.h"
#include "tab.h"
#include "overlap.h"
#include "gb.h"
#include "fene.h"
#include "object-in-fluid/stretching_force.h"
#include "object-in-fluid/area_force_local.h"
#include "object-in-fluid/area_force_global.h"
#include "object-in-fluid/bending_force.h"
#include "object-in-fluid/volume_force.h"
#include "harmonic.h"
#include "subt_lj.h"
#include "angle.h"
#include "angle_harmonic.h"
#include "angle_cosine.h"
#include "angle_cossquare.h"
#include "angledist.h"
#include "dihedral.h"
#include "debye_hueckel.h"
#include "endangledist.h"
#include "reaction_field.h"
#include "mmm1d.h"
#include "mmm2d.h"
#include "maggs.h"
#include "morse.h"
#include "elc.h"
#include "mdlc_correction.h"
Include dependency graph for energy.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

Exported Functions
void init_energies (Observable_stat *stat)
 allocate energy arrays and initialize with zero
void master_energy_calc ()
 on the master node: calc energies only if necessary
void energy_calc (double *result)
 parallel energy calculation.
MDINLINE double calc_non_bonded_pair_energy (Particle *p1, Particle *p2, IA_parameters *ia_params, double d[3], double dist, double dist2)
 Calculate non bonded energies between a pair of particles.
MDINLINE void add_non_bonded_pair_energy (Particle *p1, Particle *p2, double d[3], double dist, double dist2)
 Add non bonded energies and short range coulomb between a pair of particles.
MDINLINE void add_bonded_energy (Particle *p1)
 Calculate bonded energies for one particle.
MDINLINE void add_kinetic_energy (Particle *p1)
 Calculate kinetic energies for one particle.

Variables

Exported Variables
Observable_stat energy
Observable_stat total_energy

Detailed Description

Implementation of the energy calculation.

Definition in file energy.h.


Function Documentation

MDINLINE void add_bonded_energy ( Particle p1)
MDINLINE void add_kinetic_energy ( Particle p1)
MDINLINE void add_non_bonded_pair_energy ( Particle p1,
Particle p2,
double  d[3],
double  dist,
double  dist2 
)
MDINLINE double calc_non_bonded_pair_energy ( Particle p1,
Particle p2,
IA_parameters ia_params,
double  d[3],
double  dist,
double  dist2 
)

Calculate non bonded energies between a pair of particles.

Parameters:
p1pointer to particle 1.
p2pointer to particle 2.
ia_paramsthe interaction parameters between the two particles
dvector between p1 and p2.
distdistance between p1 and p2.
dist2distance squared between p1 and p2.
Returns:
the short ranged interaction energy between the two particles

Definition at line 103 of file energy.h.

References BMHTF_pair_energy(), buck_pair_energy(), checkIfParticlesInteractViaMolCut(), gaussian_pair_energy(), gb_pair_energy(), hat_pair_energy(), hertzian_pair_energy(), interrf_pair_energy(), lj_pair_energy(), ljangle_pair_energy(), ljcos2_pair_energy(), ljcos_pair_energy(), ljgen_pair_energy(), ParticleProperties::mol_id, morse_pair_energy(), Particle::p, SmSt_pair_energy(), soft_pair_energy(), and tabulated_pair_energy().

Referenced by add_constraints_energy(), and add_non_bonded_pair_energy().

void energy_calc ( double *  result)
void init_energies ( Observable_stat stat)
void master_energy_calc ( )

on the master node: calc energies only if necessary

Definition at line 201 of file energy.c.

References Observable_stat::data, DoubleList::e, Observable_stat::init_status, and mpi_gather_stats().

Referenced by hamiltonian_calc(), and tclcommand_analyze_parse_and_print_energy().


Variable Documentation