Loading a Deck
By default, decks are loaded in 'read-only' mode to prevent any accidental changes.
To enable editing, specify mode='w'.
from edempy import Deck
# Read-only mode is the default, but can be specified with 'r'
with Deck("Rock_Box_Tutorial.dem", mode='r') as deck:
...
# To enable editing, use the 'w' flag instead
with Deck("Rock_Box_Tutorial.dem", mode='w') as deck:
# Deck objects contain information about the deck
deck.creatorData
deck.interactionPairs
deck.timestep
deck.numTimesteps
deck.timestepValues
(c) 2023 Altair Engineering Inc. All Rights Reserved.