spectrum: Extensions for MIMO support (multiple TX/RX antenna ports, polarizations, freq.domain ch. matrix)

spectrum: Remove obsolete code line
spectrum: Fix MatrixBasedChannelModel Doxygen
spectrum: Fix SpectrumSignalParameters Doxygen
spectrum: Fix ThreeGppSpectrumPropagationLossModel Doxygen
spectrum: Rename get horizontal number of elements in the port
spectrum: Rename GetElem->Elem
spectrum: More consistent usage of auto in ThreeGppChannelExample
spectrum: ThreeGppSpectrum to use HermitianTranspose that is a member of MatrixArray
spectrum: GetPolAngle->GetPolSlant MR2
spectrum: Rename IsPolDual -> IsDualPol, and IsPolarized->IsDualPolarized
spectrum: Replace GetNumPolarization with simple code
spectrum: Remove unnecessary copy of rxParams
spectrum: Rename sAntElmnts/uAntElmnts to more intuitive sPortElems/uPortElems
spectrum: Improve comment in CalcBeamformingGain, add line breaks
spectrum: Fix comment in spectrum-signal-parameters
spectrum: Simplify the code for spectrum channel matrix calculation
fix spell check type vice-versa
Add <map> include
spectrum: Update variables to use size_t instead of uint16_t
spectrum: Refactor the code related to polarization and move it to antenna
spectrum: Documents the full MIMO extensions
spectrum: fix doxygen y comments
spectrum: fix documentation
fix spectrum doc
spectrum: Minor documentation cleaning
spectrum: Simplify the interface
Minor fixes in spectrum 3gpp
spectrum: Add a reference and a comment in the code for the multi-port
model and 3GPP sub-array partition model for the TXRU virtualization
This commit is contained in:
Biljana Bojovic
2023-02-01 23:08:24 +01:00
parent adeecb9abd
commit 1791a52e36
16 changed files with 637 additions and 273 deletions

View File

@@ -114,11 +114,12 @@ ComputeSnr(const ComputeSnrParams& params)
*(params.txParams->psd) *= propagationGainLinear;
// apply the fast fading and the beamforming gain
Ptr<SpectrumValue> rxPsd = m_spectrumLossModel->CalcRxPowerSpectralDensity(params.txParams,
params.txMob,
params.rxMob,
params.txAntenna,
params.rxAntenna);
auto rxParams = m_spectrumLossModel->CalcRxPowerSpectralDensity(params.txParams,
params.txMob,
params.rxMob,
params.txAntenna,
params.rxAntenna);
Ptr<SpectrumValue> rxPsd = rxParams->psd;
NS_LOG_DEBUG("Average rx power " << 10 * log10(Sum(*rxPsd) * 180e3) << " dB");
// create the noise psd