src.pydasa.core.basic#
This module provides base classes with common validation logic used across different classes to minimize code duplication in PyDASA.
- IMPORTANT
Based on the theory from H. Görtler, Dimensionalanalyse: Eine Theoririe der physikalischen Dimensionen mit Anwendungen
Classes#
Abstract Class to manage the entity's symbolic, sorting, and dimensional domain/framework functionalities in PyDASA. |
|
Basic class to manage index/precedence functionalities in PyDASA entities. |
|
Basic class to manage common attributes and validation logic for dimensional analysis entities in PyDASA. |
Module Contents#
- class src.pydasa.core.basic.SymBasis#
Bases:
abc.ABCAbstract Class to manage the entity’s symbolic, sorting, and dimensional domain/framework functionalities in PyDASA.
- Inherits from:
ABC: Python Abstract Base Class to indicate that this class is not meant to be instantiated directly.
- __post_init__()#
Post initialization processing and validation for symbolic attributes.
- Return type:
None
- property alias: str | None#
Get the Python variable synonym.
- Returns:
Python variable name. e.g.: rho_{1} -> rho_1.
- Return type:
Optional[str]
- clear()#
Reset symbol, alias, and framework attributes to default values.
- Return type:
None
- class src.pydasa.core.basic.IdxBasis#
Bases:
SymBasisBasic class to manage index/precedence functionalities in PyDASA entities.
- Inherits from:
SymBasis: Inherits symbol and framework validation.
- __post_init__()#
Post initialization processing and validation for index and precedence.
- Return type:
None
- clear()#
Reset index and inherited symbol attributes to default values.
- Return type:
None
- class src.pydasa.core.basic.Foundation#
Bases:
IdxBasisBasic class to manage common attributes and validation logic for dimensional analysis entities in PyDASA.
Provides common validation logic and attributes shared by dimensional framework/domain, Variable, and Coeffcient classes.
- Inherits from:
IdxBasis: Inherits index, symbol, and framework validation.
- __post_init__()#
Post initialization and processing for name and description attributes.
- Return type:
None
- clear()#
Reset name, description, and inherited attributes to default values.
- Return type:
None
- __str__()#
Return string representation with all non-private attributes for detailed inspection and logging.
- Returns:
Detailed string representation.
- Return type: