You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I believe I have encountered a few bugs when setting specific keywords.
*BOUNDARY_PRESCRIBED_MOTION_SET (class BoundaryPrescribedMotionSet)
has a second card enabled by default (offset1, offset2, lrb, node1, node2), which is not in line with the LS-Dyna keyword manual. If no other option is selected, there should only be one card available (nsid, dof, vad, lcid, SF, vid, death, birth)
*CONSTRAINED_BEAM_IN_SOLID (class ConstrainedBeamInSolid)
The first card (coupid, title) should only be used when the _TITLE or _ID keyword option is defined, but the class always defines this card. Additionally, there is no title option (with ConstrainedBeamInSolid().activate_option("TITLE")) that would add the _TITLE string to the keyword or subkeyword like in other keywords. I managed to get around that by setting ConstrainedBeamInSolid().subkeyword += "_TITLE", but this is not the desired behavior.
Additionally, the ncoup value cannot be set when constructing the class, and can only be set later (different to other values that are
📝 Steps to reproduce
from ansys.dyna.core.keywords import keywords as kw
There are two outstanding issues not (yet) fixed there.
ncoup:
The keyword data we use (kwd.json) has the property name "ncoup " (with a space at the end) which gets translated to "ncoup_" to become a property but retains the space for the kwarg constructor.
TITLE option:
This is the first time I encounter a keyword having two options that are equivalent and mutually exclusive. I need to build that capability into the OptionCardSet class and then indicate that in the code generation system. #668 goes as far as removing that card by default and activating it with the "ID" option.
🔍 Before submitting the issue
🐞 Description of the bug
I believe I have encountered a few bugs when setting specific keywords.
*BOUNDARY_PRESCRIBED_MOTION_SET (class BoundaryPrescribedMotionSet)
has a second card enabled by default (offset1, offset2, lrb, node1, node2), which is not in line with the LS-Dyna keyword manual. If no other option is selected, there should only be one card available (nsid, dof, vad, lcid, SF, vid, death, birth)
*CONSTRAINED_BEAM_IN_SOLID (class ConstrainedBeamInSolid)
The first card (coupid, title) should only be used when the _TITLE or _ID keyword option is defined, but the class always defines this card. Additionally, there is no title option (with ConstrainedBeamInSolid().activate_option("TITLE")) that would add the _TITLE string to the keyword or subkeyword like in other keywords. I managed to get around that by setting ConstrainedBeamInSolid().subkeyword += "_TITLE", but this is not the desired behavior.
Additionally, the ncoup value cannot be set when constructing the class, and can only be set later (different to other values that are
📝 Steps to reproduce
from ansys.dyna.core.keywords import keywords as kw
Code for the PRESCRIBED_MOTION_SET:
results in the keyword with an added second card:
The code:
results in the keyword with the empty first card
💻 Which operating system are you using?
Windows
📀 Which ANSYS version are you using?
No response
🐍 Which Python version are you using?
3.12
📦 Installed packages
The text was updated successfully, but these errors were encountered: