Skip to content

Commit

Permalink
0802
Browse files Browse the repository at this point in the history
  • Loading branch information
tian50 committed Aug 3, 2021
1 parent 5ce91b7 commit ae725d5
Showing 1 changed file with 38 additions and 38 deletions.
76 changes: 38 additions & 38 deletions msgpi/ms/beam.py
Original file line number Diff line number Diff line change
Expand Up @@ -298,44 +298,44 @@ def printResults(self):



def findPtCoordByName(self, name):
"""Find key point coordinates by point id.
Parameters
----------
name : int
Point id.
Returns
-------
list of floats
Point coordinates.
"""
for i, c in self.points.items():
if i == name:
return c
return None




def findSectionByName(self, name):
"""Find sectional properties by section id.
Parameters
----------
name : int
Section id.
Returns
-------
msgpi.sg.MaterialSection
Sectional properties.
"""
for i, s in self.sections.items():
if s.name == name:
return i
return 0
# def findPtCoordByName(self, name):
# """Find key point coordinates by point id.

# Parameters
# ----------
# name : int
# Point id.

# Returns
# -------
# list of floats
# Point coordinates.
# """
# for i, c in self.points.items():
# if i == name:
# return c
# return None




# def findSectionByName(self, name):
# """Find sectional properties by section id.

# Parameters
# ----------
# name : int
# Section id.

# Returns
# -------
# msgpi.sg.MaterialSection
# Sectional properties.
# """
# for i, s in self.sections.items():
# if s.name == name:
# return i
# return 0



Expand Down

0 comments on commit ae725d5

Please sign in to comment.