Class performing the transfer of data on a grid from before to after adaptation. More...
#include <dumux/porousmediumflow/2p/griddatatransfer.hh>
Class performing the transfer of data on a grid from before to after adaptation.
Public Member Functions | |
TwoPGridDataTransfer (std::shared_ptr< const Problem > problem, std::shared_ptr< GridGeometry > gridGeometry, std::shared_ptr< const GridVariables > gridVariables, SolutionVector &sol) | |
Constructor. More... | |
void | store (const Grid &grid) override |
Stores primary variables and additional data. More... | |
void | reconstruct (const Grid &grid) override |
Reconstruct missing primary variables (where elements are created/deleted) More... | |
virtual void | store (const GetPropType< TypeTag, Properties::Grid > &)=0 |
store user data before grid adaption More... | |
virtual void | reconstruct (const GetPropType< TypeTag, Properties::Grid > &)=0 |
store user data after grid adaption More... | |
|
inline |
Constructor.
problem | The DuMuX problem to be solved |
gridGeometry | The finite volume grid geometry |
gridVariables | The secondary variables on the grid |
sol | The solution (primary variables) on the grid |
|
pure virtualinherited |
store user data after grid adaption
|
inlineoverride |
Reconstruct missing primary variables (where elements are created/deleted)
To reconstruct the solution in father elements, problem properties might need to be accessed. Starting from the lowest level, the old solution is mapped on the new grid: Where coarsened, new cells get information from old father element. Where refined, a new solution is reconstructed from the old father cell, and then a new son is created. That is then stored into the general data structure (AdaptedValues).
|
pure virtualinherited |
store user data before grid adaption
|
inlineoverride |
Stores primary variables and additional data.
To reconstruct the solution in father elements, problem properties might need to be accessed. From upper level on downwards, the old solution is stored into a container object, before the grid is adapted. Father elements hold averaged information from the son cells for the case of the sons being coarsened.