Skip to content
Snippets Groups Projects
Commit d9f70d63 authored by Martin Schneider's avatar Martin Schneider
Browse files

Added doxygen docu and cleared some white space

git-svn-id: svn://svn.iws.uni-stuttgart.de/DUMUX/dumux/trunk@11608 2fb0f335-1f38-0410-981e-8018bf24f1b0
parent cea16f91
No related branches found
No related tags found
No related merge requests found
...@@ -25,8 +25,8 @@ ...@@ -25,8 +25,8 @@
#include <dumux/decoupled/common/fv/fvvelocity.hh> #include <dumux/decoupled/common/fv/fvvelocity.hh>
/** /**
* @file * \file
* @brief Finite Volume discretization of a two-phase flow pressure equation. * \brief Finite Volume discretization of a two-phase flow pressure equation.
*/ */
namespace Dumux namespace Dumux
...@@ -37,6 +37,7 @@ namespace Dumux ...@@ -37,6 +37,7 @@ namespace Dumux
* *
* Details see FVPressure2P * Details see FVPressure2P
* *
* \tparam TypeTag The Type Tag
*/ */
template<class TypeTag> class FVPressure2PAdaptive: public FVPressure2P<TypeTag> template<class TypeTag> class FVPressure2PAdaptive: public FVPressure2P<TypeTag>
{ {
...@@ -91,7 +92,10 @@ public: ...@@ -91,7 +92,10 @@ public:
// Function which calculates the flux entry // Function which calculates the flux entry
void getFlux(EntryType&, const Intersection&, const CellData&, const bool); void getFlux(EntryType&, const Intersection&, const CellData&, const bool);
//!Initialize /*! \brief Initializes the adaptive pressure model
*
* \copydetails FVPressure2P::initialize()
*/
void initialize() void initialize()
{ {
ParentType::initialize(); ParentType::initialize();
...@@ -127,50 +131,56 @@ public: ...@@ -127,50 +131,56 @@ public:
// update RHS vector, matrix // update RHS vector, matrix
if (problem_.gridAdapt().wasAdapted()) if (problem_.gridAdapt().wasAdapted())
{ {
this->A_.setSize(gridSize, gridSize); // this->A_.setSize(gridSize, gridSize); //
this->f_.resize(gridSize); this->f_.resize(gridSize);
this->pressure().resize(gridSize); this->pressure().resize(gridSize);
for (int i = 0; i < gridSize; i++) for (int i = 0; i < gridSize; i++)
{ {
CellData& cellData = problem_.variables().cellData(i); CellData& cellData = problem_.variables().cellData(i);
switch (pressureType_) switch (pressureType_)
{ {
case pw: case pw:
this->pressure()[i] = cellData.pressure(wPhaseIdx); this->pressure()[i] = cellData.pressure(wPhaseIdx);
break; break;
case pn: case pn:
this->pressure()[i] = cellData.pressure(nPhaseIdx); this->pressure()[i] = cellData.pressure(nPhaseIdx);
break; break;
case pGlobal: case pGlobal:
this->pressure()[i] = cellData.globalPressure(); this->pressure()[i] = cellData.globalPressure();
break; break;
} }
}
ParentType::initializeMatrix();
} }
ParentType::initializeMatrix();
}
ParentType::update(); ParentType::update();
calculateVelocity(); calculateVelocity();
return; return;
} }
/*! \brief Velocity calculation
*
*/
void calculateVelocity() void calculateVelocity()
{ {
velocity_.calculateVelocity(); velocity_.calculateVelocity();
} }
/*! \brief Velocity update
*
*/
void updateVelocity() void updateVelocity()
{ {
ParentType::updateVelocity(); ParentType::updateVelocity();
calculateVelocity(); calculateVelocity();
} }
/*! \brief Adds pressure output to the output file /*! \brief Adds pressure output to the output file
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment