Because flux density is a function of EIRP and range, and both parameters are available as inputs to the Transmitter Model plugin script, you can create a plugin of this type to compute the necessary EIRP to maintain a constant power flux density.
Given a constant flux density, you can create a Transmitter Model plugin script to adjust the transmit power or EIRP accordingly.
**This assumes a clear environment (free-space loss only).**
Flux Density (F) = EIRP/(4piR2) (1)
EIRP = 4piR2 F (2)
where R = Range between transmitter and receiver
In MATLAB, the code is as follows to compute power in watts and convert to dBW:
r2 = range^2;
FD = 1e-7
pow = 10*log10(4*pi*r2*FD);
where
FD = flux density
pow = transmit power or EIRP
r2 = range squared
The computed power is assigned to the transmit power in the plugin script. A sample of this plugin in MATLAB is attached. You can use the plugin for a transmitter of type: Script Plugin ...
Here is some sample output:
Time (EpSec) EIRP (dBW) Flux Density (dBW/m^2)
------------ ---------- ----------------------
1084.066 66.994 -72.3
1144.000 65.593 -72.3
1204.000 63.956 -72.3
1264.000 62.033 -72.3
1324.000 59.822 -72.3
1384.000 57.614 -72.3
1444.000 56.543 -72.3
1504.000 57.647 -72.3
1564.000 59.861 -72.3
1624.000 62.069 -72.3
1684.000 63.986 -72.3
1744.000 65.619 -72.3
1802.723 66.991 -72.3