Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | Friends | List of all members
bitpit::Cell Class Reference

The Cell class defines the cells. More...

Inheritance diagram for bitpit::Cell:
Inheritance graph
[legend]
Collaboration diagram for bitpit::Cell:
Collaboration graph
[legend]

Public Member Functions

 Cell ()
 
 Cell (long id, ElementType type, bool interior, bool storeNeighbourhood)
 
 Cell (long id, ElementType type, bool interior=true, bool storeInterfaces=true, bool storeAjacencies=true)
 
 Cell (long id, ElementType type, int connectSize, bool interior, bool storeNeighbourhood)
 
 Cell (long id, ElementType type, int connectSize, bool interior=true, bool storeInterfaces=true, bool storeAjacencies=true)
 
 Cell (long id, ElementType type, std::unique_ptr< long[]> &&connectStorage, bool interior, bool storeNeighbourhood)
 
 Cell (long id, ElementType type, std::unique_ptr< long[]> &&connectStorage, bool interior=true, bool storeInterfaces=true, bool storeAjacencies=true)
 
void deleteAdjacencies ()
 
void deleteAdjacency (int face, int i)
 
void deleteInterface (int face, int i)
 
void deleteInterfaces ()
 
void display (std::ostream &out, unsigned short int indent) const
 
int findAdjacency (int adjacency)
 
int findAdjacency (int face, int adjacency)
 
int findInterface (int face, int interface)
 
int findInterface (int interface)
 
long * getAdjacencies ()
 
const long * getAdjacencies () const
 
long * getAdjacencies (int face)
 
const long * getAdjacencies (int face) const
 
long getAdjacency (int face, int index=0) const
 
int getAdjacencyCount () const
 
int getAdjacencyCount (int face) const
 
unsigned int getBinarySize () const
 
long getInterface (int face, int index=0) const
 
int getInterfaceCount () const
 
int getInterfaceCount (int face) const
 
long * getInterfaces ()
 
const long * getInterfaces () const
 
long * getInterfaces (int face)
 
const long * getInterfaces (int face) const
 
void initialize (long id, ElementType type, bool interior, bool storeInterfaces=true, bool storeAjacencies=true)
 
void initialize (long id, ElementType type, bool interior, bool storeNeighbourhood)
 
void initialize (long id, ElementType type, int connectSize, bool interior, bool storeInterfaces=true, bool storeAjacencies=true)
 
void initialize (long id, ElementType type, int connectSize, bool interior, bool storeNeighbourhood)
 
void initialize (long id, ElementType type, std::unique_ptr< long[]> &&connectStorage, bool interior, bool storeInterfaces=true, bool storeAjacencies=true)
 
void initialize (long id, ElementType type, std::unique_ptr< long[]> &&connectStorage, bool interior, bool storeNeighbourhood)
 
bool isFaceBorder (int face) const
 
bool isInterior () const
 
bool pushAdjacency (int face, long adjacency)
 
bool pushInterface (int face, long interface)
 
void resetAdjacencies (bool storeAdjacencies=true)
 
void resetInterfaces (bool storeInterfaces=true)
 
void setAdjacencies (const std::vector< std::vector< long > > &adjacencies)
 
void setAdjacencies (FlatVector2D< long > &&adjacencies)
 
void setAdjacency (int face, int index, long adjacencies)
 
void setInterface (int face, int index, long interface)
 
void setInterfaces (const std::vector< std::vector< long > > &interfaces)
 
void setInterfaces (FlatVector2D< long > &&interfaces)
 
void swap (Cell &other) noexcept
 
- Public Member Functions inherited from bitpit::Element
 Element ()
 
 Element (const Element &other)
 
 Element (Element &&other)=default
 
 Element (long id, ElementType type, int connectSize=0)
 
 Element (long id, ElementType type, std::unique_ptr< long[]> &&connectStorage)
 
