NaxToPy 1.5.0__tar.gz → 1.5.1__tar.gz
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.
- {NaxToPy-1.5.0/src/NaxToPy.egg-info → NaxToPy-1.5.1}/PKG-INFO +5 -2
- {NaxToPy-1.5.0 → NaxToPy-1.5.1}/README.md +4 -1
- {NaxToPy-1.5.0 → NaxToPy-1.5.1}/pyproject.toml +1 -1
- {NaxToPy-1.5.0 → NaxToPy-1.5.1}/src/NaxToPy/Core/N2PModelContent.py +43 -8
- {NaxToPy-1.5.0 → NaxToPy-1.5.1/src/NaxToPy.egg-info}/PKG-INFO +5 -2
- {NaxToPy-1.5.0 → NaxToPy-1.5.1}/LICENSE +0 -0
- {NaxToPy-1.5.0 → NaxToPy-1.5.1}/setup.cfg +0 -0
- {NaxToPy-1.5.0 → NaxToPy-1.5.1}/setup.py +0 -0
- {NaxToPy-1.5.0 → NaxToPy-1.5.1}/src/NaxToPy/Core/Classes/AllClasses.py +0 -0
- {NaxToPy-1.5.0 → NaxToPy-1.5.1}/src/NaxToPy/Core/Classes/N2PComponent.py +0 -0
- {NaxToPy-1.5.0 → NaxToPy-1.5.1}/src/NaxToPy/Core/Classes/N2PConnector.py +0 -0
- {NaxToPy-1.5.0 → NaxToPy-1.5.1}/src/NaxToPy/Core/Classes/N2PCoord.py +0 -0
- {NaxToPy-1.5.0 → NaxToPy-1.5.1}/src/NaxToPy/Core/Classes/N2PElement.py +0 -0
- {NaxToPy-1.5.0 → NaxToPy-1.5.1}/src/NaxToPy/Core/Classes/N2PFreeBody.py +0 -0
- {NaxToPy-1.5.0 → NaxToPy-1.5.1}/src/NaxToPy/Core/Classes/N2PIncrement.py +0 -0
- {NaxToPy-1.5.0 → NaxToPy-1.5.1}/src/NaxToPy/Core/Classes/N2PLoadCase.py +0 -0
- {NaxToPy-1.5.0 → NaxToPy-1.5.1}/src/NaxToPy/Core/Classes/N2PMaterial.py +0 -0
- {NaxToPy-1.5.0 → NaxToPy-1.5.1}/src/NaxToPy/Core/Classes/N2PModelInputData.py +0 -0
- {NaxToPy-1.5.0 → NaxToPy-1.5.1}/src/NaxToPy/Core/Classes/N2PNode.py +0 -0
- {NaxToPy-1.5.0 → NaxToPy-1.5.1}/src/NaxToPy/Core/Classes/N2PProperty.py +0 -0
- {NaxToPy-1.5.0 → NaxToPy-1.5.1}/src/NaxToPy/Core/Classes/N2PReport.py +0 -0
- {NaxToPy-1.5.0 → NaxToPy-1.5.1}/src/NaxToPy/Core/Classes/N2PResult.py +0 -0
- {NaxToPy-1.5.0 → NaxToPy-1.5.1}/src/NaxToPy/Core/Classes/N2PSection.py +0 -0
- {NaxToPy-1.5.0 → NaxToPy-1.5.1}/src/NaxToPy/Core/Classes/N2PSet.py +0 -0
- {NaxToPy-1.5.0 → NaxToPy-1.5.1}/src/NaxToPy/Core/Classes/ProgresBar.py +0 -0
- {NaxToPy-1.5.0 → NaxToPy-1.5.1}/src/NaxToPy/Core/Classes/__init__.py +0 -0
- {NaxToPy-1.5.0 → NaxToPy-1.5.1}/src/NaxToPy/Core/Constants/Constants.py +0 -0
- {NaxToPy-1.5.0 → NaxToPy-1.5.1}/src/NaxToPy/Core/Constants/__init__.py +0 -0
- {NaxToPy-1.5.0 → NaxToPy-1.5.1}/src/NaxToPy/Core/Constants/librerias.py +0 -0
- {NaxToPy-1.5.0 → NaxToPy-1.5.1}/src/NaxToPy/Core/Errors/N2PColors.py +0 -0
- {NaxToPy-1.5.0 → NaxToPy-1.5.1}/src/NaxToPy/Core/Errors/N2PFileHandler.py +0 -0
- {NaxToPy-1.5.0 → NaxToPy-1.5.1}/src/NaxToPy/Core/Errors/N2PLog.py +0 -0
- {NaxToPy-1.5.0 → NaxToPy-1.5.1}/src/NaxToPy/Core/Errors/__init__.py +0 -0
- {NaxToPy-1.5.0 → NaxToPy-1.5.1}/src/NaxToPy/Core/Reference_Finder/__Reference_Finder.py +0 -0
- {NaxToPy-1.5.0 → NaxToPy-1.5.1}/src/NaxToPy/Core/Reference_Finder/__init__.py +0 -0
- {NaxToPy-1.5.0 → NaxToPy-1.5.1}/src/NaxToPy/Core/_AuxFunc/_NetToPython.py +0 -0
- {NaxToPy-1.5.0 → NaxToPy-1.5.1}/src/NaxToPy/Core/_AuxFunc/__init__.py +0 -0
- {NaxToPy-1.5.0 → NaxToPy-1.5.1}/src/NaxToPy/Core/__init__.py +0 -0
- {NaxToPy-1.5.0 → NaxToPy-1.5.1}/src/NaxToPy/Modules/N2PEnvelope/N2PEnvelope.py +0 -0
- {NaxToPy-1.5.0 → NaxToPy-1.5.1}/src/NaxToPy/Modules/N2PEnvelope/__init__.py +0 -0
- {NaxToPy-1.5.0 → NaxToPy-1.5.1}/src/NaxToPy/Modules/N2PtoEXE/N2PtoEXE.py +0 -0
- {NaxToPy-1.5.0 → NaxToPy-1.5.1}/src/NaxToPy/Modules/N2PtoEXE/__init__.py +0 -0
- {NaxToPy-1.5.0 → NaxToPy-1.5.1}/src/NaxToPy/Modules/__init__.py +0 -0
- {NaxToPy-1.5.0 → NaxToPy-1.5.1}/src/NaxToPy/NaxToPy.ico +0 -0
- {NaxToPy-1.5.0 → NaxToPy-1.5.1}/src/NaxToPy/__init__.py +0 -0
- {NaxToPy-1.5.0 → NaxToPy-1.5.1}/src/NaxToPy/user_functions.txt +0 -0
- {NaxToPy-1.5.0 → NaxToPy-1.5.1}/src/NaxToPy.egg-info/SOURCES.txt +0 -0
- {NaxToPy-1.5.0 → NaxToPy-1.5.1}/src/NaxToPy.egg-info/dependency_links.txt +0 -0
- {NaxToPy-1.5.0 → NaxToPy-1.5.1}/src/NaxToPy.egg-info/requires.txt +0 -0
- {NaxToPy-1.5.0 → NaxToPy-1.5.1}/src/NaxToPy.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: NaxToPy
|
|
3
|
-
Version: 1.5.
|
|
3
|
+
Version: 1.5.1
|
|
4
4
|
Summary: Package for postprocessing FEM results in Python
|
|
5
5
|
Home-page: https://www.idaerosolutions.com/Home/NaxToPy
|
|
6
6
|
Download-URL: https://apps.microsoft.com/detail/XP9MMH0KDKGRJN?hl=en-US&gl=US
|
|
@@ -129,7 +129,7 @@ Requires-Dist: setuptools>=67.8.0
|
|
|
129
129
|
[](https://apps.microsoft.com/detail/XP9MMH0KDKGRJN?hl=en-US&gl=US)
|
|
130
130
|
[](https://pypi.org/project/NaxToPy/#files)
|
|
131
131
|
|
|
132
|
-

|
|
133
133
|
|
|
134
134
|
# NaxToPy
|
|
135
135
|
|
|
@@ -228,6 +228,9 @@ To see previous version see the pre-release versions in https://test.pypi.org/pr
|
|
|
228
228
|
1. A bug is fixed that prevented requesting results on global axes.
|
|
229
229
|
2. The typing of some functions is improved.
|
|
230
230
|
|
|
231
|
+
### v.1.5.1
|
|
232
|
+
1. Bug Fix. If the name for a derivated load case is repeated for a second time, the name is changed.
|
|
233
|
+
2. Bug Fix. Now is possible to change the criteria for a new envelope load case.
|
|
231
234
|
|
|
232
235
|
# Documentation
|
|
233
236
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
[](https://apps.microsoft.com/detail/XP9MMH0KDKGRJN?hl=en-US&gl=US)
|
|
6
6
|
[](https://pypi.org/project/NaxToPy/#files)
|
|
7
7
|
|
|
8
|
-

|
|
9
9
|
|
|
10
10
|
# NaxToPy
|
|
11
11
|
|
|
@@ -104,6 +104,9 @@ To see previous version see the pre-release versions in https://test.pypi.org/pr
|
|
|
104
104
|
1. A bug is fixed that prevented requesting results on global axes.
|
|
105
105
|
2. The typing of some functions is improved.
|
|
106
106
|
|
|
107
|
+
### v.1.5.1
|
|
108
|
+
1. Bug Fix. If the name for a derivated load case is repeated for a second time, the name is changed.
|
|
109
|
+
2. Bug Fix. Now is possible to change the criteria for a new envelope load case.
|
|
107
110
|
|
|
108
111
|
# Documentation
|
|
109
112
|
|
|
@@ -2,6 +2,8 @@ from VizzerClasses import N2ModelContent
|
|
|
2
2
|
from VizzerClasses import N2LoadCase
|
|
3
3
|
from VizzerClasses.Classes import N2AdjacencyFunctions
|
|
4
4
|
from VizzerClasses.Classes import N2FreeEdges
|
|
5
|
+
from VizzerClasses import EnvelopGroup
|
|
6
|
+
from VizzerClasses import EnvelopCriteria
|
|
5
7
|
from NaxToPy.Core.Classes.N2PLoadCase import N2PLoadCase
|
|
6
8
|
from NaxToPy.Core.Classes.N2PIncrement import N2PIncrement
|
|
7
9
|
from NaxToPy.Core.Classes.N2PElement import N2PElement
|
|
@@ -1079,10 +1081,17 @@ class N2PModelContent:
|
|
|
1079
1081
|
N2PLoadCase -> Derived load case
|
|
1080
1082
|
"""
|
|
1081
1083
|
# Comprobamos que el nombre no se repite:
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
+
i = 0
|
|
1085
|
+
while name in [lc.Name for lc in self.LoadCases]:
|
|
1086
|
+
i += 1
|
|
1087
|
+
name += f"-{i}"
|
|
1088
|
+
|
|
1089
|
+
if i > 0:
|
|
1084
1090
|
N2PLog.Warning.W301(name)
|
|
1085
1091
|
|
|
1092
|
+
# Argumentos para N2LoadCase
|
|
1093
|
+
envelopgroup = N2LoadCase
|
|
1094
|
+
|
|
1086
1095
|
# Genera una instancia de un N2LoadCase the VizzerClasses
|
|
1087
1096
|
cs_lc = N2LoadCase(self.__vzmodel, name, formula)
|
|
1088
1097
|
|
|
@@ -1101,7 +1110,7 @@ class N2PModelContent:
|
|
|
1101
1110
|
|
|
1102
1111
|
return py_lc
|
|
1103
1112
|
|
|
1104
|
-
def new_envelope_loadcase(self, name: str, formula: str) -> N2PLoadCase:
|
|
1113
|
+
def new_envelope_loadcase(self, name: str, formula: str, criteria: str="ExtremeMax") -> N2PLoadCase:
|
|
1105
1114
|
"""Method of N2PModelContent that generate a new N2PLoadCase that is the envelope of the load cases and increments
|
|
1106
1115
|
selected.
|
|
1107
1116
|
|
|
@@ -1109,23 +1118,49 @@ class N2PModelContent:
|
|
|
1109
1118
|
envelope load case use LCD1 in the formula instead of LC-1:
|
|
1110
1119
|
|
|
1111
1120
|
Args:
|
|
1112
|
-
name
|
|
1113
|
-
|
|
1121
|
+
name (str) -> Name of the envelope load case. It mustn't be repeated.
|
|
1122
|
+
|
|
1123
|
+
formula (str) -> formula that define the loadcases and increments must have this structure: <LCXX:FRYY>
|
|
1114
1124
|
exmaple: "<LC1:FR1>,<LCD2:FR1>,<LC2:FR10>"
|
|
1115
1125
|
|
|
1126
|
+
criteria (str): Criteria for selecting the results to build the new derived load case. Possible values:
|
|
1127
|
+
|
|
1128
|
+
- 'ExtremeMax'
|
|
1129
|
+
- 'ExtremeMin'
|
|
1130
|
+
- 'Max'
|
|
1131
|
+
- 'Min'
|
|
1132
|
+
- 'Range'
|
|
1133
|
+
|
|
1116
1134
|
Returns:
|
|
1117
1135
|
N2PLoadCase
|
|
1118
1136
|
"""
|
|
1119
1137
|
# Comprobamos que el nombre no se repite:
|
|
1120
|
-
|
|
1121
|
-
|
|
1138
|
+
i = 0
|
|
1139
|
+
while name in [lc.Name for lc in self.LoadCases]:
|
|
1140
|
+
i += 1
|
|
1141
|
+
name += f"-{i}"
|
|
1142
|
+
|
|
1143
|
+
if i > 0:
|
|
1122
1144
|
N2PLog.Warning.W301(name)
|
|
1123
1145
|
|
|
1124
1146
|
# Comprobamos que la formula está bien:
|
|
1125
1147
|
formula = formula.replace("-", "D").replace(" ", "")
|
|
1126
1148
|
|
|
1149
|
+
# Arguments for the constructor
|
|
1150
|
+
criteria_mapping = {
|
|
1151
|
+
'Range': EnvelopCriteria.Range,
|
|
1152
|
+
'ExtremeMin': EnvelopCriteria.ExtremeMin,
|
|
1153
|
+
'Max': EnvelopCriteria.Max,
|
|
1154
|
+
'Min': EnvelopCriteria.Min,
|
|
1155
|
+
'ExtremeMax': EnvelopCriteria.ExtremeMax
|
|
1156
|
+
}
|
|
1157
|
+
|
|
1158
|
+
envelopcriteria = criteria_mapping.get(criteria, EnvelopCriteria.ExtremeMax)
|
|
1159
|
+
|
|
1160
|
+
envelopgroup = EnvelopGroup.ByContour
|
|
1161
|
+
|
|
1127
1162
|
# Genera una instancia de un N2LoadCase the VizzerClasses
|
|
1128
|
-
cs_lc = N2LoadCase(self.__vzmodel, name, formula, True)
|
|
1163
|
+
cs_lc = N2LoadCase(self.__vzmodel, name, formula, True, envelopgroup, False, envelopcriteria)
|
|
1129
1164
|
|
|
1130
1165
|
# Método de N2LoadCase que pone todoo en su sitio
|
|
1131
1166
|
cs_lc.RecalculateLCInfo2Formule()
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: NaxToPy
|
|
3
|
-
Version: 1.5.
|
|
3
|
+
Version: 1.5.1
|
|
4
4
|
Summary: Package for postprocessing FEM results in Python
|
|
5
5
|
Home-page: https://www.idaerosolutions.com/Home/NaxToPy
|
|
6
6
|
Download-URL: https://apps.microsoft.com/detail/XP9MMH0KDKGRJN?hl=en-US&gl=US
|
|
@@ -129,7 +129,7 @@ Requires-Dist: setuptools>=67.8.0
|
|
|
129
129
|
[](https://apps.microsoft.com/detail/XP9MMH0KDKGRJN?hl=en-US&gl=US)
|
|
130
130
|
[](https://pypi.org/project/NaxToPy/#files)
|
|
131
131
|
|
|
132
|
-

|
|
133
133
|
|
|
134
134
|
# NaxToPy
|
|
135
135
|
|
|
@@ -228,6 +228,9 @@ To see previous version see the pre-release versions in https://test.pypi.org/pr
|
|
|
228
228
|
1. A bug is fixed that prevented requesting results on global axes.
|
|
229
229
|
2. The typing of some functions is improved.
|
|
230
230
|
|
|
231
|
+
### v.1.5.1
|
|
232
|
+
1. Bug Fix. If the name for a derivated load case is repeated for a second time, the name is changed.
|
|
233
|
+
2. Bug Fix. Now is possible to change the criteria for a new envelope load case.
|
|
231
234
|
|
|
232
235
|
# Documentation
|
|
233
236
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|