Nektar++
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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

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

Definition at line 297 of file ShapeType.hpp.

References ASSERTL1.

{
ASSERTL1(Na > 1, "Order in 'a' direction must be > 1.");
ASSERTL1(Nb > 1, "Order in 'b' direction must be > 1.");
ASSERTL1(Nc > 1, "Order in 'c' direction must be > 1.");
ASSERTL1(Na <= Nc, "Order in 'a' direction is higher "
"than order in 'c' direction.");
return Na*Nb + 2*Nb*Nc // rect faces
+ 2*( Na*(Na+1)/2 + (Nc-Na)*Na ) // tri faces
- 2*Na - 3*Nb - 4*Nc // less edges
+ 6; // plus vertices
}
int Nektar::LibUtilities::StdPrismData::getNumberOfCoefficients ( int  Na,
int  Nb,
int  Nc 
)
inline

Definition at line 286 of file ShapeType.hpp.

References ASSERTL1.

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

{
ASSERTL1(Na > 1, "Order in 'a' direction must be > 1.");
ASSERTL1(Nb > 1, "Order in 'b' direction must be > 1.");
ASSERTL1(Nc > 1, "Order in 'c' direction must be > 1.");
ASSERTL1(Na <= Nc, "Order in 'a' direction is higher "
"than order in 'c' direction.");
}