double evalArea (const std::array< double, 3 > *coordinates) const
 
std::array< double, 3 > evalCentroid (const std::array< double, 3 > *coordinates) const
 
double evalLength (const std::array< double, 3 > *coordinates) const
 
std::array< double, 3 > evalNormal (const std::array< double, 3 > *coordinates, const std::array< double, 3 > &orientation={{0., 0., 1.}}, const std::array< double, 3 > &point={{0.5, 0.5, 0.5}}) const
 
double evalPointDistance (const std::array< double, 3 > &point, const std::array< double, 3 > *coordinates) const
 
void evalPointProjection (const std::array< double, 3 > &point, const std::array< double, 3 > *coordinates, std::array< double, 3 > *projection, double *distance) const
 
double evalSize (const std::array< double, 3 > *coordinates) const
 
double evalVolume (const std::array< double, 3 > *coordinates) const
 
int findVertex (long vertexId) const
 
unsigned int getBinarySize () const
 
long * getConnect ()
 
const long * getConnect () const
 
int getConnectSize () const
 
int getDimension () const
 
ConstProxyVector< long > getEdgeConnect (int edge) const
 
int getEdgeCount () const
 
ConstProxyVector< int > getEdgeLocalConnect (int edge) const
 
ConstProxyVector< int > getEdgeLocalVertexIds (int edge) const
 
ElementType getEdgeType (int edge) const
 
int getEdgeVertexCount (int edge) const
 
long getEdgeVertexId (int edge, int vertex) const
 
ConstProxyVector< long > getEdgeVertexIds (int edge) const
 
ConstProxyVector< long > getFaceConnect (int face) const
 
int getFaceCount () const
 
ConstProxyVector< int > getFaceLocalConnect (int face) const
 
ConstProxyVector< int > getFaceLocalVertexIds (int face) const
 
std::vector< long > getFaceStream () const
 
int getFaceStreamPosition (int face) const
 
int getFaceStreamSize () const
 
ElementType getFaceType (int face) const
 
int getFaceVertexCount (int face) const
 
long getFaceVertexId (int face, int vertex) const
 
ConstProxyVector< long > getFaceVertexIds (int face) const
 
long getId () const
 
const ReferenceElementInfogetInfo () const
 
int getPID () const
 
ElementType getType () const
 
int getVertexCount () const
 
long getVertexId (int vertex) const
 
ConstProxyVector< long > getVertexIds () const
 
bool hasInfo () const
 
bool hasSameConnect (const Element &other) const
 
void initialize (long id, ElementType type, int connectSize=0)
 
void initialize (long id, ElementType type, std::unique_ptr< long[]> &&connectStorage)
 
bool isThreeDimensional () const
 
Elementoperator= (const Element &other)
 
Elementoperator= (Element &&other)=default
 
int renumberVertices (const std::unordered_map< long, long > &map)
 
void setConnect (std::unique_ptr< long[]> &&connect)
 
void setId (long id)
 
void setPID (int pid)
 
void setType (ElementType type)
 
void swap (Element &other) noexcept
 
void unsetConnect ()
 

Protected Member Functions

void setInterior (bool interior)
 

Friends

OBinaryStreamoperator<<) (OBinaryStream &buf, const Cell &cell)
 
IBinaryStreamoperator>>) (IBinaryStream &buf, Cell &cell)
 
class PatchKernel
 

Additional Inherited Members

- Static Public Member Functions inherited from bitpit::Element
static int getDimension (ElementType type)
 
static int getFaceStreamPosition (const long *connectivity, int face)
 
static ConstProxyVector< long > getVertexIds (ElementType type, const long *connectivity)
 
static bool isThreeDimensional (ElementType type)
 
static void renumberFaceStream (const PiercedStorage< long, long > &map, std::vector< long > *faceStream)
 
- Static Public Attributes inherited from bitpit::Element
static BITPIT_PUBLIC_API const long NULL_ID = std::numeric_limits<long>::min()
 

