MCPcopy Create free account
hub / github.com/Apress/python-for-matlab-development / print_summary

Method print_summary

pythran/fem/FE_model.py:189–197  ·  view source on GitHub ↗
(self, str=False)

Source from the content-addressed store, hash-verified

187 return K, M
188 # }}}
189 def print_summary(self, str=False): # {{{
190 S = f'nDof : {self.nDof} elem : {len(self.elem)} '
191 S += 'mass : %8.5f lb ' % sum(self.elem[_].mass for _ in self.elem)
192 S += ' '
193 S += 'length : %6.2f in' % sum(self.elem[_].length for _ in self.elem)
194 if str:
195 return S
196 else:
197 print(S)
198 # }}}
199 def deform(self, dV, # {{{
200 scale=None):

Callers 2

__str__Method · 0.95
mainFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected