WVPrimaryFlowComponent
Orthogonal solution group
Overview
Each degree-of-freedom in the model is associated with an analytical solution to the equations of motion. This class groups together solutions of a particular type and provides a mapping between their analytical solutions and their numerical representation.
Perhaps the most complicate part of the numerical implementation is the indexing—finding where each solution is represented numerically. In general, a solution will have some properties, e.g., (kMode,lMode,jMode,phi,A,omegasign) which will have a primary and conjugate part, each of which might be in two different matrices.
Topics
- Initialization
WVPrimaryFlowComponentcreate a new orthogonal solution group
- Properties
nModesreturn the number of unique modes of this typeqgpvFactorForA0returns the qgpv multiplier for the A0 coefficient matrix.
- Masks
maskOfConjugateModesForCoefficientMatrixreturns a mask indicating where the redundant (conjugate )solutions live in the requested coefficient matrix.maskOfModesForCoefficientMatrixreturns a mask indicating where solutions live in the requested coefficient matrix.maskOfPrimaryModesForCoefficientMatrixreturns a mask indicating where the primary (non-conjugate) solutions live in the requested coefficient matrix.
- Quadratic quantities
enstrophyFactorForA0returns the enstrophy multiplier for the A0 coefficient matrix.totalEnergyFactorForCoefficientMatrixreturns the total energy multiplier for the coefficient matrix.
- Analytical solutions
solutionForModeAtIndexreturn the analytical solution for the mode at this index
- Index Gymnastics
isValidConjugateModeNumberreturns a boolean indicating whether (k,l,j) is a valid mode numberisValidModeNumberreturns a boolean indicating whether (k,l,j) is a valid mode numberisValidPrimaryModeNumberreturns a boolean indicating whether (k,l,j) is a valid mode number