setup solid-cpp solver for execution
This commit is contained in:
parent
d8fc085d57
commit
894e3cb21d
45 changed files with 43929 additions and 5379 deletions
|
|
@ -1,8 +1,8 @@
|
|||
#include "geom.h"
|
||||
#include "getmatrix.h"
|
||||
#include "jacsolve.h"
|
||||
#include "userset.h"
|
||||
#include "vdop.h"
|
||||
#include "../mgrid_2/geom.h"
|
||||
#include "../mgrid_2/getmatrix.h"
|
||||
#include "../mgrid_2/jacsolve.h"
|
||||
#include "../mgrid_2/userset.h"
|
||||
#include "../mgrid_2/vdop.h"
|
||||
|
||||
#include <cassert>
|
||||
#include <chrono> // timing
|
||||
|
|
@ -13,7 +13,7 @@
|
|||
|
||||
#include "precice/precice.hpp"
|
||||
#include <sstream>
|
||||
using namespace precice;
|
||||
//using namespace precice;
|
||||
|
||||
using namespace std;
|
||||
using namespace std::chrono; // timing
|
||||
|
|
@ -38,10 +38,6 @@ int main(int argc, char **argv )
|
|||
|
||||
double dt = 1.0; // time step
|
||||
int steps = 100; // number of time iterations
|
||||
|
||||
double u0_mug = 18.0;
|
||||
double u0_fluid = 80.0;
|
||||
double u0_air = 18.0;
|
||||
double u_out = 18.0;
|
||||
|
||||
// ##########################################
|
||||
|
|
@ -101,13 +97,13 @@ int main(int argc, char **argv )
|
|||
// ------------------------ initialize preCICE ------------------------
|
||||
int commRank = 0;
|
||||
int commSize = 1;
|
||||
std::string configFileName("precise-config.xml");
|
||||
std::string configFileName("../precice-config.xml");
|
||||
std::string solverName("Solid");
|
||||
std::string meshName("Solid-Mesh");
|
||||
|
||||
std::cout << "Running Solid-solver with preCICE config file \"" << configFileName << "\" and participant name \"" << solverName << "\".\n";
|
||||
|
||||
Participant participantSolid(solverName, configFileName, commRank, commSize);
|
||||
precice::Participant participantSolid(solverName, configFileName, commRank, commSize);
|
||||
|
||||
int meshDim = participantSolid.getMeshDimensions(meshName); // gets mesh dimensions (=2) from config file
|
||||
int numberOfVertices; // number of vertices at "wet" surface
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue