The Elevation (DEM) function (
) makes it possible to import geospatial elevation data from digital elevation models (on the DEM file format using the USGS standard from the United States Geological Survey) and map the elevation data to a function of
x and
y. A DEM file contains elevation data for a portion of Earth’s surface. The resulting function behaves essentially like a grid-based interpolation function. The default
Function name is
elev1.
Enter the path and name of the elevation file in the Filename text field, or click
Browse to select a DEM file with elevation data in the
Elevation Data dialog box. You can also click the downward arrow beside the
Browse button and choose
Browse From (
) to open the fullscreen
Select File window. Click the downward arrow for the
Location menu (
) to choose
Show in Auxiliary Data (
) to move to the row for this file in the
Auxiliary Data window,
Edit Location (
) (if the locations is a database)
Copy Location (
), and (if you have copied a file location)
Paste Location (
). When a DEM file is open, the
File section displays the coordinates for the southeast corner.
Click Import (
) to import the elevation data in the specified DEM file into the model; otherwise, COMSOL Multiphysics references the elevation data on your file system. When the elevation data is imported, the
File section (under
Data imported into model) contains information about the filename and the location for the data. Click
Export to save the elevation data to a file and reference from that file instead of including it in the model. Click the
Discard button to delete the imported data from the model. Click the
Refresh button to ensure that the file is reread when needed.
For extrapolation of values that are outside the range in the elevation data, select an Extrapolation method from the list:
Constant (the default),
Linear,
Nearest function (which evaluates the function from the closest grid point at the actual point where a value is requested), or
Specific value. For a
Specific value, enter a value to
Replace missing data with field (SI unit: m). The default is 0 m.
In the Settings window toolbar, click the
Create Surface button (
) to add a
Parametric Surface node to represent the elevation function as a parametric surface in the
Geometry branch for 3D models.