LifeV
ZeroDimensionalData Class Reference

Data container for 0D model. More...

#include <ZeroDimensionalData.hpp>

+ Collaboration diagram for ZeroDimensionalData:

Data Structures

struct  SolverData
 Rhytmos solver data container. More...
 

Public Types

typedef struct SolverData solverData_Type
 
typedef TimeData time_Type
 
typedef std::shared_ptr< time_TypetimePtr_Type
 
typedef std::shared_ptr< RealsolutionPtr_Type
 

Public Member Functions

 ZeroDimensionalData ()
 Constructor. More...
 
virtual ~ZeroDimensionalData ()
 Destructor. More...
 
void setup (const GetPot &dataFile, bcPtr_Type bc, const std::string &section="0D_Model")
 setup model More...
 
void initializeSolution ()
 initialize Solution More...
 
void updateBC ()
 update source elements More...
 
void saveSolution ()
 save solution More...
 
void showMe () const
 show some information More...
 
void showMeVariables ()
 show variables More...
 
void setTimeData (const timePtr_Type &timeData)
 set time More...
 
const timePtr_TypedataTime () const
 
zeroDimensionalCircuitDataPtr_Type circuitData () const
 get circuit data container More...
 
const IntunknownCounter () const
 total number of unknowns More...
 
const solverData_TypesolverData () const
 
void setVenousPressure (const Real &venousPressure)
 Set the fluid venous pressure. More...
 
const RealvenousPressure () const
 Get the fluid venous pressure. More...
 

Private Member Functions

void writeHeaders ()
 
void assignVaribleIndex ()
 

Private Attributes

timePtr_Type M_time
 
OutPutFormat M_outPutFormat
 
zeroDimensionalCircuitDataPtr_Type M_circuitData
 
std::ofstream M_voltageFileStream
 
std::ofstream M_currentFileStream
 
std::ofstream M_balanceFileStream
 
Int M_unknownCounter
 
solverData_Type M_solverData
 
Real M_venousPressure
 

Detailed Description

Data container for 0D model.

Definition at line 49 of file ZeroDimensionalData.hpp.

Member Typedef Documentation

◆ solverData_Type

typedef struct SolverData solverData_Type

Definition at line 71 of file ZeroDimensionalData.hpp.

◆ time_Type

Definition at line 72 of file ZeroDimensionalData.hpp.

◆ timePtr_Type

typedef std::shared_ptr< time_Type > timePtr_Type

Definition at line 73 of file ZeroDimensionalData.hpp.

◆ solutionPtr_Type

typedef std::shared_ptr< Real > solutionPtr_Type

Definition at line 76 of file ZeroDimensionalData.hpp.

Constructor & Destructor Documentation

◆ ZeroDimensionalData()

ZeroDimensionalData ( )
explicit

Constructor.

Definition at line 46 of file ZeroDimensionalData.cpp.

+ Here is the caller graph for this function:

◆ ~ZeroDimensionalData()

~ZeroDimensionalData ( )
virtual

Destructor.

Definition at line 54 of file ZeroDimensionalData.cpp.

Member Function Documentation

◆ setup()

void setup ( const GetPot dataFile,
bcPtr_Type  bc,
const std::string &  section = "0D_Model" 
)

setup model

Definition at line 64 of file ZeroDimensionalData.cpp.

◆ initializeSolution()

void initializeSolution ( )

initialize Solution

Definition at line 118 of file ZeroDimensionalData.cpp.

+ Here is the caller graph for this function:

◆ updateBC()

void updateBC ( )

update source elements

Definition at line 136 of file ZeroDimensionalData.cpp.

◆ saveSolution()

void saveSolution ( )

save solution

Definition at line 155 of file ZeroDimensionalData.cpp.

◆ showMe()

void showMe ( ) const
inline

show some information

Definition at line 97 of file ZeroDimensionalData.hpp.

◆ showMeVariables()

void showMeVariables ( )

show variables

Definition at line 195 of file ZeroDimensionalData.cpp.

◆ setTimeData()

void setTimeData ( const timePtr_Type timeData)
inline

set time

Definition at line 106 of file ZeroDimensionalData.hpp.

◆ dataTime()

const timePtr_Type& dataTime ( ) const
inline

Definition at line 111 of file ZeroDimensionalData.hpp.

◆ circuitData()

zeroDimensionalCircuitDataPtr_Type circuitData ( ) const
inline

get circuit data container

Definition at line 117 of file ZeroDimensionalData.hpp.

◆ unknownCounter()

const Int& unknownCounter ( ) const
inline

total number of unknowns

Definition at line 123 of file ZeroDimensionalData.hpp.

◆ solverData()

const solverData_Type& solverData ( ) const
inline

Definition at line 128 of file ZeroDimensionalData.hpp.

◆ setVenousPressure()

void setVenousPressure ( const Real venousPressure)
inline

Set the fluid venous pressure.

Parameters
venouspressure of the fluid.

Definition at line 137 of file ZeroDimensionalData.hpp.

◆ venousPressure()

const Real& venousPressure ( ) const
inline

Get the fluid venous pressure.

Returns
venous pressure of the fluid.

Definition at line 146 of file ZeroDimensionalData.hpp.

◆ writeHeaders()

void writeHeaders ( )
private

Definition at line 236 of file ZeroDimensionalData.cpp.

+ Here is the caller graph for this function:

◆ assignVaribleIndex()

void assignVaribleIndex ( )
private

Definition at line 213 of file ZeroDimensionalData.cpp.

+ Here is the caller graph for this function:

Field Documentation

◆ M_time

timePtr_Type M_time
private

Definition at line 158 of file ZeroDimensionalData.hpp.

◆ M_outPutFormat

OutPutFormat M_outPutFormat
private

Definition at line 159 of file ZeroDimensionalData.hpp.

◆ M_circuitData

zeroDimensionalCircuitDataPtr_Type M_circuitData
private

Definition at line 160 of file ZeroDimensionalData.hpp.

◆ M_voltageFileStream

std::ofstream M_voltageFileStream
private

Definition at line 161 of file ZeroDimensionalData.hpp.

◆ M_currentFileStream

std::ofstream M_currentFileStream
private

Definition at line 162 of file ZeroDimensionalData.hpp.

◆ M_balanceFileStream

std::ofstream M_balanceFileStream
private

Definition at line 163 of file ZeroDimensionalData.hpp.

◆ M_unknownCounter

Int M_unknownCounter
private

Definition at line 164 of file ZeroDimensionalData.hpp.

◆ M_solverData

solverData_Type M_solverData
private

Definition at line 165 of file ZeroDimensionalData.hpp.

◆ M_venousPressure

Real M_venousPressure
private

Definition at line 167 of file ZeroDimensionalData.hpp.


The documentation for this class was generated from the following files: