-
Notifications
You must be signed in to change notification settings - Fork 1
/
testSimulation.cpp
70 lines (59 loc) · 1.47 KB
/
testSimulation.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
//
// testSimulation.cpp
// stodyn
//
// Created by Ryohei SETO on 12/03/20.
// Copyright (c) 2012年 __MyCompanyName__. All rights reserved.
//
#include <iostream>
#include <iomanip>
#include "testSimulation.h"
#include "sdsystem.h"
using namespace std;
void testSimulation(int argc, char** argv){
if (argc == 2){
cerr << "usage:" << endl;
cerr << "stodyn T parameters cluster skip shearrate version" << endl;
return;
}
SDsystem sd_sys;
//sd_sys.type_simu = argv[1][0];
DEMsystem dem(sd_sys);
dem.initialprocess = true;
/* parameter file */
dem.setParameterFileDEM(argv[2]);
/* Cluster configuration : num. of skip lines */
dem.importCluster(argv[3], atoi(argv[4]));
dem.setVersion(argv[5]);
/* Method of Hydrodynamic interaciton FDA(0), SD_nolub(1), SD_lub(2)*/
dem.readParameterFileDEM();
dem.readBondParameter();
dem.setSimulationBoxs();
/* set imposed flow */
sd_sys.setFlowType('s');
/* DEM */
dem.setDEMParameters();
dem.initDEM();
//
// SDsystem sd_sys;
// TestSystem tsimu(sd_sys);
//
// tsimu.setParameterFile(argv[2]);
// tsimu.importCluster(argv[3], atoi(argv[4]));
// tsimu.readParameterFile();
//
// tsimu.readBondParameter();
// tsimu.setSimulationBoxs();
//
// sd_sys.setFlowType('s'); // s = shear flow
//
// tsimu.initDEM();
//
// /* Stokesian Dynamics */
//// sy.initLibStokes();
//
//
// cerr << "here" << endl;
//
return;
}