39 #include <lifev/multiscale/models/MultiscaleModel0D.hpp> 55 #ifdef HAVE_LIFEV_DEBUG 56 debugStream ( 8160 ) <<
"MultiscaleModel0D::MultiscaleModel0D() \n";
69 #ifdef HAVE_LIFEV_DEBUG 70 debugStream ( 8160 ) <<
"MultiscaleModel0D::setupData( fileName ) \n";
73 GetPot dataFile ( fileName );
75 std::string circuitDataFile = dataFile (
"0D_Model/CircuitDataFile",
"./inputFile.dat" );
76 M_bc->createHandler();
77 M_bc->fillHandler ( circuitDataFile,
"Files" );
79 M_data->setup (dataFile, M_bc->handler() );
80 if ( M_globalData.get() )
86 #if ( defined(HAVE_NOX_THYRA) && defined(HAVE_TRILINOS_RYTHMOS) ) 87 M_solver.reset (
new solver_Type ( M_data->unknownCounter(), M_comm, M_data->circuitData() ) );
88 M_solver->setup ( M_data->solverData() );
96 #ifdef HAVE_LIFEV_DEBUG 97 debugStream ( 8160 ) <<
"MultiscaleModel0D::setupModel() \n";
100 M_data->initializeSolution();
107 #ifdef HAVE_LIFEV_DEBUG 108 debugStream ( 8160 ) <<
"MultiscaleModel0D::buildModel() \n";
117 #ifdef HAVE_LIFEV_DEBUG 118 debugStream ( 8160 ) <<
"MultiscaleModel0D::updateModel() \n";
127 #ifdef HAVE_LIFEV_DEBUG 128 debugStream ( 8160 ) <<
"MultiscaleModel0D::solveModel() \n";
132 #if ( defined(HAVE_NOX_THYRA) && defined(HAVE_TRILINOS_RYTHMOS) ) 133 M_solver->takeStep ( M_data->dataTime()->previousTime(), M_data->dataTime()->time() );
142 #ifdef HAVE_LIFEV_DEBUG 143 debugStream ( 8160 ) <<
"MultiscaleModel0D::updateSolution() \n";
152 #ifdef HAVE_LIFEV_DEBUG 153 debugStream ( 8160 ) <<
"MultiscaleModel0D::saveSolution() \n";
156 M_data->saveSolution();
162 if ( M_comm->MyPID() == 0 )
164 multiscaleModel_Type::showMe();
173 return M_data->circuitData()->Nodes()->nodeListAt ( 1 )->voltage() + M_data->circuitData()->Elements()->elementListAt ( 1 )->current();
185 #ifdef HAVE_LIFEV_DEBUG 186 debugStream ( 8160 ) <<
"MultiscaleModel0D::setupGlobalData( fileName ) \n";
189 GetPot dataFile ( fileName );
192 M_data->setTimeData ( M_globalData->dataTime() );
void setupGlobalData(const std::string &fileName)
Setup the global data of the model.
void updateModel()
Update the model.
void updateInverseJacobian(const UInt &iQuadPt)
void setupData(const std::string &fileName)
Setup the data of the model.
void showMe()
Display some information about the model.
void setupModel()
Setup the model.
MultiscaleModel0D - Multiscale model for 0D simulations.
MultiscaleModel0D()
Constructor.
double Real
Generic real data.
void solveModel()
Solve the model.
void saveSolution()
Save the solution.
void updateSolution()
Update the solution.
Real checkSolution() const
Return a specific scalar quantity to be used for a comparison with a reference value.
void buildModel()
Build the initial model.