Results¶
After a solve, the Results node lists the models, then their fields; its form shows a table of the results (the outputs of the models). With a result field selected, its form sets:
the component (or the magnitude) of a vector field;
the deformed shape, with its scale factor (displacements);
the colormap and the color range (empty bounds: the range of the values);
isolines, evenly spaced in the range, and color bands;
the edges of the elements over the field (mesh edges, also the Edges button of the view);
arrows of a vector field, on a regular grid, of a length proportional to the magnitude;
a cut line;
layers drawn over the field, as many as wanted (Add arrows, Add isolines; × removes one): arrows of a vector field (their number along the longest side, their length), isolines of any field (a component or the magnitude of a vector, the number of levels evenly spaced in its range; on the boundary in 3D), each in its color (black, white, gray, red, blue, green, magenta). The temperature of
busbar_joule.json, for instance, is shown with the arrows of the current density and the equipotentials (the isolines ofV) around the hole. In the file, a graphic has"layers": [{"type": "arrows", "field": "current_density", "count": 25, "scale": 1.5, "color": "black"}, {"type": "isolines", "field": "V", "component": null, "count": 12, "color": "white"}].
A click on a 2D field shows its value under the toolbar of the view. The Cut line tool draws a segment A → B (it can also be typed in the form): the field is plotted along it under the view (with gaps outside the domain), and the values can be saved as a CSV file.
These settings are saved in the model file, in the Graphics of the model (one per result field by default, named after it; Add a graphic gives another view of a field, with bands or its own cut line, say). They come back when the file is reopened, and changing them does not make the results out of date.
Results in time (a transient solver, see Models) show the
last saved time first; a time bar under the view chooses another one
(the slider, or Play: one after the other), for every field and graphic.
The table of the Results node then gives the values at that time, and
In time plots a scalar result (an output, an extremum) against the time.
Plots¶
A model may have plots (its Plots node: Add a plot, then Add a
curve): 1D graphs of curves computed with the solution, each curve a scalar
GWFL expression (a variable, a macro of the modules, von_mises,
Norm(J_field), u(2), T - 20, its gradient…). The abscissa of a
plot is
along a line: each curve along a segment from A to B (its Number of points, 101 by default), against the distance from A; outside the domain (a hole, the segment going out) the curve has a gap. In time, its Times are
last(the end, the default),all(each saved time) or a list of times (10, 20, 60: the nearest saved ones), a curve each (labeled with its time);in time: each curve the value at a point, the integral or the average of the expression on a selection, at each saved time (a stationary solver: one value).
The curves are computed by the script at each saved time (the GWFL
expression interpolated at the points of the mesh with
md.interpolation(expr, points, mesh)), and stored in the results
(plots of the model in results.json); a change of a plot makes the
results out of date. In the Results, each plot of a model is a node
(profile (plot)): selecting it shows the plot in place of the view, its
curves of different colors with their legend (in the corner the curves
leave free), its form being that of the plot (selecting the plot in the
model shows it too); CSV… saves the values of the curves (curve, abscissa,
value; empty outside the domain). The examples plate_heating.json (the
temperature across the plate at four times, and in time at three places) and
busbar_joule.json (the temperature along the axis, interrupted by the
hole, and along the edge; the current density across the bar) have plots.
The fields are also in the VTU files of the working folder, to be opened
with ParaView, for instance; in time, one per saved time, gathered by a
.pvd collection.
Exporting the view¶
File → Export the view… (or the Export button of the view) writes what the view shows (a field, a mesh, a geometry). A dialog asks first for the format (PNG by default), for an image or vector graphics, and for the pixel density of an image (with the size in pixels it gives), then for the file:
image (PNG, JPEG, TIFF, or a PDF, SVG or EPS holding the image; the default, a PDF included), at the pixel density chosen (300 dpi by default, a pixel of the view counting for 1/96 inch), the page of a PDF having the size of the view. PNG is lossless and keeps the edges and the lines sharp; JPEG gives smaller files of photographs rather;
vector (PDF if asked, SVG, EPS, PostScript: their default), for the exceptions where a document needs it: the view drawn again by matplotlib. A 2D view in its plane (the field with smooth colors, the edges, the isolines, the color bar and the title); a 3D view as seen by its camera, the faces shaded and sorted from the farthest (painter’s algorithm), the faces turned away and the hidden edges left out, on a white background, with the color bar and the title.
The choices are kept for the next export.
