Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F67005642
fix_ave_histo.h
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Wed, Jun 19, 09:18
Size
1 KB
Mime Type
text/x-c
Expires
Fri, Jun 21, 09:18 (2 d)
Engine
blob
Format
Raw Data
Handle
18327971
Attached To
rLAMMPS lammps
fix_ave_histo.h
View Options
/* ----------------------------------------------------------------------
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
Log In to Comment