Making tags string
instead of int
to improve the readability of the input files.
#242
Replies: 2 comments 7 replies
-
All tagged objects are using The idea itself is nice and indeed a string identifier would be clearer. Performance wise, there will be some penalty because comparing Alternatively, I think there could be a preprocessor that generates the input file, and this preprocessor can also handle the mapping between whatever identifier and a |
Beta Was this translation helpful? Give feedback.
-
For readability alone, the plugin can match the specific token and prompts details on hovering. |
Beta Was this translation helpful? Give feedback.
-
I have been thinking about how to we can make
tag
s to be strings, instead of justint
. I think that would make the input files more readable. For example, if we set material as following:instead of
We can define the elements as follows:
, which is much more readable, than the current one:
where it might not be easy for a beginner to understand what
2
stands for. Similarly, we can use string tags for boundary conditions and loading. For example,is more descriptive than
What do you think about it? Thank you.
Beta Was this translation helpful? Give feedback.
All reactions