Detailed Description

The Cell class defines the cells.

Cell is class that defines the cells.

Examples
POD_example_00002.cpp, RBF_example_00001.cpp, and voloctree_adaptation_example_00001.cpp.

Definition at line 42 of file cell.hpp.

Constructor & Destructor Documentation

◆ Cell() [1/7]

bitpit::Cell::Cell ( )

Default constructor.

Definition at line 117 of file cell.cpp.

◆ Cell() [2/7]

bitpit::Cell::Cell ( long id,
ElementType type,
bool interior,
bool storeNeighbourhood )

Creates a new cell.

Parameters
idis the id that will be assigned to the element
typeis the type of the element
interiordefines if the cell is interior or ghost
storeNeighbourhooddefines if the cell should store neighbourhood information

Definition at line 135 of file cell.cpp.

◆ Cell() [3/7]

bitpit::Cell::Cell ( long id,
ElementType type,
int connectSize,
bool interior,
bool storeNeighbourhood )

Creates a new cell.

Parameters
idis the id that will be assigned to the element
typeis the type of the element
connectSizeis the size of the connectivity, this is only used if the element is not associated to a reference element
interiordefines if the cell is interior or ghost
storeNeighbourhooddefines if the cell should store neighbourhood information

Definition at line 151 of file cell.cpp.

◆ Cell() [4/7]

bitpit::Cell::Cell ( long id,
ElementType type,
std::unique_ptr< long[]> && connectStorage,
bool interior,
bool storeNeighbourhood )

Creates a new cell.

Parameters
idis the id that will be assigned to the element
typeis the type of the element
connectStorageis the storage the contains or will contain the connectivity of the element
interiordefines if the cell is interior or ghost
storeNeighbourhooddefines if the cell should store neighbourhood information

Definition at line 167 of file cell.cpp.

◆ Cell() [5/7]

bitpit::Cell::Cell ( long id,
ElementType type,
bool interior = true,
bool storeInterfaces = true,
bool storeAdjacencies = true )

Creates a new cell.

Parameters
idis the id that will be assigned to the element
typeis the type of the element
interiordefines if the cell is interior or ghost
storeInterfacesdefines if the cell should initialize the storage for storing interface information
storeAdjacenciesdefines if the cell should initialize the storage for storing adjacency information

Definition at line 183 of file cell.cpp.

◆ Cell() [6/7]

bitpit::Cell::Cell ( long id,
ElementType type,
int connectSize,
bool interior = true,
bool storeInterfaces = true,
bool storeAdjacencies = true )

Creates a new cell.

Parameters
idis the id that will be assigned to the element
typeis the type of the element
connectSizeis the size of the connectivity, this is only used if the element is not associated to a reference element
interiordefines if the cell is interior or ghost
storeInterfacesdefines if the cell should initialize the storage for storing interface information
storeAdjacenciesdefines if the cell should initialize the storage for storing adjacency information

Definition at line 204 of file cell.cpp.

◆ Cell() [7/7]

bitpit::Cell::Cell ( long id,
ElementType type,
std::unique_ptr< long[]> && connectStorage,
bool interior = true,
bool storeInterfaces = true,
bool storeAdjacencies = true )

Creates a new cell.

Parameters
idis the id that will be assigned to the element
typeis the type of the element
connectStorageis the storage the contains or will contain the connectivity of the element
interiordefines if the cell is interior or ghost
storeInterfacesdefines if the cell should initialize the storage for storing interface information
storeAdjacenciesdefines if the cell should initialize the storage for storing adjacency information

Definition at line 225 of file cell.cpp.

Member Function Documentation

◆ deleteAdjacencies()

void bitpit::Cell::deleteAdjacencies ( )

Deletes the adjacencies of the cell.

Definition at line 674 of file cell.cpp.

◆ deleteAdjacency()

