The PHY rate is dependent on the MCS chosen. The MCS is chosen is based on the SNR at the receiver. And the SNR at the receiver is dependent on the transmit power and the propagation losses in the channel.
It would be difficult to combine all these effects into a single formula, which is why I would think a simulator is required.
Harshitha .. Yes you are right. SNR depends on these plus factors like the band used (FR1 or FR2), number of transmit and receive antennas, how is power allocated between the antennas, beamforming, mobility (distance will then change), etc.
The link (https://support.tetcos.com/support/solutions/articles/14000136717-calculating-the-5g-data-phy-rate) explains how NetSim calculates the data rate using the 3GPP standards formula that considers factors such as bandwidth (BW), modulation order (Q), code rate (R), number of MIMO layers (N), and overhead (OH).
My question is: how can I calculate the avg. data rate when the UE moves? How can I validate the results got from NetSim against the 3GPP standard formula for the case when the UE is moving?
The correct way would be to take the time average. You would need to take the Modulation and Coding Scheme (MCS) values at various time intervals, compute their mean, and then incorporating this average MCS into the 3GPP data rate equation. This average MCS will give you the modulation order (Q) and the code rate (R). All the other variables in the equation do not change with time.