ansys.dyna.core.lib.validators.UniqueIDValidator#

class ansys.dyna.core.lib.validators.UniqueIDValidator(keyword_type: str, field_name: str, severity: ValidationSeverity = ValidationSeverity.ERROR)#

Bases: Validator

Validator that checks for unique ID fields across keyword types.

keyword_type#
field_name#
get_name() str#

Get the name of this validator.

validate(deck: ansys.dyna.core.lib.deck.Deck, result: ValidationResult) None#

Validate that ID field is unique across keywords of the specified type.

Parameters:
deckDeck

The deck to validate.

resultValidationResult

Result object to accumulate validation errors.