#include <stdio.h>
#include <stdlib.h>
#include "global.h"
Go to the source code of this file.
◆ 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 } }
References ax, ay, nAtom, vx, and vy.