Skip to content

Commit

Permalink
Mention hyphen/dash caveat for boundary symbols (#1866)
Browse files Browse the repository at this point in the history
* Mention hyphen/dash caveat for boundary symbols

* typo

* elaborate
  • Loading branch information
DanielDoehring authored Mar 8, 2024
1 parent 1ca37cf commit f235619
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/src/meshes/p4est_mesh.md
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,8 @@ By doing so, only nodesets with a label present in `boundary_symbols` are treate
Other nodesets that could be used for diagnostics are not treated as external boundaries.
Note that there is a leading colon `:` compared to the label in the `.inp` mesh file.
This is required to turn the label into a [`Symbol`](https://docs.julialang.org/en/v1/manual/metaprogramming/#Symbols).
**Important**: In Julia, a symbol _cannot_ contain a hyphen/dash `-`, i.e., `:BC-1` is _not_ a valid symbol.
Keep this in mind when importing boundaries, you might have to convert hyphens/dashes `-` to underscores `_` in the `.inp` mesh file, i.e., `BC_1` instead of `BC-1`.

A 2D example for this mesh, which is read-in for an unstructured mesh file created with `gmsh`, is presented in
`examples/p4est_2d_dgsem/elixir_euler_NACA6412airfoil_mach2.jl`.
Expand Down

0 comments on commit f235619

Please sign in to comment.