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

Extracting nodal results #28

Open
denisgomes opened this issue Jan 18, 2020 · 1 comment
Open

Extracting nodal results #28

denisgomes opened this issue Jan 18, 2020 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@denisgomes
Copy link
Owner

denisgomes commented Jan 18, 2020

When data is save in a loadcase by the solver, the hash of the model should be calculated and saved inside the loadcase. When the results are accesses by loadcase.results, a current hash must be calculated and compared to the hash set by the solver to determine if the model changed.

Overload the getitem magic methods for the LoadCase and LoadComb classes to extract nodal data. For example,

movements[10]['dx'] # returns the dx movement at node 10
movements[10][0] # also return the dx movement
movements[10][:3] # return dx, dy, dz
movements[10][:6:3] # return dx and rx
movements[10] # return dx, dy, dz, rx, ry, rz

@denisgomes denisgomes added the enhancement New feature or request label Jan 18, 2020
@denisgomes denisgomes added this to the Version 0.1 Release milestone Jan 18, 2020
@denisgomes denisgomes self-assigned this Jan 18, 2020
@denisgomes
Copy link
Owner Author

A hash has to be checked still.

Added support for movements[Point][Slice].

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant