Opm::GridDataOutput::SimMeshDataAccessor< GridView, partitions > Class Template Reference
Constructor & Destructor Documentation◆ SimMeshDataAccessor()
template<class GridView , unsigned int partitions>
Construct a SimMeshDataAccessor working on a specific GridView and specialize to a Dune::PartitionSet<>.
The PartitionSet of the data can be specified from one of: Dune::Partitions::all Dune::Partitions::interior Dune::Partitions::border Dune::Partitions::overlap Dune::Partitions::front Dune::Partitions::ghost Dune::Partitions::interiorBorder Dune::Partitions::interiorBorderOverlap Dune::Partitions::interiorBorderOverlapFront Dune::Partitions::all N.B. To visualise 'field' data on the extracted grid mesh then the field variable should contain at least as many vlaues as the mesh has cells (ncells_) or vertices (nvertices_) depending on if data is cell centred or vertex centred, respectively. As we are templated on the Dune::PartitionSet<partitions>, values for ncorners_, nvertices_ and ncells_ cannot change This class does not work with grids containing polyhedral cells (well, it has not been tested with this kind of grid data). The user should call polyhedralCellPresent() to test if polyhedral cells are present and decide what they want to do before copying data using the data accessor methods. References Opm::GridDataOutput::SimMeshDataAccessor< GridView, partitions >::countEntities(), Opm::GridDataOutput::SimMeshDataAccessor< GridView, partitions >::dimw_, and Opm::GridDataOutput::SimMeshDataAccessor< GridView, partitions >::partition_value_. Member Function Documentation◆ clearError()
template<class GridView , unsigned int partitions>
◆ countEntities()
template<class GridView , unsigned int partitions>
Count the vertices, cells and corners. Count all the vertices ( the Dune::Partitions::all partition ) as then we do not need to renumber the vertices as all the subsets use references to the full set. Referenced by Opm::GridDataOutput::SimMeshDataAccessor< GridView, partitions >::SimMeshDataAccessor(). ◆ getError()
template<class GridView , unsigned int partitions>
◆ getNCells()
template<class GridView , unsigned int partitions>
◆ getNCorners()
template<class GridView , unsigned int partitions>
◆ getNVertices()
template<class GridView , unsigned int partitions>
◆ getPartition()
template<class GridView , unsigned int partitions>
◆ getPartitionTypeString()
template<class GridView , unsigned int partitions>
◆ hasError()
template<class GridView , unsigned int partitions>
◆ polyhedralCellPresent()
template<class GridView , unsigned int partitions>
Checks for cells that have polyhedral type within the current partition of cells Returns true if a polyhedral sell is found. If this is the case then this partition is not going to be available for visualisation as this class does not yet handle polyhedral cells. ◆ printGridDetails()
template<class GridView , unsigned int partitions>
◆ writeCellTypes() [1/2]
template<class GridView , unsigned int partitions>
template<typename Integer >
Write the cell types values - directly to the pointer given in parameter 1
Returns number of cells type values written References Opm::to_string(). ◆ writeCellTypes() [2/2]
template<class GridView , unsigned int partitions>
template<typename VectType >
Write the cell types values - directly to the VectType object given in parameter 1
Returns number of cells type values written References Opm::to_string(). ◆ writeConnectivity() [1/2]
template<class GridView , unsigned int partitions>
template<typename Integer >
Write the connectivity array - directly to the pointer given in parameter 1 Reorders the indices as selected either in DUNE order or VTK order.
References Opm::GridDataOutput::DUNE, and Opm::to_string(). ◆ writeConnectivity() [2/2]
template<class GridView , unsigned int partitions>
template<typename VectType >
Write the connectivity array - directly to a VectType object given in parameter 1 Reorders the indices as selected either in DUNE order or VTK order.
References Opm::GridDataOutput::DUNE, and Opm::to_string(). ◆ writeGridPoints() [1/2]
template<class GridView , unsigned int partitions>
template<typename T >
Write the positions of vertices - directly to the pointers given in parameters
Returns the number of vertices written References Opm::to_string(). ◆ writeGridPoints() [2/2]
template<class GridView , unsigned int partitions>
template<typename VectType >
Write the positions of vertices - directly to the pointers given in parameters
All parameters must have a size() and data() method (e.g. a std::vector<T>) and the current size() must be big enough Returns the number of vertices written References Opm::to_string(). ◆ writeGridPoints_AOS() [1/2]
template<class GridView , unsigned int partitions>
template<typename T >
Write the positions of vertices - directly to the pointers given in parameters as Array of Structures x,y,z,x,y,z,x,y,z,...
Returns the number of vertices written References Opm::to_string(). ◆ writeGridPoints_AOS() [2/2]
template<class GridView , unsigned int partitions>
template<typename VectType >
Write the positions of vertices - directly to the pointers given in parameters as Array of Structures x,y,z,x,y,z,x,y,z,...
Returns the number of vertices written References Opm::to_string(). ◆ writeGridPoints_SOA() [1/2]
template<class GridView , unsigned int partitions>
template<typename T >
Write the positions of vertices - directly to the pointers given in parameters as Structure of Arrays: x,x,x,...,y,y,y,...,z,z,z,...
Returns the number of vertices written References Opm::to_string(). ◆ writeGridPoints_SOA() [2/2]
template<class GridView , unsigned int partitions>
template<typename VectType >
Write the positions of vertices - directly to the pointers given in parameters as Structure of Arrays: x,x,x,...,y,y,y,...,z,z,z,...
Returns the number of vertices written References Opm::to_string(). ◆ writeOffsetsCells() [1/2]
template<class GridView , unsigned int partitions>
template<typename Integer >
Write the offsets values - directly to the pointer given in parameter 1
Returns number of offset values written + 1 References Opm::to_string(). ◆ writeOffsetsCells() [2/2]
template<class GridView , unsigned int partitions>
template<typename VectType >
Write the offsets values - directly to a VectType object given in parameter 1
Returns number of offset values written + 1 References Opm::to_string(). Member Data Documentation◆ dimw_
template<class GridView , unsigned int partitions>
◆ dunePartition_
template<class GridView , unsigned int partitions>
◆ gridView_
template<class GridView , unsigned int partitions>
◆ ncells_
template<class GridView , unsigned int partitions>
Current partition grid information Referenced by Opm::GridDataOutput::SimMeshDataAccessor< GridView, partitions >::getNCells(). ◆ ncorners_
template<class GridView , unsigned int partitions>
Current partition grid information Referenced by Opm::GridDataOutput::SimMeshDataAccessor< GridView, partitions >::getNCorners(). ◆ nvertices_
template<class GridView , unsigned int partitions>
Current partition grid information Referenced by Opm::GridDataOutput::SimMeshDataAccessor< GridView, partitions >::getNVertices(). ◆ partition_value_
template<class GridView , unsigned int partitions>
The documentation for this class was generated from the following files: |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||