Nektar++
Loading...
Searching...
No Matches
Functions
Nektar::LibUtilities::StdNodalPrismData Namespace Reference

Functions

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

Function Documentation

◆ getNumberOfBndCoefficients()

constexpr int Nektar::LibUtilities::StdNodalPrismData::getNumberOfBndCoefficients ( int  Na,
int  Nb,
int  Nc 
)
inlineconstexpr

Definition at line 377 of file ShapeType.hpp.

378{
379 ASSERTL1(Na > 1, "Order in 'a' direction must be > 1.");
380 ASSERTL1(Nb > 1, "Order in 'b' direction must be > 1.");
381 ASSERTL1(Nc > 1, "Order in 'c' direction must be > 1.");
382 ASSERTL1(Na <= Nc, "Order in 'a' direction is higher "
383 "than order in 'c' direction.");
384
385 return Na * Nb + 2 * Nb * Nc // rect faces
386 + 2 * (Na * (Na + 1) / 2 + (Nc - Na) * Na) // tri faces
387 - 2 * Na - 3 * Nb - 4 * Nc // less edges
388 + 6; // plus vertices
389}
#define ASSERTL1(condition, msg)
Assert Level 1 – Debugging which is used whether in FULLDEBUG or DEBUG compilation mode....

References ASSERTL1.

◆ getNumberOfCoefficients()

constexpr int Nektar::LibUtilities::StdNodalPrismData::getNumberOfCoefficients ( int  Na,
int  Nb,
int  Nc 
)
inlineconstexpr

Definition at line 366 of file ShapeType.hpp.

367{
368 ASSERTL1(Na > 1, "Order in 'a' direction must be > 1.");
369 ASSERTL1(Nb > 1, "Order in 'b' direction must be > 1.");
370 ASSERTL1(Nc > 1, "Order in 'c' direction must be > 1.");
371 ASSERTL1(Na <= Nc, "Order in 'a' direction is higher "
372 "than order in 'c' direction.");
373
374 return Nb * StdTriData::getNumberOfCoefficients(Na, Nc);
375}

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

Referenced by Nektar::LibUtilities::GetNumberOfCoefficients().