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

Go to the source code of this file.

Functions

void DisplaceAtoms ()
 

Function Documentation

◆ DisplaceAtoms()

void DisplaceAtoms ( )

Definition at line 25 of file DisplaceAtoms.c.

25 {
26 int n;
27 for(n = 1; n <= nAtom; n ++){
28 if(molID[n] == 2){
29 rx[n] += DeltaX;
30 ry[n] += DeltaY;
31} } }
int nAtom
Definition global.h:24
double DeltaY
int * molID
double * rx
double DeltaX
Definition global.h:49
double * ry
Definition global.h:17

References DeltaX, DeltaY, molID, nAtom, rx, and ry.

Referenced by main().

+ Here is the caller graph for this function: