{"id":19867692,"url":"https://github.com/cwsmith/pvloadvsdisplacement","last_synced_at":"2025-06-17T01:32:41.172Z","repository":{"id":35953864,"uuid":"40243491","full_name":"cwsmith/pvloadvsdisplacement","owner":"cwsmith","description":null,"archived":false,"fork":false,"pushed_at":"2015-08-06T05:00:08.000Z","size":1612,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-01T00:39:13.732Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cwsmith.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-08-05T12:16:24.000Z","updated_at":"2015-08-05T12:20:51.000Z","dependencies_parsed_at":"2022-09-14T02:40:45.758Z","dependency_job_id":null,"html_url":"https://github.com/cwsmith/pvloadvsdisplacement","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/cwsmith/pvloadvsdisplacement","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cwsmith%2Fpvloadvsdisplacement","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cwsmith%2Fpvloadvsdisplacement/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cwsmith%2Fpvloadvsdisplacement/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cwsmith%2Fpvloadvsdisplacement/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cwsmith","download_url":"https://codeload.github.com/cwsmith/pvloadvsdisplacement/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cwsmith%2Fpvloadvsdisplacement/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260271995,"owners_count":22984210,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-12T15:30:00.563Z","updated_at":"2025-06-17T01:32:41.128Z","avatar_url":"https://github.com/cwsmith.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pvloadvsdisplacement \nPython code for a Paraview programmable filter that\nsupports plotting the maximum load vs the maximum displacement over time for a\nset of user selected elements. The values being computed are specific to a\nsolid mechanics analysis run in [Albany](https://github.com/gahansen/Albany), but the process and code can be\nextended to support other inputs.\n\nTested in Paraview 4.3.1 on GNU/Linux.\n\n![plot](plot.png)\n\n# Load the plugin (first use only)\n* Tools-\u003eManage Plugins\n* Click 'Load New ...'\n* Select 'loadVsDisp.xml'\n\n# Create a load vs displacement plot\n* Open a pvd file\n* select some elements via 'select elements through'\n* Filters-\u003eAlphabetical-\u003eExtract Selection \n* Click apply\n* Filters-\u003eAlphabetical-\u003eLoad Vs Displacement\n* Set 'displacementFieldName' to the name of the VTU field containing the displacement field - typically 'Solution' or 'disp'\n* Set 'numStressFields' equal to the number of VTU stress fields \n* Set 'stressFieldName' to the base name of the VTU stress field - typically 'Cauchy_Stress_' or 'Stress_'\n* Set 'Field Association' to 'Row Data'\n* Click apply\n* Click the row in the spreadsheet window - it should become shaded\n* Filters-\u003eAlphabetical-\u003ePlot Selection Over Time\n* Click apply\n* Under 'X Axis Parameters' set 'X Array Name' to 'max_disp'\n* Under 'Series Parameters' select only the 'max_stress' box\n* The plot title and axis labels can be set as needed via the other filter properties \n\n# Helpful documentation\n\n[VTK C++](http://www.vtk.org/doc/nightly/html/classvtkTable.html)\n\n[Python and C++ Examples](http://www.vtk.org/doc/nightly/html/c2_vtk_e_8.html)\n\n[Easy Customization of the ParaView Python Programmable Filter Property Panel](http://www.kitware.com/blog/home/post/534)\n(the \u003ccode\u003epython_filter_generator.py\u003c/code\u003e script is from this blog post)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcwsmith%2Fpvloadvsdisplacement","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcwsmith%2Fpvloadvsdisplacement","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcwsmith%2Fpvloadvsdisplacement/lists"}