ansys.dyna.core.lib.card_layout#
Pure functions for assembling a keyword’s card sequence.
Given a flat list of CardInterface objects (which may include
OptionCardSet entries) and an OptionsInterface that knows which
options are active, these functions compute the ordered card list used
for reading and writing keyword data.
Functions#
|
Return cards that are not |
Return |
|
Return POST-placed option cards that have |
|
|
Return active option card sets, sorted by position. |
|
Return the inner cards of active PRE-placed option sets. |
Return the inner cards of active POST-placed option sets. |
|
|
Return active MAIN option cards grouped by their insertion index. |
|
Assemble the full card sequence with active option cards interleaved. |
Module Contents#
- ansys.dyna.core.lib.card_layout.get_non_option_cards(cards: List[ansys.dyna.core.lib.card_interface.CardInterface]) List[ansys.dyna.core.lib.card_interface.CardInterface][source]#
Return cards that are not
OptionCardSetentries.
- ansys.dyna.core.lib.card_layout.get_sorted_option_cards(cards: List[ansys.dyna.core.lib.card_interface.CardInterface]) List[ansys.dyna.core.lib.option_card.OptionCardSet][source]#
Return
OptionCardSetentries sorted by position.
- ansys.dyna.core.lib.card_layout.get_post_options_with_no_title_order(cards: List[ansys.dyna.core.lib.card_interface.CardInterface]) List[ansys.dyna.core.lib.option_card.OptionCardSet][source]#
Return POST-placed option cards that have
title_order == 0.These represent options whose presence is discovered at read time (they don’t appear in the keyword title line).
- ansys.dyna.core.lib.card_layout.get_active_options(cards: List[ansys.dyna.core.lib.card_interface.CardInterface], options_api: ansys.dyna.core.lib.option_card.OptionsInterface) List[ansys.dyna.core.lib.option_card.OptionCardSet][source]#
Return active option card sets, sorted by position.
- ansys.dyna.core.lib.card_layout.get_pre_option_cards(cards: List[ansys.dyna.core.lib.card_interface.CardInterface], options_api: ansys.dyna.core.lib.option_card.OptionsInterface) List[ansys.dyna.core.lib.card_interface.CardInterface][source]#
Return the inner cards of active PRE-placed option sets.
- ansys.dyna.core.lib.card_layout.get_post_option_cards(cards: List[ansys.dyna.core.lib.card_interface.CardInterface], options_api: ansys.dyna.core.lib.option_card.OptionsInterface) List[ansys.dyna.core.lib.card_interface.CardInterface][source]#
Return the inner cards of active POST-placed option sets.
- ansys.dyna.core.lib.card_layout.get_main_option_cards_by_index(cards: List[ansys.dyna.core.lib.card_interface.CardInterface], options_api: ansys.dyna.core.lib.option_card.OptionsInterface) Dict[int, List[ansys.dyna.core.lib.card_interface.CardInterface]][source]#
Return active MAIN option cards grouped by their insertion index.
The key N is the 0-based index of the non-option card after which the option cards are inserted.
- ansys.dyna.core.lib.card_layout.get_all_cards(cards: List[ansys.dyna.core.lib.card_interface.CardInterface], options_api: ansys.dyna.core.lib.option_card.OptionsInterface) List[ansys.dyna.core.lib.card_interface.CardInterface][source]#
Assemble the full card sequence with active option cards interleaved.
Layout order: PRE options, then non-option cards with MAIN options inserted at their designated indices, then POST options.