Nektar++
Functions
Nektar::LibUtilities::StdPrismData Namespace Reference

Functions

int getNumberOfCoefficients (int Na, int Nb, int Nc)
 
int getNumberOfBndCoefficients (int Na, int Nb, int Nc)
 

Function Documentation

◆ getNumberOfBndCoefficients()

int Nektar::LibUtilities::StdPrismData::getNumberOfBndCoefficients ( int  Na,
int  Nb,
int  Nc 
)
inline

Definition at line 295 of file ShapeType.hpp.

296 {
297  ASSERTL1(Na > 1, "Order in 'a' direction must be > 1.");
298  ASSERTL1(Nb > 1, "Order in 'b' direction must be > 1.");
299  ASSERTL1(Nc > 1, "Order in 'c' direction must be > 1.");
300  ASSERTL1(Na <= Nc, "Order in 'a' direction is higher "
301  "than order in 'c' direction.");
302 
303  return Na * Nb + 2 * Nb * Nc // rect faces
304  + 2 * (Na * (Na + 1) / 2 + (Nc - Na) * Na) // tri faces
305  - 2 * Na - 3 * Nb - 4 * Nc // less edges
306  + 6; // plus vertices
307 }
#define ASSERTL1(condition, msg)
Assert Level 1 – Debugging which is used whether in FULLDEBUG or DEBUG compilation mode....
Definition: ErrorUtil.hpp:249

References ASSERTL1.

Referenced by Nektar::SpatialDomains::MeshPartition::CalculateElementWeight(), and Nektar::StdRegions::StdPrismExp::v_NumBndryCoeffs().

◆ getNumberOfCoefficients()

int Nektar::LibUtilities::StdPrismData::getNumberOfCoefficients ( int  Na,
int  Nb,
int  Nc 
)
inline

Definition at line 284 of file ShapeType.hpp.

285 {
286  ASSERTL1(Na > 1, "Order in 'a' direction must be > 1.");
287  ASSERTL1(Nb > 1, "Order in 'b' direction must be > 1.");
288  ASSERTL1(Nc > 1, "Order in 'c' direction must be > 1.");
289  ASSERTL1(Na <= Nc, "Order in 'a' direction is higher "
290  "than order in 'c' direction.");
291 
292  return Nb * StdTriData::getNumberOfCoefficients(Na, Nc);
293 }
int getNumberOfCoefficients(int Na, int Nb, int Nc)
Definition: ShapeType.hpp:284

References ASSERTL1, and Nektar::LibUtilities::StdTriData::getNumberOfCoefficients().

Referenced by Nektar::SpatialDomains::MeshPartition::CalculateElementWeight(), Nektar::LibUtilities::FieldIO::CheckFieldDefinition(), Nektar::LibUtilities::GetNumberOfCoefficients(), Nektar::StdRegions::StdPrismExp::v_CalcNumberOfCoefficients(), Nektar::StdRegions::StdPrismExp::v_GenMatrix(), and Nektar::FieldUtils::ProcessEquiSpacedOutput::v_Process().