Skip to content

Commit

Permalink
add gravity center in readVABSOutHomo function
Browse files Browse the repository at this point in the history
  • Loading branch information
tfei committed Jan 20, 2021
1 parent 1e6bac2 commit 7197454
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions io/iovabs.py
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ def readVABSOutHomo(fn, scrnout=True):
float(linesRead[ln + 3].split()[-1]),
float(linesRead[ln + 4].split()[-1])
])
#gc has not been added in "sg.py" yet.
sm.gc = gc

if 'tc' in keywordsIndex.keys():
ln = keywordsIndex['tc']
Expand Down Expand Up @@ -343,7 +343,10 @@ def readVABSOutHomo(fn, scrnout=True):
#old dic method to save mass center
# sm.eff_props[1]['mass']['masscenter'] = utl.textToMatrix(linesRead[ln + 3:ln + 9])
except KeyError:
sm.mass_mc = sm.mass_origin
if scrnout:
print('No mass center matrix found.')
else:
pass

#check whether the analysis is Vlasov or timoshenko
#Read stiffness matrix and compliance matrix
Expand Down

0 comments on commit 7197454

Please sign in to comment.