Adding Terrain Effects to a Custom Model
Models created with the standard models and default pipeline stages can use Terrain Modeling Module (TMM) directly. If you want to use TMM with a custom model in which you have modified the closure or receiver power pipeline stages, you will have to modify your model to include support for terrain modeling.
The closure stage is the critical one. It is here that the propagation model is called to compute path loss and determine if line-of-sight exists between the transmitter and receiver antennas. Examine the default closure stage dra_closure (located in the <reldir>/models/std/wireless directory) to determine what changes your model requires.
The only change in the receiver power stage is to use the path loss calculated by TMM in the closure stage, if the value exists. Thus, custom power stages should work without modification, but will execute faster if modified to use the pre-calculated path loss. For an example, refer to the default power stage dra_power in the <reldir>/models/std/wireless directory.