#include <transportbase.h>
Public Member Functions | |
TransportBase () | |
virtual | ~TransportBase () |
virtual void | updateVelocities (DynamicBase &dynMod)=0 |
virtual double | getDt (double t, double tEnd)=0 |
virtual void | iterateN (unsigned nSteps, double dt)=0 |
virtual ArrayOfVecDouble & | getSolutionAtCells ()=0 |
virtual void | printOutput ()=0 |
virtual void | updateDataForDynamicModule () |
FlashCompositional * | getFlash () |
void | setFlash (FlashCompositional *pflash) |
Protected Attributes | |
FlashCompositional * | _pFlash |
! Thi::include "arrayofvecdouble.h" include "arrayofvecdouble.h" s is the base class of all classses corresponding to methods for the advection equation. All the childrens classes must overload the updateVelocities method used to get the velocities field of the dynamic module and the iterate(t,tEnd) method. Such method is used to iterate the solution where the parameter "t" is the current time and "tEnd" is the end time of the simulation.
Definition at line 16 of file transportbase.h.
TransportBase::TransportBase | ( | ) |
Definition at line 10 of file transportbase.cpp.
00011 { 00012 _pFlash=NULL; 00013 // TODO Auto-generated constructor stub 00014 00015 }
TransportBase::~TransportBase | ( | ) | [virtual] |
Definition at line 17 of file transportbase.cpp.
virtual double TransportBase::getDt | ( | double | t, | |
double | tEnd | |||
) | [pure virtual] |
Implemented in CUDAKTMethod, LaxFriedrichsForSystem, and LaxFriedrichsSystemMPI.
FlashCompositional* TransportBase::getFlash | ( | ) | [inline] |
Definition at line 30 of file transportbase.h.
00030 {return _pFlash;}
virtual ArrayOfVecDouble& TransportBase::getSolutionAtCells | ( | ) | [pure virtual] |
Implemented in CUDAKTMethod, and LaxFriedrichsForSystem.
virtual void TransportBase::iterateN | ( | unsigned | nSteps, | |
double | dt | |||
) | [pure virtual] |
Implemented in CUDAKTMethod, GodunovMethod, LaxFriedrichsForSystem, LaxFriedrichsSystemMPI, RussanovForSystem, RussanovSystemMPI, and UpwindForSystem.
virtual void TransportBase::printOutput | ( | ) | [pure virtual] |
Implemented in CUDAKTMethod, and LaxFriedrichsForSystem.
void TransportBase::setFlash | ( | FlashCompositional * | pflash | ) | [inline] |
Definition at line 31 of file transportbase.h.
00031 {_pFlash=pflash;}
void TransportBase::updateDataForDynamicModule | ( | ) | [virtual] |
Event that runs imediately before the Dynamic Module
This is a function that has a true meaning just for the sequencer method that use flash computations for each iteration of the transport. It can be seen as an event that is called immediately before the dynamic module . To see an example of its use consult LaxFriedrichsMethodMPI and Sequencer::alternateIteration
Reimplemented in CUDAKTMethod, and LaxFriedrichsSystemMPI.
Definition at line 30 of file transportbase.cpp.
virtual void TransportBase::updateVelocities | ( | DynamicBase & | dynMod | ) | [pure virtual] |
Implemented in CUDAKTMethod, and LaxFriedrichsForSystem.
FlashCompositional* TransportBase::_pFlash [protected] |
Definition at line 19 of file transportbase.h.