OpenLB 1.7
|
#include <superData.h>
Public Types | |
using | block_t = ConcretizableBlockData<D,T,U> |
Public Types inherited from olb::SuperStructure< T, D > | |
using | value_t = T |
Public Member Functions | |
SuperData (CuboidGeometry< T, D > &cuboidGeometry, LoadBalancer< T > &loadBalancer, int overlap=2, int size=1) | |
virtual | ~SuperData ()=default |
SuperData (SuperF< D, T, U > &rhs) | |
const BlockData< D, T, U > & | getBlock (int iC) const |
BlockData< D, T, U > & | getBlock (int iC) |
template<typename BLOCK = BlockData<D,T,U>> | |
BLOCK & | getBlock (int iC) |
template<typename BLOCK = BlockData<D,T,U>> | |
const BLOCK & | getBlock (int iC) const |
void | communicate () override |
Communicate overlaps. | |
int | getDataSize () const |
Read only access to the dim of the data of the super structure. | |
int | getDataTypeSize () const |
Read only access to the data type dim of the data of the super structure. | |
Public Member Functions inherited from olb::SuperStructure< T, D > | |
virtual | ~SuperStructure () |
Virtual Destructor for inheritance. | |
SuperStructure (CuboidGeometry< T, D > &cuboidGeometry, LoadBalancer< T > &loadBalancer, int overlap=2) | |
Construction of a super structure. | |
SuperStructure (int overlap=1) | |
Default Constructor for empty SuperStructure. | |
CuboidGeometry< T, D > & | getCuboidGeometry () |
Read and write access to cuboid geometry. | |
CuboidGeometry< T, D > const & | getCuboidGeometry () const |
Read only access to cuboid geometry. | |
int | getOverlap () |
Read and write access to the overlap. | |
int | getOverlap () const |
Read only access to the overlap. | |
LoadBalancer< T > & | getLoadBalancer () |
Read and write access to the load balancer. | |
LoadBalancer< T > const & | getLoadBalancer () const |
Read only access to the load balancer. | |
template<typename F > | |
void | forCorePhysLocations (F f) const |
Iterate over discrete physical locations. | |
template<typename F > | |
void | forCorePhysLocations (PhysR< T, D > min, PhysR< T, D > max, F f) const |
Iterate over discrete physical locations between min and max. | |
template<typename F > | |
void | forCoreSpatialLocations (F f) const |
Iterate over spatial locations NOTE: Based on physical locations (as opposed to its blockStructure version) | |
template<typename F > | |
void | forCoreSpatialLocations (PhysR< T, D > min, PhysR< T, D > max, F f) const |
Iterate over spatial locations between min and max NOTE: Based on physical locations (as opposed to its blockStructure version) | |
Static Public Attributes | |
static constexpr unsigned | d = D |
Protected Attributes | |
const std::size_t | _size |
Dimension of the data field. | |
std::vector< std::unique_ptr< BlockData< D, T, U > > > | _block |
Vector of BlockData. | |
std::unique_ptr< SuperCommunicator< T, SuperData > > | _communicator |
Inter-block communicator. | |
Protected Attributes inherited from olb::SuperStructure< T, D > | |
CuboidGeometry< T, D > & | _cuboidGeometry |
The grid structure is stored here. | |
LoadBalancer< T > & | _loadBalancer |
Distribution of the cuboids of the cuboid structure. | |
int | _overlap |
Size of ghost cell layer (must be greater than 1 and greater_overlapBC, default =1) | |
OstreamManager | clout |
class specific output stream | |
Definition at line 45 of file superData.h.
using olb::SuperData< D, T, U >::block_t = ConcretizableBlockData<D,T,U> |
Definition at line 57 of file superData.h.
olb::SuperData< D, T, U >::SuperData | ( | CuboidGeometry< T, D > & | cuboidGeometry, |
LoadBalancer< T > & | loadBalancer, | ||
int | overlap = 2, | ||
int | size = 1 ) |
Definition at line 40 of file superData.hh.
References olb::SuperData< D, T, U >::_block, olb::SuperData< D, T, U >::_communicator, and olb::SuperStructure< T, D >::getLoadBalancer().
|
virtualdefault |
olb::SuperData< D, T, U >::SuperData | ( | SuperF< D, T, U > & | rhs | ) |
Definition at line 61 of file superData.hh.
|
overridevirtual |
Communicate overlaps.
Reimplemented from olb::SuperStructure< T, D >.
Definition at line 114 of file superData.hh.
BlockData< D, T, U > & olb::SuperData< D, T, U >::getBlock | ( | int | iC | ) |
Definition at line 94 of file superData.hh.
BLOCK & olb::SuperData< D, T, U >::getBlock | ( | int | iC | ) |
Definition at line 101 of file superData.hh.
const BlockData< D, T, U > & olb::SuperData< D, T, U >::getBlock | ( | int | iC | ) | const |
const BLOCK & olb::SuperData< D, T, U >::getBlock | ( | int | iC | ) | const |
Definition at line 108 of file superData.hh.
int olb::SuperData< D, T, U >::getDataSize | ( | ) | const |
Read only access to the dim of the data of the super structure.
Definition at line 122 of file superData.hh.
int olb::SuperData< D, T, U >::getDataTypeSize | ( | ) | const |
Read only access to the data type dim of the data of the super structure.
Definition at line 128 of file superData.hh.
|
protected |
Definition at line 50 of file superData.h.
|
protected |
Inter-block communicator.
Definition at line 52 of file superData.h.
|
protected |
Dimension of the data field.
Definition at line 48 of file superData.h.
|
staticconstexpr |
Definition at line 55 of file superData.h.