Source code for roxieapi.cadata.ConductorDefinition

from pydantic.dataclasses import dataclass

from roxieapi.cadata.Definition import Definition


[docs] @dataclass class ConductorDefinition(Definition): """Class for conductor definition. Attributes: type (int): The conductor type (e.g., HTS tape, Rutherford cable). cable_geom (str): The cable cadata name (defined in Cable cadata block). strand (str): The strand name (defined in Strand block). filament (str): The filament name (defined in Filament block). insulation (str): The insulation name (defined in Insul block). transient (str): - quench_mat (str): Quench material, not always present. Defaults to an empty string. temp_ref (float): The operating temperature in K. All conductors in the cross-section must have the same temperature. Adaptations can be made via the design variables. """ type: int = 0 cable_geom: str = "" strand: str = "" filament: str = "" insulation: str = "" transient: str = "" temp_ref: float = 0.0 quench_mat: str = ""
[docs] @staticmethod def get_magnum_to_roxie_dct() -> dict: return { "name": "Name", "type": "Type", "cable_geom": "CableGeom.", "strand": "Strand", "filament": "Filament", "insulation": "Insul", "transient": "Trans", "quench_mat": "QuenchMat.", "temp_ref": "T_o", "comment": "Comment", }