50 lines
1.1 KiB
C++
50 lines
1.1 KiB
C++
/*
|
|
* Multiphysics controller that coordinates the coupling between different models
|
|
*/
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include <sys/stat.h>
|
|
#include <iostream>
|
|
#include <exception>
|
|
#include <stdexcept>
|
|
#include <fstream>
|
|
|
|
#include "common/ScaLBL.h"
|
|
#include "common/Communication.h"
|
|
#include "common/MPI_Helpers.h"
|
|
#include "analysis/Minkowski.h"
|
|
#include "ProfilerApp.h"
|
|
|
|
class ScaLBL_Multiphys_Controller{
|
|
public:
|
|
ScaLBL_Multiphys_Controller(int RANK, int NP, MPI_Comm COMM);
|
|
~ScaLBL_Multiphys_Controller();
|
|
|
|
void ReadParams(string filename);
|
|
void ReadParams(std::shared_ptr<Database> db0);
|
|
|
|
bool Restart;
|
|
//int timestep;
|
|
int timestepMax;
|
|
int num_iter_Stokes;
|
|
int num_iter_Ion;
|
|
double SchmidtNum;//Schmidt number = kinematic_viscosity/mass_diffusivity
|
|
|
|
int rank,nprocs;
|
|
|
|
// input database
|
|
std::shared_ptr<Database> db;
|
|
std::shared_ptr<Database> study_db;
|
|
|
|
private:
|
|
MPI_Comm comm;
|
|
|
|
// filenames
|
|
char LocalRankString[8];
|
|
char LocalRankFilename[40];
|
|
char LocalRestartFile[40];
|
|
|
|
//int rank,nprocs;
|
|
void LoadParams(std::shared_ptr<Database> db0);
|
|
};
|