void bitpit::Cell::deleteAdjacency ( int face,
int i )

Deletes the specified adjacency from the adjacencies associate to the given face of the cell.

Parameters
facethe face of the cell
iis the index of the adjacency to delete

Definition at line 792 of file cell.cpp.

◆ deleteInterface()

void bitpit::Cell::deleteInterface ( int face,
int i )

Deletes the specified interface from the interfaces associate to the given face of the cell.

Parameters
facethe face of the cell
iis the index of the interface to delete

Definition at line 522 of file cell.cpp.

◆ deleteInterfaces()

void bitpit::Cell::deleteInterfaces ( )

Deletes the interfaces of the cell.

Definition at line 404 of file cell.cpp.

◆ display()

void bitpit::Cell::display ( std::ostream & out,
unsigned short int indent ) const

Displays the cell information to an output stream

Parameters
[in]outis the output stream
[in]indentis the number of trailing spaces to prepend when writing the information

Definition at line 958 of file cell.cpp.

◆ findAdjacency() [1/2]

int bitpit::Cell::findAdjacency ( int adjacency)

Find the specified adjacency among all the adjacencies of the cell.

The function returns the first position in the adjacency cell list of the specified adjacency. If the cell doesn't contain the specified adjacency the function returns a dummy position equal to -1.

Parameters
adjacencyis the adjacency to look for
Returns
The position in the adjacency cell list of the specfied adjacency.

Definition at line 928 of file cell.cpp.

◆ findAdjacency() [2/2]

int bitpit::Cell::findAdjacency ( int face,
int adjacency )

Find the specified adjacency among the adjacencies of the given face.

The function returns the position in the adjacency face list of the specified adjacency. If the face doesn't contain the specified adjacency the function returns a dummy position equal to -1.

Parameters
faceis the face of the cell
adjacencyis the adjacency to look for
Returns
The position in the adjacency face list of the specfied adjacency.

Definition at line 905 of file cell.cpp.

◆ findInterface() [1/2]

int bitpit::Cell::findInterface ( int face,
int interface )

Find the specified interface among the interfaces of the given face.

The function returns the position in the interface face list of the specified interface. If the face doesn't contain the specified interface the function returns a dummy position equal to -1.

Parameters
faceis the face of the cell
interfaceis the interface to look for
Returns
The position in the interface face list of the specfied interface.

Definition at line 635 of file cell.cpp.

◆ findInterface() [2/2]

int bitpit::Cell::findInterface ( int interface)

Find the specified interface among all the interfaces of the cell.

The function returns the first position in the interface cell list of the specified interface. If the cell doesn't contain the specified interface the function returns a dummy position equal to -1.

Parameters
interfaceis the interface to look for
Returns
The position in the interface cell list of the specfied interface.

Definition at line 658 of file cell.cpp.

◆ getAdjacencies() [1/4]

long * bitpit::Cell::getAdjacencies ( )

Gets a pointer to the adjacencies of the cell.

Returns
A pointer to the adjacencies of the cell.

Definition at line 870 of file cell.cpp.

◆ getAdjacencies() [2/4]

const long * bitpit::Cell::getAdjacencies ( ) const

Gets all the adjacencies of the cell.

Returns
The adjacencies of the cell.

Definition at line 841 of file cell.cpp.

◆ getAdjacencies() [3/4]

long * bitpit::Cell::getAdjacencies ( int face)

Gets a pointer to the adjacencies of the given face of the cell.

Parameters
facethe face of the cell
Returns
A pointer to the adjacencies of the given face of the cell.

Definition at line 885 of file cell.cpp.

◆ getAdjacencies() [4/4]

const long * bitpit::Cell::getAdjacencies ( int face) const

Gets the adjacencies of the given face of the cell.

Parameters
facethe face of the cell
Returns
The requested adjacencies

Definition at line 856 of file cell.cpp.

◆ getAdjacency()

