Add types usefull for type hinting in functions #4497
Replies: 3 comments 6 replies
-
Types exposed in the abaqus packages and may vary from version to version. One solution is to inspect the objects from the Abaqus python console. We have discussed this few months ago, for example #1077. It is a lot of work and I don't have multiple abaqus versions, so the inspected variables may not be correct for different versions. |
Beta Was this translation helpful? Give feedback.
-
Thanks for the reference to that discussion. Regarding the possible differences between versions, I have access to pretty much every version of Abaqus. It should be straight forward to make a script to extract the content of the modules as in #1077 and then see the differences between the versions. I could do that if you think it makes sense. However, I just want to say that my comment referred specifically to the type elements defined as |
Beta Was this translation helpful? Give feedback.
-
Hi @haiiliin, I finally found the time to get the information of each module for different abaqus versions. I did this for versions 2017 and up and stored the results and the python file in a separate branch of my fork of this repo [1]. The files are structured in JSON format, where the first level corresponds to the modules, and the second level are the attributes contained in each module together with its type. What do you think about the format of the information? Is this something that you can use? Useful for the type-hinting are the attributes with type Since it is sorted alphabetically, you can run a diff between any two versions and see what has changed. For example, here is the difference between version 2017 and 2018:
--- abaqus_modules_abq2017.json 2023-08-15 19:07:10.353152098 +0200
+++ abaqus_modules_abq2018.json 2023-08-15 19:07:10.417150607 +0200
@@ -440,6 +440,7 @@
"_printError": "<type 'function'>",
"_printToCli": "<type 'AbaqusMethod'>",
"_redraw": "<type 'function'>",
+ "_redrawAll": "<type 'function'>",
"_sessionExitCallback": "<type 'module'>",
"_setCallVerifyMdb": "<type 'AbaqusMethod'>",
"_setDebug": "<type 'AbaqusMethod'>",
@@ -678,6 +679,7 @@
"AC_OFF": "<class 'symbolicConstants.SymbolicConstant'>",
"AC_ON": "<class 'symbolicConstants.SymbolicConstant'>",
"AC_PROJECTION": "<class 'symbolicConstants.SymbolicConstant'>",
+ "ADAMS": "<class 'symbolicConstants.SymbolicConstant'>",
"ADAPTIVE_MESHING": "<class 'symbolicConstants.SymbolicConstant'>",
"ADAPTIVE_MESH_SMOOTHING_FAILED": "<class 'symbolicConstants.SymbolicConstant'>",
"ADD": "<class 'symbolicConstants.SymbolicConstant'>",
@@ -691,6 +693,7 @@
"ALGORITHM": "<class 'symbolicConstants.SymbolicConstant'>",
"ALIGN": "<class 'symbolicConstants.SymbolicConstant'>",
"ALL": "<class 'symbolicConstants.SymbolicConstant'>",
+ "ALLISO": "<class 'symbolicConstants.SymbolicConstant'>",
"ALLOW_SUBCYCLING": "<class 'symbolicConstants.SymbolicConstant'>",
"ALLSTAR": "<class 'symbolicConstants.SymbolicConstant'>",
"ALL_DAMAGE_STEPS": "<class 'symbolicConstants.SymbolicConstant'>",
@@ -1331,6 +1334,7 @@
"CROSSED_SURFACES": "<class 'symbolicConstants.SymbolicConstant'>",
"CROSSING_VALUE": "<class 'symbolicConstants.SymbolicConstant'>",
"CRUSHABLE_FOAM": "<class 'symbolicConstants.SymbolicConstant'>",
+ "CSS8": "<class 'symbolicConstants.SymbolicConstant'>",
"CSYS": "<class 'symbolicConstants.SymbolicConstant'>",
"CUBIC": "<class 'symbolicConstants.SymbolicConstant'>",
"CUBIC_SPLINE": "<class 'symbolicConstants.SymbolicConstant'>",
@@ -1387,6 +1391,7 @@
"DC3D6E": "<class 'symbolicConstants.SymbolicConstant'>",
"DC3D8": "<class 'symbolicConstants.SymbolicConstant'>",
"DC3D8E": "<class 'symbolicConstants.SymbolicConstant'>",
+ "DC3D8R": "<class 'symbolicConstants.SymbolicConstant'>",
"DCAX3": "<class 'symbolicConstants.SymbolicConstant'>",
"DCAX3E": "<class 'symbolicConstants.SymbolicConstant'>",
"DCAX4": "<class 'symbolicConstants.SymbolicConstant'>",
@@ -1519,6 +1524,7 @@
"EDGE_SEEDING_METHOD": "<class 'symbolicConstants.SymbolicConstant'>",
"EIGENFREQUENCY": "<class 'symbolicConstants.SymbolicConstant'>",
"EIGENVALUE_BUCKLING": "<class 'symbolicConstants.SymbolicConstant'>",
+ "EISO": "<class 'symbolicConstants.SymbolicConstant'>",
"EITHER": "<class 'symbolicConstants.SymbolicConstant'>",
"ELASTIC": "<class 'symbolicConstants.SymbolicConstant'>",
"ELASTIC_PLASTIC": "<class 'symbolicConstants.SymbolicConstant'>",
@@ -1550,6 +1556,7 @@
"ELEM_SHAPE": "<class 'symbolicConstants.SymbolicConstant'>",
"ELLIPSE": "<class 'symbolicConstants.SymbolicConstant'>",
"ELLIPTICAL": "<class 'symbolicConstants.SymbolicConstant'>",
+ "ELLIPTIC_CYLINDER": "<class 'symbolicConstants.SymbolicConstant'>",
"ELSET_MAP": "<class 'symbolicConstants.SymbolicConstant'>",
"ELSET_MAP_COLORS": "<class 'symbolicConstants.SymbolicConstant'>",
"ELTYPE_MAP": "<class 'symbolicConstants.SymbolicConstant'>",
@@ -1614,6 +1621,7 @@
"EXCESSIVE_DISTORTION": "<class 'symbolicConstants.SymbolicConstant'>",
"EXCESSIVE_ELEMENT_DISTORTION": "<class 'symbolicConstants.SymbolicConstant'>",
"EXCESSIVE_STRAIN_INCREMENT": "<class 'symbolicConstants.SymbolicConstant'>",
+ "EXCITE": "<class 'symbolicConstants.SymbolicConstant'>",
"EXCLUDE": "<class 'symbolicConstants.SymbolicConstant'>",
"EXPLICIT": "<class 'symbolicConstants.SymbolicConstant'>",
"EXPLICIT_ANALYSIS": "<class 'symbolicConstants.SymbolicConstant'>",
@@ -1764,6 +1772,7 @@
"GENERALIZED_SHELL": "<class 'symbolicConstants.SymbolicConstant'>",
"GENERAL_OPTIMIZATION": "<class 'symbolicConstants.SymbolicConstant'>",
"GENERAL_PARTICLE": "<class 'symbolicConstants.SymbolicConstant'>",
+ "GENERIC": "<class 'symbolicConstants.SymbolicConstant'>",
"GEOMETRY": "<class 'symbolicConstants.SymbolicConstant'>",
"GEOMETRYFORMAT": "<class 'symbolicConstants.SymbolicConstant'>",
"GEOMETRY_ENHANCED": "<class 'symbolicConstants.SymbolicConstant'>",
@@ -1785,8 +1794,12 @@
"GK3D6L": "<class 'symbolicConstants.SymbolicConstant'>",
"GK3D6LN": "<class 'symbolicConstants.SymbolicConstant'>",
"GK3D6N": "<class 'symbolicConstants.SymbolicConstant'>",
+ "GK3D6T": "<class 'symbolicConstants.SymbolicConstant'>",
+ "GK3D6TN": "<class 'symbolicConstants.SymbolicConstant'>",
"GK3D8": "<class 'symbolicConstants.SymbolicConstant'>",
"GK3D8N": "<class 'symbolicConstants.SymbolicConstant'>",
+ "GK3D8T": "<class 'symbolicConstants.SymbolicConstant'>",
+ "GK3D8TN": "<class 'symbolicConstants.SymbolicConstant'>",
"GKAX2": "<class 'symbolicConstants.SymbolicConstant'>",
"GKAX2N": "<class 'symbolicConstants.SymbolicConstant'>",
"GKAX4": "<class 'symbolicConstants.SymbolicConstant'>",
@@ -1934,6 +1947,7 @@
"INVALID": "<class 'symbolicConstants.SymbolicConstant'>",
"INVALID_SURF": "<class 'symbolicConstants.SymbolicConstant'>",
"INVARIANT": "<class 'symbolicConstants.SymbolicConstant'>",
+ "INVERSED_MT": "<class 'symbolicConstants.SymbolicConstant'>",
"INWARD": "<class 'symbolicConstants.SymbolicConstant'>",
"ISL21A": "<class 'symbolicConstants.SymbolicConstant'>",
"ISL22A": "<class 'symbolicConstants.SymbolicConstant'>",
@@ -2132,6 +2146,7 @@
"MINIMIZE_MAXIMUM": "<class 'symbolicConstants.SymbolicConstant'>",
"MINIMUM": "<class 'symbolicConstants.SymbolicConstant'>",
"MINIMUM_MAXIMUM": "<class 'symbolicConstants.SymbolicConstant'>",
+ "MINIMUM_MEMORY": "<class 'symbolicConstants.SymbolicConstant'>",
"MINIMUM_MOVE": "<class 'symbolicConstants.SymbolicConstant'>",
"MIN_EDGE": "<class 'symbolicConstants.SymbolicConstant'>",
"MIN_INPLANE_PRINCIPAL": "<class 'symbolicConstants.SymbolicConstant'>",
@@ -2178,6 +2193,7 @@
"MSC_FATIGUE": "<class 'symbolicConstants.SymbolicConstant'>",
"MSFLD": "<class 'symbolicConstants.SymbolicConstant'>",
"MSPEI_XPL": "<class 'symbolicConstants.SymbolicConstant'>",
+ "MT": "<class 'symbolicConstants.SymbolicConstant'>",
"MTS": "<class 'symbolicConstants.SymbolicConstant'>",
"MULTILINEAR_KINEMATIC": "<class 'symbolicConstants.SymbolicConstant'>",
"MULTIPLE_DIRECTION_ABSOLUTE_SUM": "<class 'symbolicConstants.SymbolicConstant'>",
@@ -2266,6 +2282,7 @@
"NUM_PTS_ALONG_DIR": "<class 'symbolicConstants.SymbolicConstant'>",
"NUM_PTS_BETWEEN_PTS": "<class 'symbolicConstants.SymbolicConstant'>",
"NUM_SDI": "<class 'symbolicConstants.SymbolicConstant'>",
+ "OBLATE": "<class 'symbolicConstants.SymbolicConstant'>",
"OBLIQUE_DOWN": "<class 'symbolicConstants.SymbolicConstant'>",
"OBLIQUE_UP": "<class 'symbolicConstants.SymbolicConstant'>",
"ODB": "<class 'symbolicConstants.SymbolicConstant'>",
@@ -2297,6 +2314,7 @@
"OPT_EXTRACT_SMOOTH_STL": "<class 'symbolicConstants.SymbolicConstant'>",
"ORDINATE": "<class 'symbolicConstants.SymbolicConstant'>",
"ORIENTATION": "<class 'symbolicConstants.SymbolicConstant'>",
+ "ORIENTATION_TENSOR": "<class 'symbolicConstants.SymbolicConstant'>",
"ORIENT_FIELD": "<class 'symbolicConstants.SymbolicConstant'>",
"ORIENT_ON_DEF": "<class 'symbolicConstants.SymbolicConstant'>",
"ORIENT_ON_UNDEF": "<class 'symbolicConstants.SymbolicConstant'>",
@@ -2343,6 +2361,7 @@
"PATTERN_ORTHOGONALLY": "<class 'symbolicConstants.SymbolicConstant'>",
"PENALTY": "<class 'symbolicConstants.SymbolicConstant'>",
"PENETRATION_TOLERANCE_EXCEEDED": "<class 'symbolicConstants.SymbolicConstant'>",
+ "PENNY": "<class 'symbolicConstants.SymbolicConstant'>",
"PERCENTAGE": "<class 'symbolicConstants.SymbolicConstant'>",
"PERIMETER": "<class 'symbolicConstants.SymbolicConstant'>",
"PERP": "<class 'symbolicConstants.SymbolicConstant'>",
@@ -2351,6 +2370,7 @@
"PERTURBATION_AND_BUCKLING": "<class 'symbolicConstants.SymbolicConstant'>",
"PHASE": "<class 'symbolicConstants.SymbolicConstant'>",
"PHONG": "<class 'symbolicConstants.SymbolicConstant'>",
+ "PHYSICAL_MEMORY": "<class 'symbolicConstants.SymbolicConstant'>",
"PICKED": "<class 'symbolicConstants.SymbolicConstant'>",
"PICKEDPOINTS": "<class 'symbolicConstants.SymbolicConstant'>",
"PIEZOELECTRIC": "<class 'symbolicConstants.SymbolicConstant'>",
@@ -2365,6 +2385,7 @@
"PIPE31H": "<class 'symbolicConstants.SymbolicConstant'>",
"PIPE32": "<class 'symbolicConstants.SymbolicConstant'>",
"PIPE32H": "<class 'symbolicConstants.SymbolicConstant'>",
+ "PISO": "<class 'symbolicConstants.SymbolicConstant'>",
"PLANAR": "<class 'symbolicConstants.SymbolicConstant'>",
"PLANE": "<class 'symbolicConstants.SymbolicConstant'>",
"PLANE12": "<class 'symbolicConstants.SymbolicConstant'>",
@@ -2494,6 +2515,7 @@
"RADIUS": "<class 'symbolicConstants.SymbolicConstant'>",
"RAINBOW": "<class 'symbolicConstants.SymbolicConstant'>",
"RAMP": "<class 'symbolicConstants.SymbolicConstant'>",
+ "RANDOM3D": "<class 'symbolicConstants.SymbolicConstant'>",
"RANDOM_RESPONSE": "<class 'symbolicConstants.SymbolicConstant'>",
"RANGE": "<class 'symbolicConstants.SymbolicConstant'>",
"RASTER": "<class 'symbolicConstants.SymbolicConstant'>",
@@ -2555,6 +2577,7 @@
"RESULTANT": "<class 'symbolicConstants.SymbolicConstant'>",
"RETENTION_FACTOR": "<class 'symbolicConstants.SymbolicConstant'>",
"RETRACTOR": "<class 'symbolicConstants.SymbolicConstant'>",
+ "REUSS": "<class 'symbolicConstants.SymbolicConstant'>",
"REVERSE": "<class 'symbolicConstants.SymbolicConstant'>",
"REVERSED_RAINBOW": "<class 'symbolicConstants.SymbolicConstant'>",
"REVERSE_MIRROR": "<class 'symbolicConstants.SymbolicConstant'>",
@@ -2679,6 +2702,7 @@
"SHORT_FIBER": "<class 'symbolicConstants.SymbolicConstant'>",
"SHRINK_FIT": "<class 'symbolicConstants.SymbolicConstant'>",
"SHRINK_MOVEMENT": "<class 'symbolicConstants.SymbolicConstant'>",
+ "SID": "<class 'symbolicConstants.SymbolicConstant'>",
"SIDE1": "<class 'symbolicConstants.SymbolicConstant'>",
"SIDE2": "<class 'symbolicConstants.SymbolicConstant'>",
"SIGCONT": "<class 'symbolicConstants.SymbolicConstant'>",
@@ -2690,6 +2714,7 @@
"SIGUSR2": "<class 'symbolicConstants.SymbolicConstant'>",
"SIM": "<class 'symbolicConstants.SymbolicConstant'>",
"SIMP": "<class 'symbolicConstants.SymbolicConstant'>",
+ "SIMPACK": "<class 'symbolicConstants.SymbolicConstant'>",
"SIMPLE": "<class 'symbolicConstants.SymbolicConstant'>",
"SIMPLESHEAR": "<class 'symbolicConstants.SymbolicConstant'>",
"SIMPSON": "<class 'symbolicConstants.SymbolicConstant'>",
@@ -3076,6 +3101,7 @@
"VISCOUS": "<class 'symbolicConstants.SymbolicConstant'>",
"VMS": "<class 'symbolicConstants.SymbolicConstant'>",
"VOID": "<class 'symbolicConstants.SymbolicConstant'>",
+ "VOIGT": "<class 'symbolicConstants.SymbolicConstant'>",
"VOLUME": "<class 'symbolicConstants.SymbolicConstant'>",
"VOLUMETRIC": "<class 'symbolicConstants.SymbolicConstant'>",
"VOLUMETRICCREEP": "<class 'symbolicConstants.SymbolicConstant'>",
@@ -4982,6 +5008,7 @@
"ConnectorOrientationIntObjType": "<type 'type'>",
"ConvertWhenRunningError": "<type 'type'>",
"CoresCpusMismatch": "<type 'type'>",
+ "CosimulationCpuAppMismatch": "<type 'type'>",
"CosimulationDCIUnsupportedForABQtoABQError": "<type 'type'>",
"CosimulationDisabledError": "<type 'type'>",
"CouplingConstraintType": "<type 'type'>",
@@ -5335,6 +5362,7 @@
"NUM_SDI": "<class 'symbolicConstants.SymbolicConstant'>",
"NameError": "<type 'type'>",
"NoElpNoDmpDirect": "<type 'type'>",
+ "NoKeywordsDefinedError": "<type 'type'>",
"NoQueueDefinitionsError": "<type 'type'>",
"NodalDofsArrayType": "<type 'type'>",
"NotImplementedError": "<type 'type'>",
@@ -5676,6 +5704,7 @@
"UnicodeError": "<type 'type'>",
"UnicodeTranslateError": "<type 'type'>",
"UnicodeWarning": "<type 'type'>",
+ "UnifiedAnalysisStudentError": "<type 'type'>",
"UniqueNameError": "<type 'type'>",
"UnknownArgEnumStd": "<type 'type'>",
"UnknownArgEnumXpl": "<type 'type'>",
@@ -6059,6 +6088,7 @@
"FeatureOptionsType": "<type 'type'>",
"FeatureSketchType": "<type 'type'>",
"FeatureType": "<type 'type'>",
+ "FieldStateType": "<type 'type'>",
"FieldType": "<type 'type'>",
"FluidCavityPressureBCStateType": "<type 'type'>",
"FluidCavityPressureBCType": "<type 'type'>",
@@ -6549,6 +6579,8 @@
"ACOUSTIC_INTENSITY": "<class 'symbolicConstants.SymbolicConstant'>",
"ACROSS": "<class 'symbolicConstants.SymbolicConstant'>",
"ALL": "<class 'symbolicConstants.SymbolicConstant'>",
+ "ALLISO": "<class 'symbolicConstants.SymbolicConstant'>",
+ "ANALYTICAL_FIELD": "<class 'symbolicConstants.SymbolicConstant'>",
"ANGLE": "<class 'symbolicConstants.SymbolicConstant'>",
"ANGULAR_MOMENTUM": "<class 'symbolicConstants.SymbolicConstant'>",
"ANIMATION": "<class 'symbolicConstants.SymbolicConstant'>",
@@ -6586,6 +6618,7 @@
"AutoColorsType": "<type 'type'>",
"AxisDataType": "<type 'type'>",
"AxisType": "<type 'type'>",
+ "BALANCED": "<class 'symbolicConstants.SymbolicConstant'>",
"BAR": "<class 'symbolicConstants.SymbolicConstant'>",
"BATCHPRE_PHASE": "<class 'symbolicConstants.SymbolicConstant'>",
"BC_MAP": "<class 'symbolicConstants.SymbolicConstant'>",
@@ -6659,6 +6692,7 @@
"CURVE_NAME_LEGEND": "<class 'symbolicConstants.SymbolicConstant'>",
"CUSTOM": "<class 'symbolicConstants.SymbolicConstant'>",
"CW": "<class 'symbolicConstants.SymbolicConstant'>",
+ "CYLINDER": "<class 'symbolicConstants.SymbolicConstant'>",
"CanvasError": "<class 'abaqusExceptions.AbaqusExceptionType'>",
"CapCreepCohesionType": "<type 'type'>",
"CapCreepConsolidationType": "<type 'type'>",
@@ -6702,6 +6736,7 @@
"DENSITY": "<class 'symbolicConstants.SymbolicConstant'>",
"DENSITY_ROTATIONAL_ACCELERATION": "<class 'symbolicConstants.SymbolicConstant'>",
"DIRECTIONAL": "<class 'symbolicConstants.SymbolicConstant'>",
+ "DISCRETE_FIELD": "<class 'symbolicConstants.SymbolicConstant'>",
"DISPLACEMENT": "<class 'symbolicConstants.SymbolicConstant'>",
"DISPLAY_GRP_MAP": "<class 'symbolicConstants.SymbolicConstant'>",
"DISPLAY_GRP_MAP_COLORS": "<class 'symbolicConstants.SymbolicConstant'>",
@@ -6737,11 +6772,13 @@
"DruckerPragerType": "<type 'type'>",
"ECURRENT_AREA_TIME": "<class 'symbolicConstants.SymbolicConstant'>",
"EDGES": "<class 'symbolicConstants.SymbolicConstant'>",
+ "EISO": "<class 'symbolicConstants.SymbolicConstant'>",
"ELASTIC_PLASTIC": "<class 'symbolicConstants.SymbolicConstant'>",
"ELECTRIC_CHARGE": "<class 'symbolicConstants.SymbolicConstant'>",
"ELECTRIC_CURRENT": "<class 'symbolicConstants.SymbolicConstant'>",
"ELECTRIC_CURRENT_AREA": "<class 'symbolicConstants.SymbolicConstant'>",
"ELECTRIC_POTENTIAL": "<class 'symbolicConstants.SymbolicConstant'>",
+ "ELLIPTIC_CYLINDER": "<class 'symbolicConstants.SymbolicConstant'>",
"ELSET_MAP": "<class 'symbolicConstants.SymbolicConstant'>",
"ELSET_MAP_COLORS": "<class 'symbolicConstants.SymbolicConstant'>",
"ELTYPE_MAP": "<class 'symbolicConstants.SymbolicConstant'>",
@@ -6875,6 +6912,7 @@
"INTERNAL_SURFACE_MAP": "<class 'symbolicConstants.SymbolicConstant'>",
"INTERNAL_SURFACE_MAP_COLORS": "<class 'symbolicConstants.SymbolicConstant'>",
"INVARIANT": "<class 'symbolicConstants.SymbolicConstant'>",
+ "INVERSED_MT": "<class 'symbolicConstants.SymbolicConstant'>",
"ISOLINES": "<class 'symbolicConstants.SymbolicConstant'>",
"ISOTROPIC": "<class 'symbolicConstants.SymbolicConstant'>",
"ISOTROPIC_CFD": "<class 'symbolicConstants.SymbolicConstant'>",
@@ -6956,6 +6994,7 @@
"MOMENT": "<class 'symbolicConstants.SymbolicConstant'>",
"MOONEY_RIVLIN": "<class 'symbolicConstants.SymbolicConstant'>",
"MSFLD": "<class 'symbolicConstants.SymbolicConstant'>",
+ "MT": "<class 'symbolicConstants.SymbolicConstant'>",
"MULTILINEAR_KINEMATIC": "<class 'symbolicConstants.SymbolicConstant'>",
"MULTIPLICATIVE": "<class 'symbolicConstants.SymbolicConstant'>",
"MaterialEvaluationError": "<type 'type'>",
@@ -6993,6 +7032,7 @@
"NotImplementedType": "<type 'type'>",
"NumberFormat": "<type 'AbaqusMethod'>",
"NumberFormatType": "<type 'type'>",
+ "OBLATE": "<class 'symbolicConstants.SymbolicConstant'>",
"OBLIQUE_DOWN": "<class 'symbolicConstants.SymbolicConstant'>",
"OBLIQUE_UP": "<class 'symbolicConstants.SymbolicConstant'>",
"OFF": "<class 'symbolicConstants.AbaqusBoolean'>",
@@ -7006,6 +7046,7 @@
"ON": "<class 'symbolicConstants.AbaqusBoolean'>",
"OPEN_GL": "<class 'symbolicConstants.SymbolicConstant'>",
"ORDINATE": "<class 'symbolicConstants.SymbolicConstant'>",
+ "ORIENTATION_TENSOR": "<class 'symbolicConstants.SymbolicConstant'>",
"ORTHOTROPIC": "<class 'symbolicConstants.SymbolicConstant'>",
"OTHER": "<class 'symbolicConstants.SymbolicConstant'>",
"OUTSIDE": "<class 'symbolicConstants.SymbolicConstant'>",
@@ -7024,10 +7065,12 @@
"PATH_X": "<class 'symbolicConstants.SymbolicConstant'>",
"PATH_Y": "<class 'symbolicConstants.SymbolicConstant'>",
"PATH_Z": "<class 'symbolicConstants.SymbolicConstant'>",
+ "PENNY": "<class 'symbolicConstants.SymbolicConstant'>",
"PERP": "<class 'symbolicConstants.SymbolicConstant'>",
"PERSPECTIVE": "<class 'symbolicConstants.SymbolicConstant'>",
"PHASE": "<class 'symbolicConstants.SymbolicConstant'>",
"PHONG": "<class 'symbolicConstants.SymbolicConstant'>",
+ "PISO": "<class 'symbolicConstants.SymbolicConstant'>",
"PLANAR": "<class 'symbolicConstants.SymbolicConstant'>",
"PLOT_MAP": "<class 'symbolicConstants.SymbolicConstant'>",
"PLOT_MAP_COLORS": "<class 'symbolicConstants.SymbolicConstant'>",
@@ -7054,6 +7097,7 @@
"PRESSURE_GRADIENT": "<class 'symbolicConstants.SymbolicConstant'>",
"PRINCIPAL": "<class 'symbolicConstants.SymbolicConstant'>",
"PRINTER": "<class 'symbolicConstants.SymbolicConstant'>",
+ "PROLATE": "<class 'symbolicConstants.SymbolicConstant'>",
"PRONY": "<class 'symbolicConstants.SymbolicConstant'>",
"PROPERTY_MAP": "<class 'symbolicConstants.SymbolicConstant'>",
"PROPERTY_MAP_COLORS": "<class 'symbolicConstants.SymbolicConstant'>",
@@ -7086,6 +7130,7 @@
"QUAD_STRIP": "<class 'symbolicConstants.SymbolicConstant'>",
"QuantityType": "<type 'AbaqusMethod'>",
"QuantityTypeType": "<type 'type'>",
+ "RANDOM3D": "<class 'symbolicConstants.SymbolicConstant'>",
"RASTER": "<class 'symbolicConstants.SymbolicConstant'>",
"RATE": "<class 'symbolicConstants.SymbolicConstant'>",
"RECURSIVE": "<class 'symbolicConstants.SymbolicConstant'>",
@@ -7102,6 +7147,7 @@
"RELAXATION": "<class 'symbolicConstants.SymbolicConstant'>",
"RELAXATION_TEST_DATA": "<class 'symbolicConstants.SymbolicConstant'>",
"RETENTION_FACTOR": "<class 'symbolicConstants.SymbolicConstant'>",
+ "REUSS": "<class 'symbolicConstants.SymbolicConstant'>",
"REVERSE_MIRROR": "<class 'symbolicConstants.SymbolicConstant'>",
"ROTARY_INERTIA": "<class 'symbolicConstants.SymbolicConstant'>",
"ROTATIONAL_ACCELERATION": "<class 'symbolicConstants.SymbolicConstant'>",
@@ -7140,6 +7186,7 @@
"SOFTWARE_OVERLAY": "<class 'symbolicConstants.SymbolicConstant'>",
"SOLID": "<class 'symbolicConstants.SymbolicConstant'>",
"SPECIFY": "<class 'symbolicConstants.SymbolicConstant'>",
+ "SPHERE": "<class 'symbolicConstants.SymbolicConstant'>",
"SPLINE_APPROXIMATION": "<class 'symbolicConstants.SymbolicConstant'>",
"SPLINE_INTERPOLATION": "<class 'symbolicConstants.SymbolicConstant'>",
"SSH": "<class 'symbolicConstants.SymbolicConstant'>",
@@ -7230,8 +7277,10 @@
"UNIAXIAL": "<class 'symbolicConstants.SymbolicConstant'>",
"UNIAXIAL_VOLUMETRIC": "<class 'symbolicConstants.SymbolicConstant'>",
"UNIDIRECTIONAL": "<class 'symbolicConstants.SymbolicConstant'>",
+ "UNIFORM": "<class 'symbolicConstants.SymbolicConstant'>",
"UNKNOWN": "<class 'symbolicConstants.SymbolicConstant'>",
"UNLIMITED": "<class 'symbolicConstants.SymbolicConstant'>",
+ "UNSPECIFIED": "<class 'symbolicConstants.SymbolicConstant'>",
"USER": "<class 'symbolicConstants.SymbolicConstant'>",
"USER_DEFINED": "<class 'symbolicConstants.SymbolicConstant'>",
"USUP": "<class 'symbolicConstants.SymbolicConstant'>",
@@ -7249,6 +7298,7 @@
"VERTICAL": "<class 'symbolicConstants.SymbolicConstant'>",
"VERY_THIN": "<class 'symbolicConstants.SymbolicConstant'>",
"VIEW_MANIP": "<class 'symbolicConstants.SymbolicConstant'>",
+ "VOIGT": "<class 'symbolicConstants.SymbolicConstant'>",
"VOLUME": "<class 'symbolicConstants.SymbolicConstant'>",
"VOLUMETRIC": "<class 'symbolicConstants.SymbolicConstant'>",
"VOLUMETRICCREEP": "<class 'symbolicConstants.SymbolicConstant'>",
@@ -7850,6 +7900,7 @@
"CPS8RE": "<class 'symbolicConstants.SymbolicConstant'>",
"CPS8RT": "<class 'symbolicConstants.SymbolicConstant'>",
"CPS8T": "<class 'symbolicConstants.SymbolicConstant'>",
+ "CSS8": "<class 'symbolicConstants.SymbolicConstant'>",
"CUBIC": "<class 'symbolicConstants.SymbolicConstant'>",
"CURVATURE_BASED_BY_SIZE": "<class 'symbolicConstants.SymbolicConstant'>",
"CYLINDRICAL": "<class 'symbolicConstants.SymbolicConstant'>",
@@ -7880,6 +7931,7 @@
"DC3D6E": "<class 'symbolicConstants.SymbolicConstant'>",
"DC3D8": "<class 'symbolicConstants.SymbolicConstant'>",
"DC3D8E": "<class 'symbolicConstants.SymbolicConstant'>",
+ "DC3D8R": "<class 'symbolicConstants.SymbolicConstant'>",
"DCAX3": "<class 'symbolicConstants.SymbolicConstant'>",
"DCAX3E": "<class 'symbolicConstants.SymbolicConstant'>",
"DCAX4": "<class 'symbolicConstants.SymbolicConstant'>",
@@ -7989,8 +8041,12 @@
"GK3D6L": "<class 'symbolicConstants.SymbolicConstant'>",
"GK3D6LN": "<class 'symbolicConstants.SymbolicConstant'>",
"GK3D6N": "<class 'symbolicConstants.SymbolicConstant'>",
+ "GK3D6T": "<class 'symbolicConstants.SymbolicConstant'>",
+ "GK3D6TN": "<class 'symbolicConstants.SymbolicConstant'>",
"GK3D8": "<class 'symbolicConstants.SymbolicConstant'>",
"GK3D8N": "<class 'symbolicConstants.SymbolicConstant'>",
+ "GK3D8T": "<class 'symbolicConstants.SymbolicConstant'>",
+ "GK3D8TN": "<class 'symbolicConstants.SymbolicConstant'>",
"GKAX2": "<class 'symbolicConstants.SymbolicConstant'>",
"GKAX2N": "<class 'symbolicConstants.SymbolicConstant'>",
"GKAX4": "<class 'symbolicConstants.SymbolicConstant'>",
@@ -11062,6 +11118,7 @@
"AC_OFF": "<class 'symbolicConstants.SymbolicConstant'>",
"AC_ON": "<class 'symbolicConstants.SymbolicConstant'>",
"AC_PROJECTION": "<class 'symbolicConstants.SymbolicConstant'>",
+ "ADAMS": "<class 'symbolicConstants.SymbolicConstant'>",
"ALL": "<class 'symbolicConstants.SymbolicConstant'>",
"ALL_FREQUENCIES": "<class 'symbolicConstants.SymbolicConstant'>",
"ALL_LOCATIONS": "<class 'symbolicConstants.SymbolicConstant'>",
@@ -11159,6 +11216,7 @@
"ENERGY_NONE": "<class 'symbolicConstants.SymbolicConstant'>",
"ENERGY_PRESELECT": "<class 'symbolicConstants.SymbolicConstant'>",
"EVERY_TIME_INCREMENT": "<class 'symbolicConstants.SymbolicConstant'>",
+ "EXCITE": "<class 'symbolicConstants.SymbolicConstant'>",
"EXCLUDE": "<class 'symbolicConstants.SymbolicConstant'>",
"EXPLICIT": "<class 'symbolicConstants.SymbolicConstant'>",
"EXPLICIT_ANALYSIS": "<class 'symbolicConstants.SymbolicConstant'>",
@@ -11194,6 +11252,7 @@
"FrequencyStepType": "<type 'type'>",
"GALERKIN": "<class 'symbolicConstants.SymbolicConstant'>",
"GENERALIZED": "<class 'symbolicConstants.SymbolicConstant'>",
+ "GENERIC": "<class 'symbolicConstants.SymbolicConstant'>",
"GEOMETRY": "<class 'symbolicConstants.SymbolicConstant'>",
"GEOMETRY_ENHANCED": "<class 'symbolicConstants.SymbolicConstant'>",
"GEOSTATIC": "<class 'symbolicConstants.SymbolicConstant'>",
@@ -11314,8 +11373,10 @@
"SEMI_AUTOMATIC": "<class 'symbolicConstants.SymbolicConstant'>",
"SEPARATED": "<class 'symbolicConstants.SymbolicConstant'>",
"SET_EQUAL_DT": "<class 'symbolicConstants.SymbolicConstant'>",
+ "SID": "<class 'symbolicConstants.SymbolicConstant'>",
"SIDE1": "<class 'symbolicConstants.SymbolicConstant'>",
"SIDE2": "<class 'symbolicConstants.SymbolicConstant'>",
+ "SIMPACK": "<class 'symbolicConstants.SymbolicConstant'>",
"SINGLE_DIRECTION": "<class 'symbolicConstants.SymbolicConstant'>",
"SNEG": "<class 'symbolicConstants.SymbolicConstant'>",
"SOILS": "<class 'symbolicConstants.SymbolicConstant'>",
[1] https://github.com/cristobaltapia/abqpy/tree/module_info/module_info |
Beta Was this translation helpful? Give feedback.
-
This package is really great to work with Abaqus scripts, but it fails for certain workflows. Normally I don't write the whole script linearly, but divide it into functions and classes. So, a script looks like this:
With a package like abqpy we can then in theory add type hinting to the class and function definitions using the classes provided by abqpy. This is great, because the editor knows that in the function
connect_beams()
the two variables are of typeBeam
, which has variables of typePart
andInstance
, so it can suggest the correct autocompletions for them. This is illustrated below:However, the types to do this are not provided by abqpy. Ideally we could have something like
which are classes that can be used for the type hinting. But this would not work, because Abaqus does not make accessible all the classes from
import
statements. Or at least this line would need to be commented out before submitting it to Abaqus, otherwise there will be an error message. So we need something that works with the existing python interface of Abaqus.Proposition
I found that Abaqus does expose some types, although they are not documented. For example
We could override those variables in abqpy, so that they are linked to the correct classes. In this way we can get type hinting fairly easily. The only problem is that they are not documented, so there would be a bit more work to first find all these types.
What do you think?
Beta Was this translation helpful? Give feedback.
All reactions