Page MenuHomec4science

fix_ave_histo.h
No OneTemporary

File Metadata

Created
Wed, Jun 19, 09:18

fix_ave_histo.h

/* ----------------------------------------------------------------------
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.
------------------------------------------------------------------------- */
#ifndef FIX_AVE_HISTO_H
#define FIX_AVE_HISTO_H
#include "stdio.h"
#include "fix.h"
namespace LAMMPS_NS {
class FixAveHisto : public Fix {
public:
FixAveHisto(class LAMMPS *, int, char **);
~FixAveHisto();
int setmask();
void init();
void setup(int);
void end_of_step();
double compute_vector(int);
double compute_array(int,int);
private:
int me,nvalues;
int nrepeat,nfreq,nvalid,irepeat;
int *which,*argindex,*value2index;
char **ids;
FILE *fp;
double lo,hi,binsize,bininv;
int kind,beyond;
double stats[4],stats_total[4],stats_all[4];
int nbins;
double *bin,*bin_total,*bin_all;
double **bin_list;
double *coord;
double *vector;
int maxatom;
int ave,nwindow,nsum,startstep,mode;
char *title1,*title2,*title3;
int iwindow,window_limit;
void bin_one(double);
void bin_vector(int, double *, int);
void bin_atoms(double *, int);
void options(int, char **);
};
}
#endif

Event Timeline