MultiscaleSolver - The Multiscale solver.
More...
#include <MultiscaleSolver.hpp>
MultiscaleSolver - The Multiscale solver.
- Author
- Cristiano Malossi
- See also
- Full description of the Geometrical Multiscale Framework: [15]
-
Methodology: [12] [13] [14] [2]
-
Applications: [11] [10] [3]
The MultiscaleSolver class provides a series of methods to create and solve a general Geometrical Multiscale problem.
Definition at line 59 of file MultiscaleSolver.hpp.
◆ MultiscaleSolver() [1/2]
◆ ~MultiscaleSolver()
◆ MultiscaleSolver() [2/2]
◆ setupProblem()
void setupProblem |
( |
const std::string & |
fileName, |
|
|
const std::string & |
problemName, |
|
|
const UInt & |
coresPerNode |
|
) |
| |
Setup the problem.
- Parameters
-
fileName | Name of the data file. |
problemName | the name of the problem (used to save data in a specific folder). |
coresPerNode | number of cores for each node (this is mandatory when running on clusters for a correct distribution of the models among the nodes). |
Definition at line 88 of file MultiscaleSolver.cpp.
◆ solveProblem()
bool solveProblem |
( |
const Real & |
referenceSolution = -1. , |
|
|
const Real & |
tolerance = 1e-8 |
|
) |
| |
Run the time-loop to solve the Multiscale problem.
If the provided reference solution is positive, the solver make also a check on the last computed solution.
- Parameters
-
referenceSolution | the reference coupling variables norm 2. |
tolerance | the tolerance to check the reference solution with respect to the computed one. |
- Returns
- 0: EXIT_SUCCESS, 1: EXIT_FAILURE
Definition at line 146 of file MultiscaleSolver.cpp.
◆ showMe()
◆ setCommunicator()
◆ operator=()
◆ saveCPUTime()
void saveCPUTime |
( |
const Real & |
totalCPUTime, |
|
|
const Real & |
buildUpdateCPUTime, |
|
|
const Real & |
solveCPUTime, |
|
|
const Real & |
updateSolutionCPUTime, |
|
|
const Real & |
saveCPUTime |
|
) |
| const |
|
private |
Save CPU time at each time step.
- Parameters
-
totalCPUTime | total CPU time of the iteration |
buildUpdateCPUTime | CPU time to build/update the problem |
solveCPUTime | CPU time to solve the problem |
updateSolutionCPUTime | CPU time to update the solution of the problem |
saveCPUTime | CPU time to save the solution |
Definition at line 270 of file MultiscaleSolver.cpp.
◆ importIterationNumber()
void importIterationNumber |
( |
| ) |
|
|
private |
◆ M_model
◆ M_globalData
◆ M_comm
The documentation for this class was generated from the following files: