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 290 of file ShapeType.hpp.

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

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 279 of file ShapeType.hpp.

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

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

Referenced by Nektar::SpatialDomains::MeshPartition::CalculateElementWeight(), 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().