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

294 {
295  ASSERTL1(Na > 1, "Order in 'a' direction must be > 1.");
296  ASSERTL1(Nb > 1, "Order in 'b' direction must be > 1.");
297  ASSERTL1(Nc > 1, "Order in 'c' direction must be > 1.");
298  ASSERTL1(Na <= Nc, "Order in 'a' direction is higher "
299  "than order in 'c' direction.");
300 
301  return Na * Nb + 2 * Nb * Nc // rect faces
302  + 2 * (Na * (Na + 1) / 2 + (Nc - Na) * Na) // tri faces
303  - 2 * Na - 3 * Nb - 4 * Nc // less edges
304  + 6; // plus vertices
305 }
#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 282 of file ShapeType.hpp.

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

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

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