enable fix rigid commands to add gravity to COM of rigid bodies

This commit is contained in:
Steve Plimpton
2019-12-06 11:04:50 -07:00
parent b1668f28dd
commit 5859b18d2f
6 changed files with 146 additions and 22 deletions

View File

@ -36,9 +36,10 @@ class FixGravity : public Fix {
virtual void post_force(int);
virtual void post_force_respa(int, int, int);
double compute_scalar();
void *extract(const char *, int &);
protected:
int style;
int style,disable;
double magnitude;
double vert,phi,theta;
double xdir,ydir,zdir;
@ -46,6 +47,8 @@ class FixGravity : public Fix {
double degree2rad;
int ilevel_respa;
int time_origin;
double gvec[3];
int eflag;
double egrav,egrav_all;