fiqus 2025.2.0__py3-none-any.whl → 2025.11.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- fiqus/MainFiQuS.py +24 -28
- fiqus/data/DataConductor.py +350 -301
- fiqus/data/DataFiQuS.py +42 -115
- fiqus/data/DataFiQuSCCT.py +150 -150
- fiqus/data/DataFiQuSConductor.py +97 -84
- fiqus/data/DataFiQuSConductorAC_Strand.py +701 -565
- fiqus/data/DataModelCommon.py +439 -0
- fiqus/data/DataMultipole.py +0 -13
- fiqus/data/DataRoxieParser.py +7 -0
- fiqus/data/DataWindingsCCT.py +37 -37
- fiqus/data/RegionsModelFiQuS.py +61 -104
- fiqus/geom_generators/GeometryCCT.py +904 -905
- fiqus/geom_generators/GeometryConductorAC_Strand.py +1863 -1391
- fiqus/geom_generators/GeometryMultipole.py +5 -4
- fiqus/geom_generators/GeometryPancake3D.py +1 -1
- fiqus/getdp_runners/RunGetdpCCT.py +13 -4
- fiqus/getdp_runners/RunGetdpConductorAC_Strand.py +341 -201
- fiqus/getdp_runners/RunGetdpPancake3D.py +2 -2
- fiqus/mains/MainConductorAC_Strand.py +141 -133
- fiqus/mains/MainMultipole.py +6 -5
- fiqus/mains/MainPancake3D.py +3 -4
- fiqus/mesh_generators/MeshCCT.py +209 -209
- fiqus/mesh_generators/MeshConductorAC_Strand.py +709 -656
- fiqus/mesh_generators/MeshMultipole.py +43 -46
- fiqus/parsers/ParserDAT.py +16 -16
- fiqus/parsers/ParserGetDPOnSection.py +212 -212
- fiqus/parsers/ParserGetDPTimeTable.py +134 -134
- fiqus/parsers/ParserMSH.py +53 -53
- fiqus/parsers/ParserPOS.py +214 -214
- fiqus/parsers/ParserRES.py +142 -142
- fiqus/plotters/PlotPythonCCT.py +133 -133
- fiqus/plotters/PlotPythonConductorAC.py +1079 -855
- fiqus/plotters/PlotPythonMultipole.py +18 -18
- fiqus/post_processors/PostProcessCCT.py +444 -440
- fiqus/post_processors/PostProcessConductorAC.py +997 -49
- fiqus/post_processors/PostProcessMultipole.py +19 -19
- fiqus/pre_processors/PreProcessCCT.py +175 -175
- fiqus/pro_material_functions/ironBHcurves.pro +246 -246
- fiqus/pro_templates/combined/CCT_template.pro +275 -274
- fiqus/pro_templates/combined/ConductorAC_template.pro +1474 -1025
- fiqus/pro_templates/combined/Multipole_template.pro +5 -5
- fiqus/utils/Utils.py +12 -7
- {fiqus-2025.2.0.dist-info → fiqus-2025.11.0.dist-info}/METADATA +65 -63
- fiqus-2025.11.0.dist-info/RECORD +86 -0
- {fiqus-2025.2.0.dist-info → fiqus-2025.11.0.dist-info}/WHEEL +1 -1
- tests/test_geometry_generators.py +4 -0
- tests/test_mesh_generators.py +5 -0
- tests/test_solvers.py +41 -4
- tests/utils/fiqus_test_classes.py +15 -6
- tests/utils/generate_reference_files_ConductorAC.py +57 -57
- tests/utils/helpers.py +97 -97
- fiqus-2025.2.0.dist-info/RECORD +0 -85
- {fiqus-2025.2.0.dist-info → fiqus-2025.11.0.dist-info}/LICENSE.txt +0 -0
- {fiqus-2025.2.0.dist-info → fiqus-2025.11.0.dist-info}/top_level.txt +0 -0
fiqus/data/DataFiQuSConductor.py
CHANGED
|
@@ -1,84 +1,97 @@
|
|
|
1
|
-
from pydantic import BaseModel, Field, ConfigDict
|
|
2
|
-
from typing import Dict, List, Optional
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
class Area(BaseModel):
|
|
6
|
-
Material: Optional[str] = Field(
|
|
7
|
-
None, description="Material of the area", examples=["Cu", "NbTi", "Nb3Sn"]
|
|
8
|
-
)
|
|
9
|
-
Boundary: List[int] = (
|
|
10
|
-
[]
|
|
11
|
-
) # List of curves that define the closed boundary of the area
|
|
12
|
-
InnerBoundaries: List[List[int]] = (
|
|
13
|
-
[]
|
|
14
|
-
) # List of lists of curves that define the closed boundaries of the holes in the area
|
|
15
|
-
BoundaryThickness: Optional[
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
)
|
|
25
|
-
|
|
26
|
-
None,
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
None, description="
|
|
37
|
-
)
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
1
|
+
from pydantic import BaseModel, Field, ConfigDict
|
|
2
|
+
from typing import Dict, List, Optional, Union
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
class Area(BaseModel):
|
|
6
|
+
Material: Optional[str] = Field(
|
|
7
|
+
None, description="Material of the area", examples=["Cu", "NbTi", "Nb3Sn"]
|
|
8
|
+
)
|
|
9
|
+
Boundary: List[int] = (
|
|
10
|
+
[]
|
|
11
|
+
) # List of curves that define the closed boundary of the area
|
|
12
|
+
InnerBoundaries: List[List[int]] = (
|
|
13
|
+
[]
|
|
14
|
+
) # List of lists of curves that define the closed boundaries of the holes in the area
|
|
15
|
+
BoundaryThickness: Optional[float] = Field(
|
|
16
|
+
None,
|
|
17
|
+
description="Boundary layer thickness in meters",
|
|
18
|
+
examples=1e-6,
|
|
19
|
+
) # Thickness of the boundary
|
|
20
|
+
BoundaryMaterial: Optional[str] = Field(
|
|
21
|
+
None,
|
|
22
|
+
description="Material of the boundary",
|
|
23
|
+
examples=["steel", "Cu", "direct", "etc."],
|
|
24
|
+
)
|
|
25
|
+
Layer: Optional[int] = Field(
|
|
26
|
+
None,
|
|
27
|
+
description="Filaments in the strand-model must be assigned to a layer. A layer is a collection of all filaments with the same radius from the center.",
|
|
28
|
+
)
|
|
29
|
+
LayerIndex: Optional[int] = Field(
|
|
30
|
+
None, description="Index of the filament in the layer."
|
|
31
|
+
)
|
|
32
|
+
|
|
33
|
+
# ========== GEOMETRY YAML CLASSES ========== #
|
|
34
|
+
class Material(BaseModel):
|
|
35
|
+
Type: Optional[str] = Field(
|
|
36
|
+
None, description="Type of material", examples=["NbTi", "Nb3Sn", "Cu"]
|
|
37
|
+
)
|
|
38
|
+
RRR: Optional[float] = Field(None, description="Residual resistivity ratio")
|
|
39
|
+
T_ref_RRR_high: Optional[float] = Field(
|
|
40
|
+
None, description="High reference temperature for RRR"
|
|
41
|
+
)
|
|
42
|
+
T_ref_RRR_low: Optional[float] = Field(
|
|
43
|
+
None, description="Low reference temperature for RRR"
|
|
44
|
+
)
|
|
45
|
+
|
|
46
|
+
Resistivity: Optional[float] = Field(None, description="Resistivity of the material")
|
|
47
|
+
model_config = ConfigDict(frozen=True)
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
class Point(BaseModel):
|
|
51
|
+
Coordinates: List[float] = []
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
class Curve(BaseModel):
|
|
55
|
+
Type: str
|
|
56
|
+
Points: List[int] = []
|
|
57
|
+
|
|
58
|
+
Contact: Optional[str] = Field(
|
|
59
|
+
None,
|
|
60
|
+
description="If the curve is a contact layer between two surfaces this represents the contact type of strands",
|
|
61
|
+
examples=["crossing", "parallel"],
|
|
62
|
+
)
|
|
63
|
+
Thickness: Optional[float] = Field(
|
|
64
|
+
None, description="Thickness of the contact layer"
|
|
65
|
+
)
|
|
66
|
+
Material: Optional[str] = Field(
|
|
67
|
+
None,
|
|
68
|
+
description="Material of the contact layer",
|
|
69
|
+
examples=["steel", "direct", "Cu"],
|
|
70
|
+
)
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
class GeometryParameters(BaseModel):
|
|
74
|
+
Points: Dict[int, Point] = {}
|
|
75
|
+
Curves: Dict[int, Curve] = {}
|
|
76
|
+
Areas: Dict[int, Area] = {}
|
|
77
|
+
|
|
78
|
+
class DataDiffusionBarriers(BaseModel):
|
|
79
|
+
FilamentResistances: List[float] = []
|
|
80
|
+
DiffusionBarrierAreas: List[float] = []
|
|
81
|
+
|
|
82
|
+
class DataGlobalDiffusionBarrier(BaseModel):
|
|
83
|
+
RegionTag: Optional[int] = Field(None)
|
|
84
|
+
InternalRegionTag: Optional[int] = Field(None)
|
|
85
|
+
ContactResistivity: Optional[float] = Field(None)
|
|
86
|
+
|
|
87
|
+
class SolutionParameters(BaseModel):
|
|
88
|
+
Materials: Dict[str, Material] = {}
|
|
89
|
+
DiffusionBarriers: DataDiffusionBarriers = DataDiffusionBarriers()
|
|
90
|
+
Surfaces_excluded_from_TI: List[int] = []
|
|
91
|
+
GlobalDiffusionBarrier: DataGlobalDiffusionBarrier = DataGlobalDiffusionBarrier()
|
|
92
|
+
|
|
93
|
+
class Conductor(BaseModel):
|
|
94
|
+
Geometry: GeometryParameters = GeometryParameters()
|
|
95
|
+
Solution: SolutionParameters = SolutionParameters()
|
|
96
|
+
|
|
97
|
+
|