Closed natter1 closed 2 years ago
Indeed all named selections names will be converted to upper case. I agree that we should at least mention this in the doc.
maybe change dpf-...so that named_selection is changed to upper-case automatically (not sure if this is allways the right thing to do though ^^)?
Probably this is the way to go, since MAPDL do not discriminate upper from lower case.
@akaszynski I believe this is a DPF-Core
issue.
@natter1 good point, yes this is a known issue, if you created this from mapdl, then you need to convert the name to upper case. you can also do mesh.available_named_selections which the returns right names.
We will work on this to get a consistent API. Regards
you can also do mesh.available_named_selections which the returns right names.
Yeah that might work in some cases. But I'm thinking about the combination, doing a simulation with pymapdl and afterwards using dpf. The APDL variable name might be saved in a python variable used for some post-processing class/method and maybe the APDL name is even generated automatically depending on other conditions. So a more consistent API would be great.
Closing as wontfix and stale. Do not hesitate to reopen if this is still an issue.
Not really a bug and not sure if here is the best place to post it, or if its an issue of
dpf-core
. When I define a named selection withmapdl.cm("lower_case_name", "NODE")
in lower-case, and later want to use it e.g. likesolution.displacement(named_selection="lower_case_name")
the selection is not found (because itsLOWER_CASE_NAME
). I would like something to make users aware of this issue. Maybe a warning, that names become upper-case when usingcm()
or maybe changedpf-...
so thatnamed_selection
is changed to upper-case automatically (not sure if this is allways the right thing to do though ^^)?