Lemina
A molecular dynamics package for network, granular material and point particles with a range of interaction potential.
 
Loading...
Searching...
No Matches
DumpPairs.c File Reference
#include <stdio.h>
#include "global.h"
+ Include dependency graph for DumpPairs.c:

Go to the source code of this file.

Functions

void DumpPairs ()
 

Function Documentation

◆ DumpPairs()

void DumpPairs ( )

Definition at line 25 of file DumpPairs.c.

25 {
26 int n;
27 //Trajectory file in LAMMPS dump format for OVITO visualization
28 fprintf(fppair, "ITEM: TIMESTEP\n");
29 fprintf(fppair, "%lf\n",timeNow);
30 fprintf(fppair, "ITEM: NUMBER OF ENTRIES\n");
31 fprintf(fppair, "%d\n",nPairActive);
32 fprintf(fppair, "ITEM: BOX BOUNDS pp ff pp\n");
33 fprintf(fppair, "%lf %lf xlo xhi\n", -regionH[1], regionH[1]);
34 fprintf(fppair, "%lf %lf ylo yhi\n", -regionH[2], regionH[2]);
35 fprintf(fppair, "%lf %lf zlo zhi\n", -0.1, 0.1);
36 fprintf(fppair, "ITEM: ENTRIES index, atom1 atom2 xij yij discDragx1 discDragy1\n");
37
38 for(n=1; n<=nPairActive; n++)
39 fprintf(fppair, "%d %d %d %0.16lf %0.16lf %0.16lf %0.16lf\n", PairID[n], Pairatom1[n], Pairatom2[n],
40 PairXij[n], PairYij[n], discDragx[n], discDragy[n]);
41
42 }
double * discDragy
Definition global.h:42
int nPairActive
Definition global.h:62
int * PairID
double * PairXij
FILE * fppair
double timeNow
Definition global.h:20
int * Pairatom2
Definition global.h:63
double * PairYij
Definition global.h:64
double * discDragx
double regionH[2+1]
Definition global.h:20
int * Pairatom1
Definition global.h:63

References discDragx, discDragy, fppair, nPairActive, Pairatom1, Pairatom2, PairID, PairXij, PairYij, regionH, and timeNow.

Referenced by main().

+ Here is the caller graph for this function: