Skip to content

Change in formatting behavior from 0.9.1 to 0.10.0 #1082

@mhoeijm

Description

@mhoeijm

There is a change in formatting behavior for default values:

For instance for *PART:

from ansys.dyna.core.lib.deck import Deck
from ansys.dyna.core.keywords.keyword_classes import Part


kw = Part(mid=1)
deck = Deck()
deck.append(kw)
deck.export_file("keywords.kwd")

0.10.0: the defaults for eosid, hgid, grav are now written:

*KEYWORD
*PART
$#                                                             heading
                                                                      
$#     pid     secid       mid     eosid      hgid      grav    adpopt      tmid
                             1         0         0         0                   0
*END

0.9.1.

*KEYWORD
*PART
$#                                                             heading
                                                                      
$#     pid     secid       mid     eosid      hgid      grav    adpopt      tmid
                             1                                                  
*END

Some other keywords that are affected:

*DATABASE_BINARY_D3PLOT


Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions