Changes

EM.Terrano

80 bytes added, 15:53, 11 June 2013
/* Using Terrain Generator */
[[File:PROP18.png]]
Figure 1: [[Propagation Module]]'s Terrain Generator dialog.
Some surface types have an additional shape factor called '''Alpha''' that is identical to the alpha parameter in the surface generator. For example, a Gaussian Hump is defined as exp(-r<sup>2</sup>/(2a<sup>2</sup>)), where r is the polar radius. For a Super-quadratic Hump, the input parameter a defines the degree of the super-quadratic surface. a = 2 corresponds to an ellipsoid. Larger values of a get close to a rectangular base with rounded corners. An undulated sinusoidal surface is defined by cos(pax/D<sub>x</sub>)*cos(pay/D<sub>y</sub>), and an undulated sinc is defined by D<sub>x</sub>*D<sub>y</sub>*sin(pax/D<sub>x</sub>)*sin(pay/D<sub>x</sub>)/(2pxy), where D<sub>x</sub> and D<sub>y</sub> are the X and Y dimensions, respectively. Terrain Generator creates a unit cell based on the specified surface type. From the same dialog, you can also produce an array arrangement of such unit cells. Simply enter any number of elements along the X and Y directions in the boxes labeled '''Array'''.
[[File:PROP19.png|800px]]
Figure 2: A 4 × 4 array of hill terrain objects.
You can define any arbitrary surface by entering an equation of the two [[variables ]] x and y as z = f(x,y). In this case, you have to select the '''Custom Function''' option in the dropdown list labeled '''Model'''. You should enter your equation as any mathematical expression in the box labeled '''Function f(x,y)'''. You can use any of EM.Cube's mathematical functions listed in the '''Function Dialog''' or combine several of them. Note that after selecting the custom function option, the height of the surface is determined by your equation, and the '''Height''' box is disabled. You can also introduce random noise and create a rough terrain. You can do this by setting a nonzero value for '''Noise''', which represent the RMS peak-to-valley amplitude of the surface roughness. The figures below show two custom terrain surfaces modeled by the equation z = (x.y)/20 defined over the range [0, 10] in both X and Y directions. Random noise has been added to both surfaces, with the noise amplitude being 0.2 and 0.5 for the left and right figures, respectively.
[[File:PROP21.png|400px]] [[File:PROP20.png|400px]]
Figure 3: Two noisy custom terrain surfaces both defined as z = (x.y)/20: (Left) RMS noise amplitude = 0.2, (right) RMS noise amplitude = 0.5.
=== Generating Grid-Based Terrain ===
=== Running a Parametric Sweep with SBR ===
In EM.CUBE, all the CAD object properties as well as certain source, material and mesh parameters can be assigned as [[variables]]. [[Variables ]] are defined to control and vary the values of such parameters either for editing purposes or to run parametric sweep or [[optimization]]. Variable are defined using the '''[[Variables ]] Dialog''', which can be accessed in the three ways:
# By clicking the '''[[Variables]]''' [[File:variable_icon.png]] button of the '''Compute Toolbar'''.# By selecting '''Compute''' [[File:larrow_tn.png]] '''[[Variables]]...''' from the Menu Bar.
# Using the keyboard shortcut '''Ctrl+B'''.
The [[variables ]] dialog is initially empty. To add a new variable, click the '''Add''' button to open up the '''Add Variable/Syntax Dialog'''. In this dialog you have to type in a name for the new variable and choose a type. The default type is '''Uniformly Spaced Samples'''. You also need to specify the '''Start''', '''Stop''' and '''Step''' values for the variable. In the figure below, a variable called &quot;Tx_Height&quot; is defined that varies between 2 and 10 with equal steps of 2. This means the sample set {2,4,6,8,10}. When you return to the [[variables ]] dialog, the syntax of the new variable is shown as 2:10:2. The last number in this syntax is always the variable step. In this example, this variable is going to be used to control the height of the transmitter in a propagation scene.
[[File:prop_run24.png]] [[File:prop_run23.png]]
EM.CUBE's variable dialog and the dialog for defining a new variable.
Next, you have to attach the variable to the CAD object. In this case, the CAD object is the point object that represents the transmitter's radiator. To attach a variable to a CAD object, open the object's property dialog and type in the name of the variable as the value of a property or parameter. In this case, the variable Tx_Height is going to control the Z-Coordinate of the point object. Once the value of the object parameter is replaced by the name of an already defined variable, it is updated with the current value of that variable. In the case of a variable of &quot;Uniformly Spaced Samples&quot; type, the current value is the start value. This value will be incrementally varied during a parametric sweep simulation process. Note that a variable can take a fixed value or a discrete set of values, too. You can always open the [[variables ]] dialog and change the value or syntax of any variable. To make a new or modified value effective, click the '''Apply''' button of the [[variables ]] dialog. You can test the values by performing a '''Dry Run''' of the selected variable. This runs an animation of the project workspace as the value of the variable changes and all the related CAD objects are updated accordingly. Note that you can attach the same variable to more than one CAD object property or to the properties of different objects. You can also define multiple values or syntaxes to the same variable. To do so, open the '''Add Variable/Syntax Dialog''', and instead of typing in a new variable name, choose an existing variable name from the '''Name''' dropdown list. This will add a new value or syntax to the existing syntax(es) of the selected variable. When you return to the [[variables ]] dialog, [[variables ]] with more than one value or syntax will have a dropdown list in the '''Syntax''' column. You can choose any of these values or syntaxed at any time and make the change effective by clicking the '''Apply''' button.
[[File:prop_run25.png]]
Replacing the value of a CAD object parameter with a variable name.
To run a parametric sweep, open the '''Run Dialog''' and select the '''Parametric Sweep''' option in the '''Simulation Mode''' drop-down list. If you have not defined any [[variables ]] in the project, the box in the '''[[Variables]]''' row before the '''View''' will be red. You have to turn it into green before you can run a simulation. By clicking the '''View''' button, you can open up the [[variables ]] dialog from here. Once you click the '''Run''' button, EM.CUBE performs a parametric sweep by incrementally varying the values of all the defined [[variables ]] from their start to stop values at the specified steps and updating all the related CAD objects. After the completion of a parametric sweep simulation, as many coverage maps as the total number of variable samples are generated and added to the Navigation Tree under the receiver set's entry. You can click on each of the coverage maps and visualize it in the project workspace. You can also animate the coverage maps sequentially. To do so, right click on the receiver set's name in the Navigation Tree and select '''Animation''' from the contextual menu. To stop the animation, simply press the keyboard's '''Esc Key'''.
[[File:prop_run26.png]]
Administrator
613
edits