Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

time.clock() error in Python 3.8 #10

Closed
Giannis1993 opened this issue Apr 9, 2020 · 4 comments
Closed

time.clock() error in Python 3.8 #10

Giannis1993 opened this issue Apr 9, 2020 · 4 comments
Assignees
Labels
bug Something isn't working enhancement New feature or request

Comments

@Giannis1993
Copy link

Solution is to replace time.clock() according to the following link:

https://stackoverflow.com/questions/58569361/attributeerror-module-time-has-no-attribute-clock-in-python-3-8

Also, it would be nice if you could get the stiffness matrix as a function of the areas of the elements for optimization purposes!

@adtzlr adtzlr closed this as completed in 28c4e86 Apr 9, 2020
@adtzlr adtzlr reopened this Apr 9, 2020
@adtzlr adtzlr self-assigned this Apr 9, 2020
@adtzlr adtzlr added bug Something isn't working enhancement New feature or request labels Apr 9, 2020
@adtzlr
Copy link
Owner

adtzlr commented Apr 9, 2020

First part: Done. Pushed a new build to PyPi. Please update via pip.

@adtzlr
Copy link
Owner

adtzlr commented Apr 10, 2020

For the second part: Could you explain your idea in detail? Do you mean something like

def stiffness(list_of_element_areas):
    #code for stiffness matrix
    return KT

How would you like to have this implemented? I mean TrussPy is meant for nonlinear deformation analysis of truss structures. So the stiffness matrix changes in EVERY increment. Would you like to access the stiffness matrix for every increment AFTER the job has completed? For example something like

M.Results.R[10].KT(list_of_element_areas)

for the 10-th increment?

Actually I'm not really sure if this makes sense in the nonlinear case at all. This kind of optimization seems more useful for the geometric linear case with small nodal displacements (and constant stiffness matrix) for me - please correct me if I'm wrong.

@Giannis1993
Copy link
Author

Giannis1993 commented Apr 11, 2020 via email

@adtzlr
Copy link
Owner

adtzlr commented Apr 21, 2020

I'll close this issue and created #13 for the second part as the title of this issue was already solved.

@adtzlr adtzlr closed this as completed Apr 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants