Skip to content

Commit 7a5ebba

Browse files
committed
try to fix bug
1 parent 7f615b3 commit 7a5ebba

File tree

6 files changed

+7
-0
lines changed

6 files changed

+7
-0
lines changed

src/ansys/dyna/core/pre/dynabase.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1817,6 +1817,7 @@ def __init__(self):
18171817
self.defined_timestep = False
18181818
self.defined_nonlinear = False
18191819
self.stub = DynaBase.get_stub()
1820+
self.type = "analysis_thermal"
18201821

18211822
def set_timestep(self, timestep_control=ThermalAnalysisTimestep.FIXED, initial_timestep=0):
18221823
"""Set time step controls for the thermal solution in a thermal only or coupled structural/thermal analysis.
@@ -2822,6 +2823,7 @@ def __init__(self, dir=GravityOption.DIR_Z, load=Curve(x=[0, 0], y=[0, 0])):
28222823
self.stub = DynaBase.get_stub()
28232824
self.dir = dir.value
28242825
self.load = load
2826+
self.type = "gravity"
28252827

28262828
def create(self):
28272829
"""Define a body force."""

src/ansys/dyna/core/pre/dynaem.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -732,6 +732,7 @@ def __init__(self, set=None):
732732
self.stub = DynaBase.get_stub()
733733
self.set = set
734734
self.id = 0
735+
self.type = "rogocoil"
735736

736737
def create(self):
737738
"""Create a Rogowsky coil."""

src/ansys/dyna/core/pre/dynaicfd.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,7 @@ def __init__(self):
260260
self.defined_coupling_dem = False
261261
self.defined_mesh_adapt = False
262262
self.stub = DynaBase.get_stub()
263+
self.type = "analysis_icfd"
263264

264265
def set_type(self, analysis_type=ICFD_AnalysisType.TRANSIENT_ANALYSIS):
265266
"""Set the type of the CFD analysis.

src/ansys/dyna/core/pre/dynamech.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -377,6 +377,7 @@ def __init__(
377377
self.sidtyp = 0
378378
else:
379379
self.sidtyp = 1
380+
self.type = "airbag"
380381

381382
def create(self):
382383
"""Create an airbag."""

src/ansys/dyna/core/pre/dynanvh.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ class FrequencyDomain(BaseObj):
6161
def __init__(self):
6262
self.stub = DynaBase.get_stub()
6363
self.defined_frf = False
64+
self.type = "frequency_domain"
6465

6566
def set_frequency_response_function(
6667
self,

src/ansys/dyna/core/pre/dynasale.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ def __init__(self, control_points_x, control_points_y, control_points_z):
5454
self.refine_factor_y = 1
5555
self.refine_factor_z = 1
5656
self.fillings = []
57+
self.type = "structured_mesh"
5758

5859
def fill(
5960
self,

0 commit comments

Comments
 (0)