long bitpit::Cell::getAdjacency ( int face,
int index = 0 ) const

Gets the i-th adjacency of the specified face of the cell.

Parameters
facethe face of the cell
indexthe index of the adjacency to retreive
Returns
The requested adjacency.

Definition at line 831 of file cell.cpp.

◆ getAdjacencyCount() [1/2]

int bitpit::Cell::getAdjacencyCount ( ) const

Gets the total number of adjacencies of the cell.

The placeholder neighbour ids of the faces not acutally linked to a real neighbour will be counted as well.

Returns
The total number of adjacencies of the cell.

Definition at line 805 of file cell.cpp.

◆ getAdjacencyCount() [2/2]

int bitpit::Cell::getAdjacencyCount ( int face) const

Gets the number of adjacencies of the specified face of the cell.

The placeholder neighbour ids of the faces not acutally linked to a real neighbours will be counted as well.

Parameters
facethe face of the cell
Returns
The number of adjacencies of the specified face of the cell.

Definition at line 819 of file cell.cpp.

◆ getBinarySize()

unsigned int bitpit::Cell::getBinarySize ( ) const

Get the size of the buffer required to communicate cell.

Returns
Returns the buffer size (in bytes).

Definition at line 1061 of file cell.cpp.

◆ getInterface()

long bitpit::Cell::getInterface ( int face,
int index = 0 ) const

Gets the i-th interface of the specified face of the cell.

Parameters
facethe face of the cell
indexthe index of the interface to retreive
Returns
The requested interface.

Definition at line 561 of file cell.cpp.

◆ getInterfaceCount() [1/2]

int bitpit::Cell::getInterfaceCount ( ) const

Gets the total number of interfaces of the cell.

The placeholder interface ids of the faces not acutally linked to a real interfaces will be counted as well.

Returns
The total number of interfaces of the cell.

Definition at line 535 of file cell.cpp.

◆ getInterfaceCount() [2/2]

int bitpit::Cell::getInterfaceCount ( int face) const

Gets the number of interfaces of the specified face of the cell.

The placeholder interface ids of the faces not acutally linked to a real interfaces will be counted as well.

Parameters
facethe face of the cell
Returns
The number of interfaces of the specified face of the cell.

Definition at line 549 of file cell.cpp.

◆ getInterfaces() [1/4]

long * bitpit::Cell::getInterfaces ( )

Gets a pointer to the interfaces of the cell.

Returns
A pointer to the interfaces of the cell.

Definition at line 600 of file cell.cpp.

◆ getInterfaces() [2/4]

const long * bitpit::Cell::getInterfaces ( ) const

Gets all the interfaces of the cell.

Returns
The interfaces of the cell.

Definition at line 571 of file cell.cpp.

◆ getInterfaces() [3/4]

long * bitpit::Cell::getInterfaces ( int face)

Gets a pointer to the interfaces of the given face of the cell.

Parameters
facethe face of the cell
Returns
A pointer to the interfaces of the given face of the cell.

Definition at line 615 of file cell.cpp.

◆ getInterfaces() [4/4]

const long * bitpit::Cell::getInterfaces ( int face) const

Gets the interfaces of the given face of the cell.

Parameters
facethe face of the cell
Returns
The requested interfaces

Definition at line 586 of file cell.cpp.

◆ initialize() [1/6]

void bitpit::Cell::initialize ( long id,
ElementType type,
bool interior,
bool storeInterfaces = true,
bool storeAdjacencies = true )

Initializes the data structures of the cell.

Parameters
idis the id of the element
typeis the type of the element
interiorif true the cell is flagged as interior
storeInterfacesdefines if the cell should initialize the storage for storing interface information
storeAdjacenciesdefines if the cell should initialize the storage for storing adjacency information

Definition at line 305 of file cell.cpp.

◆ initialize() [2/6]

void bitpit::Cell::initialize ( long id,
ElementType type,
bool interior,
bool storeNeighbourhood )

