It is possible to chain propagation loss models together so that they
each act on the packet (such as a large scale plus a small scale fading
model).
The underlying method PropagationLossModel::SetNext() is documented as
follows:
* This method of chaining propagation loss models only works
commutatively
* if the propagation loss of all models in the chain are independent
* of transmit power.
*/
void SetNext (Ptr<PropagationLossModel> next);
Not all of the propagation loss models have this commutative property,
however.
Or is the FriisPropagationLossModel just added to
> calculate the reference loss at the reference distance, as required by
> the log-distance model?
In the example you cite (wifi-simple-adhoc-grid.cc), there is only the
Friis model.
The key here is how this helper object is created. Note that it is
created without any loss or propagation models:
YansWifiChannelHelper wifiChannel ;
If, however, it had been created as:
YansWifiChannelHelper wifiChannel = YansWifiChannelHelper::Default ();
then these would have been added by the Default() method:
helper.SetPropagationDelay ("ns3::ConstantSpeedPropagationDelayModel");
helper.AddPropagationLoss ("ns3::LogDistancePropagationLossModel");
and then Friis would have been subsequently added by the
wifi-simple-adhoc-grid program after LogDistance.
>
> Also, is it possible to use more elaborate fading models such as
> Rayleigh fading and also shadowing with ns3?
>
Yes, see the file propagation-loss-model.h for the available models
(plus there are a few additional ones like Jakes that are separately
declared in the src/common directory).
- Tom
--
You received this message because you are subscribed to the Google Groups "ns-3-users" group.
To post to this group, send email to ns-3-...@googlegroups.com.
To unsubscribe from this group, send email to ns-3-users+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/ns-3-users?hl=en.
To unsubscribe from this group, send email to ns-3-users+...@googlegroups.com.
> > <ns-3-users%2...@googlegroups.com<ns-3-users%252Bunsubscribe@googlegroups.com>