FEM PostFilterContours

From FreeCAD Documentation
Other languages:

FEM PostFilterContours

Menu location
Results → Contours filter
Default shortcut
Introduced in version
See also
FEM Result pipeline, FEM Filter functions, FEM tutorial


Creates iso-contours and iso-lines in the results mesh.

Iso-contours, depicting the y-component of the absolute magnetic
flux density in and around a copper wire that is flown through by
an electric current at a frequency of 100 kHz.
For more info about this model, see section 14 of the Elmer Tutorials.


  1. Select a previously created result pipeline.
  2. Create the filter either by pressing the button Contours filter or by using the menu Results → Contours filter.
  3. Adjust the Result display options like for the result pipeline. You might need to hide the pipeline to see the effect of the filter in the preview.
  4. In the dialog that appears set the result field and the number of contours.
  5. Click the OK button to finish the command.


The dialog offers the following settings:

  • Field: The results field to be drawn.
  • Vector: If the Field is a vector, the vector components.
  • Number of contours: The number of contours to be created. Note: depending on the geometry the created number of contours can be higher than specified. This is caused by the creation algorithm. However, for 2D and simple 3D geometries, the number should be correct.
  • No color: Don't apply a color to the contours.

Note: A Field can only be set if a filter function exists and has been applied with Apply Changes. Alternatively you can reopen the filter dialog.

File Size Information

Setting a Contours filter can increase the file size significantly. The reason is that the algorithm needs to copy the Post result pipeline. A single contour does not need the whole mesh and the algorithm only requires half the pipeline storage size to create a contour. But this will be the size increase for every contour. Take for example the case where the pipeline storage size is 1 MB, adding a Contours filter with 10 contours will then lead to a 5 MB larger file size.

The storage size of the pipeline depends on the used mesh. The finer the mesh, the larger the pipeline size. Therefore be careful if you have large meshes and a large number of contours.

If you use contours only on a part of the mesh, for example when you have a clip filter, then create the Contours filter on the filter and not on the pipeline. If you do need the whole pipeline, start with a few contours and then step by step go up until the file size is still acceptable while the visualization is as you like it.