Initializes the data structures of the cell.

Parameters
idis the id of the element
typeis the type of the element
interiorif true the cell is flagged as interior
storeNeighbourhoodif true the structures to store adjacencies and interfaces will be initialized

Definition at line 257 of file cell.cpp.

◆ initialize() [3/6]

void bitpit::Cell::initialize ( long id,
ElementType type,
int connectSize,
bool interior,
bool storeInterfaces = true,
bool storeAdjacencies = true )

Initializes the data structures of the cell.

Parameters
idis the id of the element
typeis the type of the element
connectSizeis the size of the connectivity, this is only used if the element is not associated to a reference element
interiorif true the cell is flagged as interior
storeInterfacesdefines if the cell should initialize the storage for storing interface information
storeAdjacenciesdefines if the cell should initialize the storage for storing adjacency information

Definition at line 325 of file cell.cpp.

◆ initialize() [4/6]

void bitpit::Cell::initialize ( long id,
ElementType type,
int connectSize,
bool interior,
bool storeNeighbourhood )

Initializes the data structures of the cell.

Parameters
idis the id of the element
typeis the type of the element
connectSizeis the size of the connectivity, this is only used if the element is not associated to a reference element
interiorif true the cell is flagged as interior
storeNeighbourhooddefines if the structures to store adjacencies and interfaces will be initialized

Definition at line 273 of file cell.cpp.

◆ initialize() [5/6]

void bitpit::Cell::initialize ( long id,
ElementType type,
std::unique_ptr< long[]> && connectStorage,
bool interior,
bool storeInterfaces = true,
bool storeAdjacencies = true )

Initializes the data structures of the cell.

Parameters
idis the id of the element
typeis the type of the element
connectStorageis the storage the contains or will contain the connectivity of the element
interiorif true the cell is flagged as interior
storeInterfacesdefines if the cell should initialize the storage for storing interface information
storeAdjacenciesdefines if the cell should initialize the storage for storing adjacency information

Definition at line 345 of file cell.cpp.

◆ initialize() [6/6]

void bitpit::Cell::initialize ( long id,
ElementType type,
std::unique_ptr< long[]> && connectStorage,
bool interior,
bool storeNeighbourhood )

Initializes the data structures of the cell.

Parameters
idis the id of the element
typeis the type of the element
connectStorageis the storage the contains or will contain the connectivity of the element
interiorif true the cell is flagged as interior
storeNeighbourhooddefines if the cell should store neighbourhood information

Definition at line 289 of file cell.cpp.

◆ isFaceBorder()

bool bitpit::Cell::isFaceBorder ( int face) const

Checks if the specified face is a border.

Returns
True if the face is a border, false otherwise.

Definition at line 946 of file cell.cpp.

◆ isInterior()

bool bitpit::Cell::isInterior ( ) const

Gets if the cell belongs to the the interior domain.

Returns
Returns true if the cell belongs to the the interior domain, otherwise it returns false.

Definition at line 396 of file cell.cpp.

◆ pushAdjacency()

bool bitpit::Cell::pushAdjacency ( int face,
long adjacency )

Add an adjacency to the given face of the cell.

Before adding the adjacency a check is performed to avoid adding duplicate adjacencies. The adjacency will not be added if the face already contains it.

Parameters
faceis the face of the cell
adjacencyis the index of the adjacency that will be added
Returns
Returns true if the adjacency has been added, false if the adjacency has not been added because the face already contained it.

Definition at line 771 of file cell.cpp.

◆ pushInterface()

bool bitpit::Cell::pushInterface ( int face,
long interface )

Add an interface to the given face of the cell.

Before adding the interface a check is performed to avoid adding duplicate adjacencies. The interface will not be added if the face already contains it.

Parameters
faceis the face of the cell
interfaceis the index of the interface that will be added
Returns
Returns true if the interface has been added, false if the interface has not been added because the face already contained it.

