probe.py script

Probe finite element solutions in points defined by various geometrical probes.

Generation mode

python probe.py [generation options] <input file> <results file>

Probe the data in the results file corresponding to the problem defined in the input file. The input file options must contain ‘gen_probes’ and ‘probe_hook’ keys, pointing to proper functions accessible from the input file scope.

For each probe returned by gen_probes() a data plot figure and a text file with the data plotted are saved, see the options below.

Generation options

-o, –auto-dir, –same-dir, -f, –only-names, -s

Postprocessing mode

python probe.py [postprocessing options] <probe file> <figure file>

Read a previously probed data from the probe text file, re-plot them, and integrate them along the probe.

Postprocessing options

–postprocess, –radial, –only-names

Notes

For extremely thin hexahedral elements the Newton’s iteration for finding the reference element coordinates might converge to a spurious solution outside of the element. To obtain some values even in this case, try increasing the –close-limit option value.

probe.generate_probes(filename_input, filename_results, options, conf=None, problem=None, probes=None, labels=None, probe_hooks=None)[source]

Generate probe figures and data files.

probe.integrate_along_line(x, y, is_radial=False)[source]

Integrate numerically (trapezoidal rule) a function y=y(x).

If is_radial is True, multiply each y by 4 \pi x^2.

probe.main()[source]
probe.postprocess(filename_input, filename_results, options)[source]

Postprocess probe data files - replot, integrate data.