Skip to content

Commit 04d02a7

Browse files
committed
Removed inconsistencies
1 parent 40514b5 commit 04d02a7

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

PyNite/FEModel3D.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1644,12 +1644,12 @@ def Kg(self, combo_name='Combo 1', log=False, sparse=True, first_step=True):
16441644
# Return the global geometric stiffness matrix
16451645
return Kg
16461646

1647-
def Km(self, combo_name='Combo 1', push_combo='Pushover', step_num=1, log=False, sparse=True):
1647+
def Km(self, combo_name='Combo 1', push_combo='Push', step_num=1, log=False, sparse=True):
16481648
"""Calculates the structure's global plastic reduction matrix, which is used for nonlinear inelastic analysis.
16491649
16501650
:param combo_name: The name of the load combination to get the plastic reduction matrix for. Defaults to 'Combo 1'.
16511651
:type combo_name: str, optional
1652-
:param push_combo: The name of the load combination that contains the pushover load definition. Defaults to 'Pushover'.
1652+
:param push_combo: The name of the load combination that contains the pushover load definition. Defaults to 'Push'.
16531653
:type push_combo: str, optional
16541654
:param step_num: The load step used to generate the plastic reduction matrix. Defaults to 1.
16551655
:type step_num: int, optional
@@ -2157,7 +2157,7 @@ def analyze_PDelta(self, log=False, check_stability=True, max_iter=30, sparse=Tr
21572157
# Flag the model as solved
21582158
self.solution = 'P-Delta'
21592159

2160-
def _not_ready_yet_analyze_pushover(self, log=False, check_stability=True, push_combo='Combo 1', max_iter=30, tol=0.01, sparse=True, combo_tags=None):
2160+
def _not_ready_yet_analyze_pushover(self, log=False, check_stability=True, push_combo='Push', max_iter=30, tol=0.01, sparse=True, combo_tags=None):
21612161

21622162
if log:
21632163
print('+---------------------+')
@@ -2229,7 +2229,7 @@ def _not_ready_yet_analyze_pushover(self, log=False, check_stability=True, push_
22292229

22302230
# Since a P-Delta analysis was just run, we'll need to correct the solution to flag it
22312231
# as 'pushover' instead of 'PDelta'
2232-
self.solution = 'pushover'
2232+
self.solution = 'Pushover'
22332233

22342234
# Apply the pushover load in steps, summing deformations as we go, until the full
22352235
# pushover load has been analyzed

PyNite/Member3D.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ def km(self, combo_name='Combo 1', push_combo='Push', step_num=1):
227227
228228
:param combo_name: The name of the load combination to get the plastic reduction matrix for. Defaults to 'Combo 1'.
229229
:type combo_name: str, optional
230-
:param push_combo: The name of the load combination that defines the pushover load. Defaults to 'Push 1'.
230+
:param push_combo: The name of the load combination that defines the pushover load. Defaults to 'Push'.
231231
:type push_combo: str, optional
232232
:param step_num: The pushover load step to consider for calculating the plastic reduciton matrix. Default is 1.
233233
:type step_num: int, optional
@@ -238,9 +238,8 @@ def km(self, combo_name='Combo 1', push_combo='Push', step_num=1):
238238
# Get the elastic local stiffness matrix
239239
ke = self.k()
240240

241-
# Calculate the elastic member axial force - used to determine the geometric stiffness. This axial force is based on the latest results from the last iteration performed and stored in the model's displacements.
242-
d = self.d(combo_name)
243-
P = self.E*self.A/self.L()*(d[6, 0] - d[0, 0])
241+
# Get the member's axial force
242+
P = self._fxj - self._fxi
244243

245244
# Get the geometric local stiffness matrix
246245
kg = self.kg(P)

0 commit comments

Comments
 (0)