<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Python | Dynamics Data Design Lab</title><link>https://d3lab-iisc.github.io/tag/python/</link><atom:link href="https://d3lab-iisc.github.io/tag/python/index.xml" rel="self" type="application/rss+xml"/><description>Python</description><generator>Hugo Blox Builder (https://hugoblox.com)</generator><language>en-us</language><lastBuildDate>Wed, 30 Sep 2026 00:00:00 +0000</lastBuildDate><image><url>https://d3lab-iisc.github.io/media/icon_hu_9c18be3972a07470.png</url><title>Python</title><link>https://d3lab-iisc.github.io/tag/python/</link></image><item><title>Hetero-EUCLID</title><link>https://d3lab-iisc.github.io/code/hetero-euclid/</link><pubDate>Wed, 30 Sep 2026 00:00:00 +0000</pubDate><guid>https://d3lab-iisc.github.io/code/hetero-euclid/</guid><description>&lt;p&gt;Hetero-EUCLID segments a heterogeneous specimen into its material regions and discovers an interpretable hyperelastic model for each region, using only full-field displacements and boundary reaction forces, without stress data. It builds on &lt;a href="https://github.com/EUCLID-code/EUCLID-hyperelasticity-bayesian" target="_blank" rel="noopener"&gt;Bayesian-EUCLID&lt;/a&gt; and works in two steps: residual force-based segmentation, then constitutive parameter identification with a sparsity-promoting spike-and-slab prior sampled by MCMC.&lt;/p&gt;
&lt;p&gt;The repository includes example FE datasets (cross-shaped inclusion and split domain) for reproducing the results in the paper.&lt;/p&gt;
&lt;h3 id="quick-start"&gt;Quick start&lt;/h3&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;git clone https://github.com/d3lab-iisc/Hetero-EUCLID.git
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nb"&gt;cd&lt;/span&gt; Hetero-EUCLID
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;pip install -r requirements.txt
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nb"&gt;cd&lt;/span&gt; drivers
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;python main_hss_hetero_euclid.py Type1_Cross_Shaped_Inclusion none
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;See the &lt;a href="https://github.com/d3lab-iisc/Hetero-EUCLID#readme" target="_blank" rel="noopener"&gt;repository README&lt;/a&gt; for the conda environment, noise levels and output files.&lt;/p&gt;
&lt;h3 id="citation"&gt;Citation&lt;/h3&gt;
&lt;p&gt;If you use this code, please cite the paper:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;K. L. Chaurasiya, S. Dutta, S. Kumar, A. Joshi. Hetero-EUCLID: Interpretable model discovery for heterogeneous hyperelastic materials using stress-unsupervised learning. &lt;em&gt;Computer Methods in Applied Mechanics and Engineering&lt;/em&gt;, 452, 118729 (2026). &lt;a href="https://doi.org/10.1016/j.cma.2026.118729" target="_blank" rel="noopener"&gt;doi:10.1016/j.cma.2026.118729&lt;/a&gt;&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;To cite the software itself, use the archived release on Zenodo: &lt;a href="https://doi.org/10.5281/zenodo.23359467" target="_blank" rel="noopener"&gt;10.5281/zenodo.23359467&lt;/a&gt;.&lt;/p&gt;</description></item><item><title>Bayesian-EUCLID</title><link>https://d3lab-iisc.github.io/code/bayesian-euclid/</link><pubDate>Wed, 22 Jun 2022 00:00:00 +0000</pubDate><guid>https://d3lab-iisc.github.io/code/bayesian-euclid/</guid><description>&lt;p&gt;Bayesian-EUCLID (Efficient Unsupervised Constitutive Law Identification and Discovery) discovers interpretable hyperelastic material models, with quantified uncertainties, from full-field displacement data and reaction forces, without stress data. A large library of constitutive features is combined with sparsity-promoting spike-and-slab priors, and the physics-constrained likelihood is based on linear momentum balance. Gibbs sampling then gives parsimonious models as posterior distributions with epistemic and aleatoric uncertainties.&lt;/p&gt;
&lt;p&gt;Compared to the earlier EUCLID framework, it discovers material models about 100 times faster while using far less data. The repository includes the quasi-static and dynamic FE benchmark data used in the paper (Arruda-Boyce, Gent-Thomas, Haines-Wilson, Holzapfel, Isihara, Neo-Hookean, Ogden).&lt;/p&gt;
&lt;h3 id="quick-start"&gt;Quick start&lt;/h3&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;git clone https://github.com/EUCLID-code/EUCLID-hyperelasticity-bayesian.git
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nb"&gt;cd&lt;/span&gt; EUCLID-hyperelasticity-bayesian/drivers
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;python main_hss.py ArrudaBoyce high
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Requires Python with &lt;code&gt;numpy&lt;/code&gt;, &lt;code&gt;scipy&lt;/code&gt;, &lt;code&gt;torch&lt;/code&gt;, &lt;code&gt;pandas&lt;/code&gt;, &lt;code&gt;matplotlib&lt;/code&gt;, &lt;code&gt;seaborn&lt;/code&gt; and &lt;code&gt;scikit-learn&lt;/code&gt;. See the &lt;a href="https://euclid-code.github.io/EUCLID-hyperelasticity-bayesian/mkdocs/site/" target="_blank" rel="noopener"&gt;online documentation&lt;/a&gt; for a file-by-file explanation and a worked example, and the &lt;a href="https://euclid-code.github.io/" target="_blank" rel="noopener"&gt;EUCLID project website&lt;/a&gt; for related codes.&lt;/p&gt;
&lt;h3 id="citation"&gt;Citation&lt;/h3&gt;
&lt;p&gt;If you use this code, please cite the paper:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;A. Joshi, P. Thakolkaran, Y. Zheng, M. Escande, M. Flaschel, L. De Lorenzis, S. Kumar. Bayesian-EUCLID: Discovering hyperelastic material laws with uncertainties. &lt;em&gt;Computer Methods in Applied Mechanics and Engineering&lt;/em&gt;, 398, 115225 (2022). &lt;a href="https://doi.org/10.1016/j.cma.2022.115225" target="_blank" rel="noopener"&gt;doi:10.1016/j.cma.2022.115225&lt;/a&gt;&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;Typo corrections to the published article are listed &lt;a href="https://github.com/EUCLID-code/EUCLID-hyperelasticity-bayesian/blob/main/bayesian-euclid-corrections.pdf" target="_blank" rel="noopener"&gt;here&lt;/a&gt;.&lt;/p&gt;</description></item></channel></rss>