Nektar++
Loading...
Searching...
No Matches
Functions
Nektar::LibUtilities::StdPrismData 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::StdPrismData::getNumberOfBndCoefficients ( int  Na,
int  Nb,
int  Nc 
)
inlineconstexpr

Definition at line 349 of file ShapeType.hpp.

350{
351 ASSERTL1(Na > 1, "Order in 'a' direction must be > 1.");
352 ASSERTL1(Nb > 1, "Order in 'b' direction must be > 1.");
353 ASSERTL1(Nc > 1, "Order in 'c' direction must be > 1.");
354 ASSERTL1(Na <= Nc, "Order in 'a' direction is higher "
355 "than order in 'c' direction.");
356
357 return Na * Nb + 2 * Nb * Nc // rect faces
358 + 2 * (Na * (Na + 1) / 2 + (Nc - Na) * Na) // tri faces
359 - 2 * Na - 3 * Nb - 4 * Nc // less edges
360 + 6; // plus vertices
361}
#define ASSERTL1(condition, msg)
Assert Level 1 – Debugging which is used whether in FULLDEBUG or DEBUG compilation mode....

References ASSERTL1.

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

◆ getNumberOfCoefficients()

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

Definition at line 338 of file ShapeType.hpp.

339{
340 ASSERTL1(Na > 1, "Order in 'a' direction must be > 1.");
341 ASSERTL1(Nb > 1, "Order in 'b' direction must be > 1.");
342 ASSERTL1(Nc > 1, "Order in 'c' direction must be > 1.");
343 ASSERTL1(Na <= Nc, "Order in 'a' direction is higher "
344 "than order in 'c' direction.");
345
346 return Nb * StdTriData::getNumberOfCoefficients(Na, Nc);
347}

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

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