{"id":46996071,"url":"https://github.com/pyiron/elaston","last_synced_at":"2026-03-11T15:17:20.740Z","repository":{"id":251764567,"uuid":"838375579","full_name":"pyiron/elaston","owner":"pyiron","description":"Elaston is a simple and lightweight module for linear elasticity calculations.","archived":false,"fork":false,"pushed_at":"2026-03-02T08:53:47.000Z","size":456,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":5,"default_branch":"main","last_synced_at":"2026-03-02T12:39:29.787Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pyiron.png","metadata":{"files":{"readme":"docs/README.md","changelog":null,"contributing":"CONTRIBUTING.rst","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-08-05T14:09:14.000Z","updated_at":"2026-02-23T09:01:40.000Z","dependencies_parsed_at":"2024-12-29T17:29:31.693Z","dependency_job_id":"5976c5e8-3547-4deb-9f83-9a1c5e35241d","html_url":"https://github.com/pyiron/elaston","commit_stats":null,"previous_names":["pyiron/elaston"],"tags_count":0,"template":false,"template_full_name":"pyiron/pyiron_module_template","purl":"pkg:github/pyiron/elaston","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyiron%2Felaston","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyiron%2Felaston/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyiron%2Felaston/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyiron%2Felaston/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pyiron","download_url":"https://codeload.github.com/pyiron/elaston/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyiron%2Felaston/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30385493,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-11T14:10:17.325Z","status":"ssl_error","status_checked_at":"2026-03-11T14:09:37.934Z","response_time":84,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":"2026-03-11T15:17:15.696Z","updated_at":"2026-03-11T15:17:20.729Z","avatar_url":"https://github.com/pyiron.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/pyiron/elaston/HEAD)\n[![License](https://img.shields.io/badge/License-BSD_3--Clause-blue.svg)](https://opensource.org/licenses/BSD-3-Clause)\n[![Codacy Badge](https://app.codacy.com/project/badge/Grade/4aaeaca43ca54789ae5b328e17e1d937)](https://app.codacy.com/gh/pyiron/elaston/dashboard?utm_source=gh\u0026utm_medium=referral\u0026utm_content=\u0026utm_campaign=Badge_grade)\n[![Coverage Status](https://coveralls.io/repos/github/pyiron/elaston/badge.svg?branch=main)](https://coveralls.io/github/pyiron/elaston?branch=main)\n[![Documentation Status](https://readthedocs.org/projects/elaston/badge/?version=latest)](https://elaston.readthedocs.io/en/latest/?badge=latest)\n\n# Elaston\n\nElaston is a simple and lightweight module for linear elasticity calculations.\n\n## Installation\n\nWe will offer pip and conda at some point. For now, you can install the package by cloning the repository and running the following command in the root directory:\n\n```bash\npip install .\n```\n\n## Features\n\n- Calculation of elastic constants\n- Stress, strain and displacement field around dislocations using anisotropic elasticity\n- Stress, strain and displacement field around point defects\n\n\n## Usage\n\nExamples I: Get bulk modulus from the elastic tensor:\n\n```python\nfrom elaston import LinearElasticity\n\nmedium = LinearElasticity(C_11=211.0, C_12=130.0, C_44=82.0)  # Fe\nmedium_voigt = medium.get_voigt_average()\nparameters = medium_voigt.get_elastic_moduli()\nprint(parameters['bulk_modulus'])\n```\n\n\nExample II: Get strain field around a point defect:\n\n```python\nimport numpy as np\nmedium = LinearElasticity(C_11=211.0, C_12=130.0, C_44=82.0)\nrandom_positions = np.random.random((10, 3)) - 0.5\ndipole_tensor = np.eye(3)\nprint(medium.get_point_defect_strain(random_positions, dipole_tensor))\n```\n\n\nExample III: Get stress field around a dislocation:\n\n```python\nimport numpy as np\nmedium = LinearElasticity(C_11=211.0, C_12=130.0, C_44=82.0)\nrandom_positions = np.random.random((10, 3)) - 0.5\n# Burgers vector of a screw dislocation in bcc Fe\nburgers_vector = np.array([0, 0, 2.86 * np.sqrt(3) / 2])\nprint(medium.get_dislocation_stress(random_positions, burgers_vector))\n```\n\nExample IV: Estimate the distance between partial dislocations:\n\n```python\nmedium = LinearElasticity(C_11=110.5, C_12=64.8, C_44=30.9)  # Al\nlattice_constant = 4.05\npartial_one = np.array([-0.5, 0, np.sqrt(3) / 2]) * lattice_constant\npartial_two = np.array([0.5, 0, np.sqrt(3) / 2]) * lattice_constant\ndistance = 100\nstress_one = medium.get_dislocation_stress([0, distance, 0], partial_one)\nprint('Choose `distance` in the way that the value below corresponds to SFE')\nmedium.get_dislocation_force(stress_one, [0, 1, 0], partial_two)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpyiron%2Felaston","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpyiron%2Felaston","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpyiron%2Felaston/lists"}