8. The editor in the “FRS” tab
When you need it. To edit the model as text and see at once what comes out, without sending it for calculation.
If you get it wrong. The editor highlights syntax errors, not meaning: a forgotten point or a wrong coordinate is not an error, so check by eye using the highlighting (see below).
The “FRS” tab of the web app shows the model as text and lets you edit it.
Editing#
- The text is edited right in the editor and applied to the model at once, after a fraction of a second. There are no buttons.
- To undo an edit, press ⌘Z (macOS) or Ctrl+Z.
- When you move the cursor to another line, the text is aligned again (columns, spaces). The alignment is also undone with ⌘Z / Ctrl+Z.
- The ⤢ button expands the editor to full screen, and Esc collapses it.
How the text is shown#
- Columns are aligned and separated by thin lines. There are no lines in the text itself: it is only a drawing.
- Numbers of materials and boundary conditions (
ambients) take the color of the material or zone on the model; keywords and axes have their own colors, and comments are gray. - A long shape (
shape) is shown on several lines (four vertices each). A boundary condition with points (points) always takes one line. Each line has its own number, as in the error messages.
Selection and the model#
When you need it. To check that a line describes what you meant, especially
adiabat default: all the faces it received are highlighted, and only cuts should be there (Fragment).If you get it wrong. If you do not look, you will not notice a face that quietly became a cut.
The cursor or a selection in the text shows on the model what the lines describe:
Table 1. What is highlighted on the model
| Line | What you see on the model |
|---|---|
body (cuboid) | the whole cuboid (rectangular parallelepiped) from the line, with its corners |
empty | the cutout, dashed |
shape shape | the polygon of the shape; the cutout empty shape is dashed |
material in materials params | all bodies of this material |
| boundary condition | all faces of its zone |
the points line under a boundary condition | the points of the boundary condition and the faces they lie on |
| rectangle | its part of the face |
| section heading | the whole section |
A number under the cursor highlights the same numbers: the same material or boundary condition number, the same coordinate on the same axis. A point or vertex under the cursor is framed and marked on the model.
Errors#
When you need it. To understand what the red highlighting and the warning under the text mean.
If you get it wrong. An error in materials or bodies means there is no model at all; an error in boundary conditions only removes the line from the model, so faces may be left without a condition or, with
default, quietly become cuts.
- Anything unclear is shown in red, and under the editor there is a list of errors with line numbers.
- An error in boundary conditions does not block you: the model is shown without these lines, with a warning.
- An error in materials or bodies means there is no model until the error is fixed.
- Faces without boundary conditions are unpainted on the model, and under the text there is the warning “Faces without a boundary condition: N”.
Copying#
Copying and cutting (⌘C / Ctrl+C, ⌘X / Ctrl+X) give the text in its plain form: a shape and a boundary condition with points each on one line, without the display lines and empty lines. You can paste such text back, give it to an LLM or save it.
Link#
A link to a calculation remembers the open tab, the cursor and the selection in the text: after opening it, a colleague will see the same lines and the same place on the model.