A radar drive test is simulated using a vehicle target and the results are post-processed in order to generate a range-Doppler plot.
This tutorial utilizes WaveFarer's library by importing both the vehicle target assembly and the asphalt material, which is used to define the ground's electromagnetic properties. A transceiver is then added, consisting of one transmitter with a 77 GHz sinusoid waveform and one receiver. Each transceiver component includes a 30 degree directional antenna.
The locations of the vehicle target and the radar are parameterized based on each object's starting point and velocity over a time frame of 0 to 9 seconds. Users can animate the geometry by writing and executing and a short script as confirmation that the time parameter will behave as expected. The simulation begins at 3 seconds and launches one frame of 51 chirps one time, with start and stop frequencies of 77 GHz and 81 GHz, respectively.
Users can post-process WaveFarer's results in order to generate a range-Doppler plot at 3 seconds. This output displays the target's response to the radar as it moves according to the applied velocity parameter over the specified time period.
This tutorial utilizes the following skills:
- Importing the NCAP vehicle target from WaveFarer's parts library and parameterizing it to add movement.
- Creating the asphalt ground by adding an extrude, and setting its electromagnetic properties by creating and assigning a material.
- Adding two transceiver components, each including a 30 degree directional antenna: one transmitter with a sinusoid waveform frequency of 77 GHz and one receiver.
- Creating parameters and applying them to the radar to add movement.
- Defining the analysis boundary to indicate that the edges of the road are outside the volume of interest.
- Configuring the analysis with 3 reflections and 2 diffractions.
- Writing and executing a short script that animates the geometry and confirms correct parameter sweep behavior.
- Running a simulation that begins at 3 seconds and will launch one frame of 51 chirps one time, with start and stop frequencies of 77 GHz and 81 GHz, respectively.
- Generating a range-Doppler that displays the location and speed of the vehicle target based on its response to the radar signal.
Step 1: Add the Vehicle Target
The vehicle target is added to the project from the library, and then parameters are created to apply movement to the target.
First, add the vehicle target.
- Click on the Libraries button on the right side of the WaveFarer window to open the Libraries editor.
- In the Libraries section on the left side of the editor, select Automotive Radar.
- In the Filters section, select Parts.
- In the lower portion of the editor, click on Euro NCAP Vehicle Target and drag it to the Parts branch of the Project Tree.
- Click OK in the Material Assignments window to add the vehicle to the project.
- Close the Libraries window.
Verify that the vehicle geometry appears in the Parts branch of the Project Tree. Also, notice that the associated materials have been added to the Definitions branch of the Project Tree.
Next, create the parameters.
- Click the Parameters button on the right side of the WaveFarer window to open the Parameters window.
- Click the button in the upper-left corner of the Parameters window.
- Enter the Name by typing targetVelocity into the highlighted field.
- Press Tab and type 10 m/s into the Formula field.
- Press Tab and type Velocity of vehicle target into the Description field.
- Press Tab to add a second parameter.
- Type startLocation into the Name field.
- Press Tab and type 100 m into the Formula field.
- Press Tab and type Separation between target and sensor at t=0 s into the Description field.
- Press Tab to add a third parameter.
- Type t into the Name field.
- Press Tab and type 0 s into the Formula field.
- Press Tab and type Time into the Description field.
- Press Tab to add a fourth parameter.
- Type targetLocation into the Name field.
- Press Tab and type startLocation + targetVelocity*t into the Formula field.
- Press Tab and type Location of target at time t into the Description field.
- Click Apply and close the Parameters window.
Then, apply the parameters to the project.
- Right-click on the Euro NCAP Vehicle Target assembly in the Project Tree, then select Modify ❯ Specify Orientation.
- Click the Advanced Mode button on the right side of the editor.
- Select Anchor on the left side of the editor.
- In the Anchor: Fixed Position section, enter targetLocation as the U value.
- Click Done to close the editor.
View the vehicle target's new coordinates in the bounding box in the Geometry window by clicking the Zoom to Extents button and then clicking on the Euro NCAP Vehicle Target in the Project Tree. Verify that the target moved to 100 m.
Step 2: Create the Asphalt Ground
The ground is modeled as a sheet body, but is treated as a dielectric half-space by creating and assigning a material.
First, create the ground.
- Right-click on the Parts branch of the Project Tree and select Create New, then Sheet Body to open the editor.
- Change the view by clicking View from +Z (top) on the right-side of the Geometry window.
- Under the Edit Profile tab, use the drop-down arrow to select the Rectangle tool from the shapes toolbar.
- In the drawing window, click on -5, -10, 0 to select the geometry's first point.
- Press Tab and enter 200 m as the U′ value in the Specify Position window.
- Press Tab and enter 10 m as the V′ value.
- Click OK.
- Name the part by typing Ground into the Name field.
- Click Done to save the changes to the project.
Next, assign the material.
- Click the Libraries button on the right side of the WaveFarer window.
- In the window, change the Filters by clicking on Materials.
- Click on the Asphalt material in the lower portion of the window and drag it into the Materials node of the Project Tree.
- In the Definitions branch of the Project Tree, click on Asphalt and drag it to the Ground in the Parts branch.
- Close the Libraries window.
Then set the ground as environment.
- Right-click on Ground in the Project Tree and choose Set as Environment.
Verify that the parts are set properly by right-clicking on the Parts branch of the Project Tree and choosing View Parts List (All Parts) to open the window. Confirm that the second column indicates that all vehicle parts are set as scatterers and the ground is set as environment, and then close the window.
Step 3: Create and Parameterize Transceiver
The transceiver serves as the point where the rays are sent and received. For this tutorial, it consists of one transmitter and one receiver with associated antenna and waveform definitions. A parameter is created and applied to the target.
First, define the antenna.
- In the Definitions branch of the Project Tree, right-click on Antennas and select New Antenna Definition.
- Name the antenna name by typing Directional (30 deg) into the highlighted field.
- Press Enter to commit the name change.
- Double-click on Directional (30 deg) in the Project Tree to open the Antenna Editor.
- In the editor, use the Type drop-down menu to select Directional.
- Enter 30 degrees as the E-Plane Half Power Beam Width.
- Enter 30 degrees as the H-Plane Half Power Beam Width.
- Click Done to close the editor.
Next, create the transceiver.
- Right-click on the Transceivers branch of the Project Tree and select New Transceiver Points Layout.
- Under the Layout tab, click in the Type field and use the drop-down arrow to select Transmitter.
- In the next column, check the box that Activates the antenna pattern for viewing at this location.
- Check the Changes to Radius Affects All Points option.
- Click in the Radius field and enter 0.025 m.
- Click the button on the right side of the Layout tab.
- Click in the second point's Type field and use the drop-down arrow to select Receiver.
- Press Enter to apply the change.
- Select the first point in the table by clicking on Transmitter.
- Toggle the orientation-editing settings by clicking the button at the top of the tab.
- Enter 0.007 m as the Y value.
- Enter 0.5 m as the Z value.
- Press Enter to apply the change.
- Change the Point to 2 to select the Receiver.
- Enter -0.007 m as the Y value.
- Enter 0.5 m as the Z value.
- Press Enter to apply the change.
- Enter the transceiver name by typing Radar into the Name field.
- Click Done to close the editor.
Then, parameterize the transceiver.
- Click the Parameters button on the right-side of the WaveFarer window to open the Parameters window.
- Click the in the upper-left corner of the window.
- Enter the Name by typing sensorVelocity into the highlighted field.
- Press Tab and enter 20 m/s into the Formula field.
- Press Tab and type Velocity of radar sensor into the Description field.
- Press Tab and name the next parameter by typing sensorLocation into the highlighted field.
- Press Tab and type sensorVelocity*t into the Formula field.
- Press Tab and type Location of radar sensor at time t into the Description field.
- Click Apply to save the changes and close the Parameters window.
- In the Transceivers branch of the Project Tree, double-click on Radar to open the editor.
- Under the Specify Orientation tab, click the Advanced Mode button on the right side of the editor.
- Select Anchor on the left side of the editor.
- In the Anchor: Fixed Position section, enter sensorLocation as the U value.
- Click Apply.
- Click Done to close the editor.
Then, set the waveform's properties.
- In the Definitions branch of the Project Tree, double-click on the Sinusoid waveform to open the Waveform Editor.
- Enter 77 GHz as the Frequency.
- Enter the waveform name by typing 77 GHz Sinusoid into the Name field.
- Click Done to close the editor.
Step 4: Set the Analysis Boundary
The analysis boundary inputs define the area included in the simulation. For this tutorial, the boundary is set inside the road to remove diffractions for more realistic results.
- Right-click on Analysis Boundaries in the Project Tree and select New Analysis Boundary to open the editor.
- Enter 199 m into the X1 field.
- Enter -9 m into the Y1 field.
- Enter -1 m into the Z1 field.
- Enter -4 m into the X2 field.
- Enter 9 m into the Y2 field.
- Enter 5 m into the Z2 field.
- Type Analysis Boundary into the Name field.
- Click Done to close the editor.
Step 5: Set the Analysis Configuration
The analysis configuration inputs control how the calculation engine evaluates the simulation space. Users can modify the tradeoff between simulation accuracy and run time by adjusting the reflection and diffraction values, which determine the maximum number of interactions a ray path can have with geometry faces and edges. Higher numbers increase accuracy, as well as run time. For the vehicle target, a ray must reflect off of at least three faces for it to return back to the receiver, so the values will allow three reflections and two diffractions.
- Right-click on Analysis Configurations in the Project Tree and select New Physical Optics Configuration.
- Enter the configuration name by typing 3R2D into the highlighted field.
- Press Enter to commit the name change.
- Double-click on 3R2D in the Project Tree to open the Physical Optics Configuration Editor.
- Under the Properties tab, enter 3 as the Number of Reflections.
- Enter 2 as the number of Diffractions.
- Under the Specialized Output Requests tab, check the Enable Time-Sampled Data setting.
- Click Done to close the editor.
Step 6: Animate the Scenario
Once the project is set up, users can animate the geometry by writing and executing a short script. This step is not required, but it is recommended because it provides visual confirmation that the parameter sweep will behave as expected when the simulation is created.
- Right-click on the Scripts branch of the Project Tree and select New Macro Script to open the Scripting window.
- In the Project Tree, right-click on New Macro Script and select Rename.
- Enter the script's name by typing Sweep t into the Project Tree.
- Press Enter to commit the change to the project.
- Enter the following script into the upper portion of the Scripting window:
for( var i = 0; i <= 9; i += 0.1 )
{
list.setFormula( "t", i + " s" );
App.sleep( 10 );
}
- Save the script by clicking the Commit button in the toolbar, and close the Scripting window.
- Right-click on Sweep t in the Project Tree, then select Execute to run the script.
Step 7: Simulate a Linear Chirp
Once the project setup is complete, it must be saved in order for the script to be used to create a new simulation and write output files.
First, download the script.
- Download the Create Linear Chirp Simulation script and save it in WaveFarer's Macros folder.
Next, save the project.
- In the upper-left corner of WaveFarer, click File ❯ Save Project As to open the editor.
- Choose the desired location and enter Euro NCAP Vehicle Target as the Project Name.
- Click Save to save the project.
Then, check the hardware settings before creating a simulation.
- Click the Simulations button on the right side of the WaveFarer window to open the Simulations window.
- Click the Create New Simulation button to open the editor.
- Verify that the settings under the Resources tab are appropriate for the hardware being used to run the simulation.
- Click Done to close the editor.
Create and run the simulation.
- In the upper-left corner of WaveFarer, click Macros ❯ Simulate Linear Chirp to open the editor.
- Name the simulation by entering Linear Chirp Simulation at 3 s as the Simulation name.
- Change the Time parameter by selecting t from the drop-down menu.
- Change the Launch times of each frame by entering 3 s.
- Enter 77 GHz as the Start frequency.
- Enter 81 GHz as the Stop frequency.
- Enter 20 us as the Chirp length.
- Enter 0 s as the Reset time between chirps.
- Enter 101 as the Number of chirps per frame.
- Check the Queue simulation option.
- Click the Create Simulation button.
Step 8: Generate Range-Doppler
Users can generate a range-Doppler graph that displays the distance and velocity of the vehicle target based on its response to the radar signal.
First, download the script.
- Follow the instructions on the Generate Range-Doppler script page to make the script available in WaveFarer's macros menu.
Next, post-process range-Doppler.
- In the upper-left corner of the WaveFarer window, click Macros and select Generate Range-Doppler to open the editor.
- In the Chirp Simulation Inputs section, use the Simulation drop-down arrow to select 000001.
- In the Chirp Sampling Parameters section, enter 2 us as the First Sample.
- Enter 2.5 ns as the Sample Spacing.
- Enter 6400 as the Number of Samples.
- Click OK.
The plot displays the range-Doppler data at 3 seconds with the distance and velocity of the Vehicle Target based on its response to the radar signal.