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

Go to the source code of this file.

Functions

void ApplyViscous ()
 

Function Documentation

◆ ApplyViscous()

void ApplyViscous ( )

Definition at line 25 of file ApplyViscous.c.

25 {
26 int n;
27 double gammav;
28 gammav = 1.0;
29 for(n = 1 ; n <= nAtom; n ++){
30 ax[n] += -gammav * vx[n];
31 ay[n] += -gammav * vy[n];
32 } }
int nAtom
Definition global.h:24
double * ay
Definition global.h:17
double * vx
Definition global.h:17
double * ax
Definition global.h:17
double * vy
Definition global.h:17

References ax, ay, nAtom, vx, and vy.