Ferrite-FEM / Ferrite-FEM/Ferrite.jl

Ability to add prefixes and suffixes to implied names in vtk export

Open
#1,308 0 comments 3 reactions 0 assignees View on GitHub
good first issue
Dominant language
Julia
Stars
453
Forks
115
Avg merge
1d 17h
Merged PRs (30d)
11

Description

Currently, the functions `write_solution` accepts the arg `suffix` to append to the field name when exporting. However, `write_cellset` does not provide this option.

A more consistent way to handle this would be to have
```julia
Ferrite.write_solution(vtk, dh, a; prefix = "", suffix = "")
Ferrite.write_cellset(vtk, grid; prefix = "", suffix = "")
Ferrite.write_facetset(vtk, grid; prefix = "", suffix = "")
Ferrite.write_nodeset(vtk, grid; prefix = "", suffix = "")
```
for all cases. This can be achieved without any breaking API, and IMO the keyword args make this easier to work with than the current `suffix` arg in `write_solution`, but that would of course remain supported for backwards compatibility.

This interface would also resolve the discussion [here](https://github.com/Ferrite-FEM/Ferrite.jl/pull/1303#discussion_r2924775866).

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.