Definition at line 501 of file cell.cpp.

◆ resetAdjacencies()

void bitpit::Cell::resetAdjacencies ( bool storeAdjacencies = true)

Resets the adjacencies of the cell.

If the adjacencies are stored, there will always be at least one adjacency entry for each face. If a face is not linked with a neighbour, its entry needs to be set to the placeholder value NULL_ID. When multiple neighbours are linked to a face, all entries must point to valid cells.

The adjacency data structure can be prepared to store the neighbours only if the cell type is known.

Parameters
storeAdjacenciesif true the adjacency data structure will prepared to store the neighbours, otherwise the data structure will be cleared and it will not be possible to store neighbours.

Definition at line 695 of file cell.cpp.

◆ resetInterfaces()

void bitpit::Cell::resetInterfaces ( bool storeInterfaces = true)

Resets the interfaces of the cell.

If the interfaces are stored, there will always be at least one interface entry for each face. If a face is not linked with an interface, its entry needs to be set to the placeholder value NULL_ID. When multiple interfaces are linked to a face, all entries must point to valid interfaces.

The interface data structure can be prepared to store the interfaces only if the cell type is known.

Parameters
storeInterfacesif true the interface data structure will prepared to store the interfaces, otherwise the data structure will be cleared and it will not be possible to store interfaces.

Definition at line 425 of file cell.cpp.

◆ setAdjacencies() [1/2]

void bitpit::Cell::setAdjacencies ( const std::vector< std::vector< long > > & adjacencies)

Sets all the adjacencies of the cell.

Parameters
adjacenciesthe list of all adjacencies associated to the cell

Definition at line 720 of file cell.cpp.

◆ setAdjacencies() [2/2]

void bitpit::Cell::setAdjacencies ( FlatVector2D< long > && adjacencies)

Sets all the adjacencies of the cell.

Parameters
adjacenciesthe list of all adjacencies associated to the cell

Definition at line 736 of file cell.cpp.

◆ setAdjacency()

void bitpit::Cell::setAdjacency ( int face,
int index,
long adjacency )

Sets the i-th adjacency associated the the given face of the cell.

Parameters
facethe face of the cell
indexthe index of the adjacency
adjacencyis the index of the adjacency

Definition at line 754 of file cell.cpp.

◆ setInterface()

void bitpit::Cell::setInterface ( int face,
int index,
long interface )

Sets the i-th interface associated the the given face of the cell.

Parameters
facethe face of the cell
indexthe index of the interface
interfaceis the index of the interface

Definition at line 484 of file cell.cpp.

◆ setInterfaces() [1/2]

void bitpit::Cell::setInterfaces ( const std::vector< std::vector< long > > & interfaces)

Sets all the interfaces of the cell.

Parameters
interfacesthe list of all interfaces associated to the cell

Definition at line 450 of file cell.cpp.

◆ setInterfaces() [2/2]

void bitpit::Cell::setInterfaces ( FlatVector2D< long > && interfaces)

Sets all the interfaces of the cell.

Parameters
interfacesthe list of all interfaces associated to the cell

Definition at line 466 of file cell.cpp.

◆ setInterior()

void bitpit::Cell::setInterior ( bool interior)
protected

Sets if the cell belongs to the the interior domain.

Parameters
interiordefines if the cell belongs to the the interior domain

Definition at line 385 of file cell.cpp.

◆ swap()

void bitpit::Cell::swap ( Cell & other)
noexcept

Exchanges the content of the cell by the content the specified other cell.

Parameters
otheris another cell whose content is swapped with that of this cell.

Definition at line 238 of file cell.cpp.

Friends And Related Symbol Documentation

◆ PatchKernel

friend class PatchKernel
friend

Definition at line 44 of file cell.hpp.


The documentation for this class was generated from the following files:
--- layout: doxygen_footer ---