DNDSR 0.2.1
Distributed Numeric Data Structure for CFV
Loading...
Searching...
No Matches
DNDS::Geom::ConeAdj Struct Reference

#include <MeshConnectivity.hpp>

Collaboration diagram for DNDS::Geom::ConeAdj:
[legend]

Public Member Functions

tAdjPairasAdj ()
 Access as variable-width tAdjPair. Throws if adj holds a fixed-width type.
 
const tAdjPairasAdj () const
 
tAdj2PairasAdj2 ()
 Access as fixed-width tAdj2Pair (e.g., for cell2face with 2 entries).
 
const tAdj2PairasAdj2 () const
 
tAdj1PairasAdj1 ()
 
const tAdj1PairasAdj1 () const
 
template<class TPair >
TPair & as ()
 Typed access: as<tAdj2Pair>() etc.
 
template<class TPair >
const TPair & as () const
 
index fatherSize () const
 Number of local (father) rows.
 
bool initialized () const
 Check if the adjacency pair is initialized (father is non-null).
 
bool hasPbi () const
 Check if pbi is attached (only valid for toDepth==0).
 

Public Attributes

int fromDepth {-1}
 Source stratum (e.g., dim for cells, dim-1 for faces)
 
int toDepth {-1}
 Target stratum (e.g., 0 for nodes, dim-1 for faces)
 
ssp< AdjVariantadj
 Shared adjacency pair (typed by row width)
 
tPbiPair pbi
 Periodic bits per entry (only for toDepth==0, optional)
 

Detailed Description

A cone (downward) adjacency from entities at fromDepth to entities at toDepth. Row order is defined by element topology and must not be permuted (e.g., cell2node ordering determines element shape functions).

Periodic bits (pbi) are only meaningful when toDepth == 0 (nodes). For non-periodic meshes or non-node targets, pbi remains uninitialized.

The adjacency data is stored via ssp<AdjVariant> for shared ownership. Both the DAG and legacy mesh members can share the same allocation.

Definition at line 414 of file MeshConnectivity.hpp.

Member Function Documentation

◆ as() [1/2]

template<class TPair >
TPair & DNDS::Geom::ConeAdj::as ( )
inline

Typed access: as<tAdj2Pair>() etc.

Definition at line 434 of file MeshConnectivity.hpp.

◆ as() [2/2]

template<class TPair >
const TPair & DNDS::Geom::ConeAdj::as ( ) const
inline

Definition at line 436 of file MeshConnectivity.hpp.

◆ asAdj() [1/2]

tAdjPair & DNDS::Geom::ConeAdj::asAdj ( )
inline

Access as variable-width tAdjPair. Throws if adj holds a fixed-width type.

Definition at line 422 of file MeshConnectivity.hpp.

◆ asAdj() [2/2]

const tAdjPair & DNDS::Geom::ConeAdj::asAdj ( ) const
inline

Definition at line 423 of file MeshConnectivity.hpp.

◆ asAdj1() [1/2]

tAdj1Pair & DNDS::Geom::ConeAdj::asAdj1 ( )
inline

Definition at line 429 of file MeshConnectivity.hpp.

◆ asAdj1() [2/2]

const tAdj1Pair & DNDS::Geom::ConeAdj::asAdj1 ( ) const
inline

Definition at line 430 of file MeshConnectivity.hpp.

◆ asAdj2() [1/2]

tAdj2Pair & DNDS::Geom::ConeAdj::asAdj2 ( )
inline

Access as fixed-width tAdj2Pair (e.g., for cell2face with 2 entries).

Definition at line 426 of file MeshConnectivity.hpp.

◆ asAdj2() [2/2]

const tAdj2Pair & DNDS::Geom::ConeAdj::asAdj2 ( ) const
inline

Definition at line 427 of file MeshConnectivity.hpp.

◆ fatherSize()

index DNDS::Geom::ConeAdj::fatherSize ( ) const
inline

Number of local (father) rows.

Definition at line 439 of file MeshConnectivity.hpp.

◆ hasPbi()

bool DNDS::Geom::ConeAdj::hasPbi ( ) const
inline

Check if pbi is attached (only valid for toDepth==0).

Definition at line 457 of file MeshConnectivity.hpp.

Here is the caller graph for this function:

◆ initialized()

bool DNDS::Geom::ConeAdj::initialized ( ) const
inline

Check if the adjacency pair is initialized (father is non-null).

Definition at line 448 of file MeshConnectivity.hpp.

Here is the caller graph for this function:

Member Data Documentation

◆ adj

ssp<AdjVariant> DNDS::Geom::ConeAdj::adj

Shared adjacency pair (typed by row width)

Definition at line 418 of file MeshConnectivity.hpp.

◆ fromDepth

int DNDS::Geom::ConeAdj::fromDepth {-1}

Source stratum (e.g., dim for cells, dim-1 for faces)

Definition at line 416 of file MeshConnectivity.hpp.

◆ pbi

tPbiPair DNDS::Geom::ConeAdj::pbi

Periodic bits per entry (only for toDepth==0, optional)

Definition at line 419 of file MeshConnectivity.hpp.

◆ toDepth

int DNDS::Geom::ConeAdj::toDepth {-1}

Target stratum (e.g., 0 for nodes, dim-1 for faces)

Definition at line 417 of file MeshConnectivity.hpp.


The documentation for this struct was generated from the following file: