PeriodicHelpers.hpp File Reference
#include "BoundaryPeriodicity.hpp"
#include "BoundaryConditions.hpp"
#include <dune/common/fvector.hh>
#include <array>
#include <algorithm>
#include <iostream>
Include dependency graph for PeriodicHelpers.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 Opm
 

Functions

template<class BCs >
void Opm::storeFlowCond (BCs &bcs, const std::vector< BoundaryFaceInfo > &bfinfo, const std::array< FlowBC, 6 > &fconditions, const std::array< double, 6 > &side_areas)
 
template<class BCs >
void Opm::storeSatCond (BCs &bcs, const std::vector< BoundaryFaceInfo > &bfinfo, const std::array< SatBC, 6 > &sconditions)
 
template<class BC >
std::array< bool, 6 > Opm::extractPeriodic (const std::array< BC, 6 > &bcs)
 
template<class BCs , class GridInterface >
void Opm::createPeriodic (BCs &fbcs, const GridInterface &g, const std::array< FlowBC, 2 *GridInterface::Dimension > &fconditions, const std::array< SatBC, 2 *GridInterface::Dimension > &sconditions, double spatial_tolerance=1e-6)
 Makes a boundary condition object representing periodic boundary conditions in any cartesian directions. The grid interface needs to export boundary ids that are unique for each boundary face for this to be possible. More...
 
template<class BCs , class GridInterface >
void Opm::createPeriodic (BCs &fbcs, const GridInterface &g, const std::array< FlowBC, 2 *GridInterface::Dimension > &fconditions, double spatial_tolerance=1e-6)
 
template<class BCs , class GridInterface >
void Opm::createPeriodic (BCs &fbcs, const GridInterface &g, const std::array< SatBC, 2 *GridInterface::Dimension > &sconditions, double spatial_tolerance=1e-6)
 
template<class BCs , class GridInterface >
void Opm::createPeriodicImpl (BCs &fbcs, std::vector< BoundaryFaceInfo > &bfinfo, std::array< double, 6 > &side_areas, const GridInterface &g, const std::array< bool, 2 *GridInterface::Dimension > &is_periodic, double spatial_tolerance=1e-6)
 Common implementation for the various createPeriodic functions. More...
 
template<class BCs , class GridInterface >
void Opm::createLinear (BCs &fbcs, const GridInterface &g, const double pdrop, const int pddir, const double bdy_sat, const bool twodim_hack=false, const double spatial_tolerance=1e-6)
 Makes a boundary condition object representing linear boundary conditions in any cartesian direction. The grid interface needs to export boundary ids that are unique for each boundary face for this to be possible. More...