src.pydasa.dimensional.fundamental#

Module for representing the FDU or Fundamental Dimensional Unit for Dimensional Analysis in PyDASA.

Classes:

Dimension: Represents a Fundamental Dimensional Unit (FDU) with validation and conversion capabilities.

IMPORTANT: Based on the theory from:

# H.Gorter, Dimensionalanalyse: Eine Theoririe der physikalischen Dimensionen mit Anwendungen

Classes#

Dimension

Dimension class for processing the data of a Fundamental Dimensional Unit (FDU) in PyDASA.

Module Contents#

class src.pydasa.dimensional.fundamental.Dimension#

Bases: pydasa.core.basic.Foundation

Dimension class for processing the data of a Fundamental Dimensional Unit (FDU) in PyDASA.

FDUs are fundamental building blocks of dimensional analysis and are used to define the dimensions of physical and digital quantities.

Parameters:

Foundation – Foundation class for validation of symbols and frameworks.

_idx#

The Index of the Fundamental Dimension (precedence in the Dimensional Matrix).

Type:

int

_sym#

The symbol of the Fundamental Dimension (LaTeX or alphanumeric).

Type:

str

_alias#

The Python-compatible alias for the Fundamental Dimension, used in executable code.

Type:

str

_fwk#

The framework of the Fundamental Dimension (PHYSICAL, COMPUTATION, SOFTWARE, CUSTOM).

Type:

str

_unit#

The basic unit of the Fundamental Dimension, useful for unit of meassure convertion (e.g.: km -> m or GB -> bit).

Type:

str

name#

User-friendly name of the Fundamental Dimension.

Type:

str

Return type:

str

description#

Brief summary of the Fundamental Dimension.

Type:

str

__post_init__()#

__post_init__() Post-initialization processing with symbol and framework validation.

Return type:

None

property unit: str#

unit Get the framework.

Returns:

Frameworks value

Return type:

str

to_dict()#

to_dict Convert the Dimension to a dictionary representation.

Returns:

Dictionary representation of the Dimension.

Return type:

dict

classmethod from_dict(data)#

from_dict Create a Dimension instance from a dictionary.

Parameters:

data (dict) – Dictionary containing Dimension attributes.

Returns:

Instance of Dimension created from the dictionary.

Return type:

Dimension

__eq__(other)#

__eq__() Check equality of two Dimension objects.

Parameters:

other (object) – The other object to compare.

Returns:

True if equal, False otherwise.

Return type:

bool