test_examples module

Module to perform tests for all example cases.

This file is executed by pytest to have good CI.

class test_examples.TestExamples[source]

Bases: object

Class to bundle all examples tests.

All tests are compared against reference errors.

solver_path = 'fenicsR13'
run_solver(inputfile, working_dir_)[source]

Run the solver as subprocess with the given input file.

Test fails if subprocess return Exception or error.

create_meshes(working_dir_)[source]

Create the test meshes. Executed before any test of the class.

Often not needed if meshes are in Git through LFS for reproducability.

test_lid_driven_cavity()[source]

Test the lid driven cavity case.

test_lid_two_regions()[source]

Test the lid case with two region.

test_channel_flow_pressure()[source]

Test the pressure-induced channel flow case and generate table with Kn vs. massflow.

test_channel_flow_force()[source]

Test the force-induced channel flow case and generate table with Kn vs. massflow.

test_knudsen_pump()[source]

Test the knudsen pump case.