Files
lammps/src/USER-MISC/fix_electron_stopping_fit.h

55 lines
1.6 KiB
C++

/* ----------------------------------------------------------------------
LAMMPS - Large-scale Atomic/Molecular Massively Parallel Simulator
http://lammps.sandia.gov, Sandia National Laboratories
Steve Plimpton, sjplimp@sandia.gov
Copyright (2003) Sandia Corporation. Under the terms of Contract
DE-AC04-94AL85000 with Sandia Corporation, the U.S. Government retains
certain rights in this software. This software is distributed under
the GNU General Public License.
See the README file in the top-level LAMMPS directory.
------------------------------------------------------------------------- */
/* ----------------------------------------------------------------------
Contributing authors: Stephen M. Foiles (SNL)
James A. Stewart (SNL)
------------------------------------------------------------------------- */
#ifdef FIX_CLASS
FixStyle(electron/stopping/fit,FixElectronStoppingFit)
#else
#ifndef LMP_FIX_ELECTRON_STOPPING_FIT_H
#define LMP_FIX_ELECTRON_STOPPING_FIT_H
#include "fix.h"
namespace LAMMPS_NS {
class FixElectronStoppingFit : public Fix {
public:
FixElectronStoppingFit(class LAMMPS *, int, char **);
~FixElectronStoppingFit();
int setmask();
void init();
void setup(int);
void post_force(int);
void post_force_respa(int, int, int);
double compute_scalar();
private:
double *energy_coh_in,*v_min_sq,*v_max_sq,*drag_fac_in_1,*drag_fac_in_2,*drag_fac_1,*drag_fac_2;
double electronic_loss,electronic_loss_this_node;
double f_dot_v_prior,f_dot_v_current;
int last_step,this_step;
int nlevels_respa;
};
}
#endif
#endif