Skip to content

Extract Topography

Info

This example will demonstrate how to add a cell data field to an input data set that defines whether that cell should be active. The activity of the cell is determined by whether it is beneath and input topography surface.

Overview

This filter adds a new cell data field to an input data source defining whether that cell is beneath some input topography surface.

Why add a cell data field?

We add a cell data field to the input data set as this allows us to use a wide range of input data types. We also add this data array as it will enable users to create model discretizations within ParaView for export to external processing software that need the entire model discretization with an active cells field.

ParaView Example

PVGeo: Extract Topography Filter from Bane Sullivan on Vimeo.

First, lets generate some data on the ParaView pipeline. For this example, we need a topography data set and an input grid data set.

Data Description

Data File: ‘topo.vtk’

  • Description: This data file is has a vtkPolyData topography surface we can use.

For the grid data set, let’s use one of the Model Building sources: Sources->PVGeo: Model Building->Create Tensor Mesh with the following parameters:

  • Origin: [793000, 9192500, 2690]
  • X Cells: 1000 500 50*250 500 1000
  • Y Cells: 1000 500 55*250 500 1000
  • Z Cells: 30*100.0 5*250.0 500

Now we have an input data set that we wish to extract beneath the topography surface shown in the rendering below:

The Input Data

Apply the Filter

Now that you have the topography and a grid data set on the pipeline, let’s go ahead and use the Extract Topography filter: Filters->PVGeo: General Grids->Extract Topography. Be sure to properly select the input data sets in the pop-up dialog like the image below:

Select Inputs

After selecting the proper inputs, click OK then Apply and find the output data object on the pipeline. Select the output and change the display coloring to the new Active Topography cell field. This will show the cells that are active underneath the topography surface (0 for above surface and 1 for below surface). Now we can threshold this gridded data set to remove parts of the model that are above the topography surface by applying a Threshold filter native to ParaView and chopping out all values below 1.

The resulting grid with cells above the topography extracted will look like the rendering below:

Example

Python Example

Description to come!

There are a lot of pages in the documentation and we are trying to fill all content as soon as possible. Stay tuned for updates to this page

Comments