fix miscellaneous bugs and update the data structure of electric potential

This commit is contained in:
Rex Zhe Li
2020-08-28 11:15:55 -04:00
parent 59ffd7bfd6
commit aa26fcafda
12 changed files with 1027 additions and 206 deletions

View File

@@ -29,7 +29,7 @@ public:
void Create();
void Initialize();
void Run(double *Velocity, double *ElectricField);
void getIonConcentration();
void getIonConcentration(int timestep);
//bool Restart,pBC;
int timestep,timestepMax;
@@ -40,6 +40,7 @@ public:
double kb,electron_charge,T,Vt;
double k2_inv;
double tolerance;
double Ex,Ey,Ez;
int number_ion_species;
vector<double> IonDiffusivity;//User input unit [m^2/sec]