Iam using s-parameters values to calculate the ECC values. I extracted S11, S21, S12 and S22 from the simulator and used in Matlab to find ECC. ECC values calculated from simulator and Matlab differs. Any pointer to solve this.
I agree the ECC calculated from pattern and S-parameter will be different. But ECC calucalted from tool(uses S-parameter) and matlab (using ECC S-parameter formula) must be same. However, it is different in my case. I want to code in matlab to compare with measured results. Also, while calculating the ECC values , i tried using dB and real values of S-parameters. Yet, the matalb calcu;ation never matched with tool calculation
In my experience, they (CST tool and personal MATLAB code) gave exactly same values of ECC (for both s-para as well as far-field expressions). Two things i would like to point out - as you see, they must be same as the process is same, the post-processing tool uses s-para data internally supplied to it by CST solver, on the other hand we are doing the same in MATLAB supplying it with CST generated s-paras externally(so need to make sure, we are exporting same s-paras). Secondly, as you are saying that u r getting different results (althugh didn;t mention how different !!), you may like to check ur formula, and note that envelope correlation is given as sqaure of absolute vaue of correlation coefficient (under gaussian conditions), and we shall not mix them up.
In HFSS: right click on Results -> click Output Variables -> give a Name -> add the following in the Expression box -> click on Add
mag((mag((conjg(S(1,1))*S(1,2))+(conjg(S(2,1))*S(2,2))))/(((1-mag(S(1,1))^2-mag(S(2,1))^2)*(1-mag(S(2,2))^2-mag(S(1,2))^2))^(1/2))) After the simulation is complete... right click on Results -> go to Create Modal Solution Data Report -> Rectangular Plot -> click on Output Variables -> New Report.
Note: This formula using S-parameters is only valid for antennas with high efficiencies, i.e., very low loss resistance! For antennas with low radiation efficiencies one must rely on the formula involving radiation patterns.
S. Blanch, J. Romeu, and I. Corbella, “Exact representation of antenna system diversity performance from input parameter description,” Electron. Lett., vol. 39, no. 9, pp. 705–707, 2003.
P. Hallbjorner, "The significance of radiation efficiencies when using S-parameters to calculate the received signal correlation from two antennas," in IEEE Antennas and Wireless Propagation Letters, vol. 4, pp. 97-99, 2005.