frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: PyTorch/FEniCSx pipeline for elastocaloric metamaterial optimization

1•Rao_Atreya•2h ago
Hi HN,

I built an open-source Deep Reinforcement Learning (DRL) environment to explore topology optimization for elastocaloric cooling (solid-state HVAC).

The physical problem: The HVAC industry is trying to replace toxic HFC refrigerants with elastocaloric Shape Memory Alloys like Nitinol. You cool a room by cyclically compressing a porous metal lattice. The paradox is that you need high porosity for air to flow through the metal, but holes create stress concentrators. If the metal is too thin, it snaps after a few thousand cycles from mechanical fatigue. Standard density-based topology optimization (like SIMP) usually outputs jagged, unprintable "grayscale" meshes.

What I built: I wanted to bypass SIMP and enforce manufacturing reality. I wrote an OpenAI Gymnasium wrapper that bridges a PyTorch RL agent with a native CAD-to-Physics pipeline: 1. The PyTorch agent outputs continuous geometric parameters for BCC/Gyroid lattices. 2. The environment checks the resulting wall thickness. If it drops below 0.2mm (the minimum feature size for standard LPBF metal 3D printers), the agent gets a terminal penalty and the episode ends. 3. If printable, OpenCASCADE and Gmsh generate a watertight tetrahedral mesh. 4. FEniCSx crushes it in a virtual hydraulic press (via MPI) to find peak stress. 5. The agent learns to maximize porosity while fortifying high-stress zones.

The whole stack runs locally on Apple Silicon using Metal Performance Shaders (MPS).

Current Limitations (The Next Phase): Right now, the FEniCSx solver is using a linear elastic approximation to save compute time during the DRL training loop. Real Nitinol undergoes a highly non-linear austenitic-martensitic phase transformation. The next major step is integrating a hyperelastic/phase-field model into the FEniCSx step without making the compute cost per episode astronomical.

I’m dropping this here because I know there are people on HN working at the intersection of AI, computational mechanics, and thermal management.

I would love any brutal feedback on the architecture, the FEniCSx integration, or ideas on speeding up non-linear physics solvers for RL loops.

Repo:https://github.com/rao-atreya-01/elastocaloric-ai-optimizati...

Runaway

https://domofutu.substack.com/p/runaway
1•wjb3•29s ago•0 comments

Ali Khamenei Is Dead

https://www.ynetnews.com/article/skie4tef11x
1•surume•41s ago•0 comments

Ask HN: Dora metrics exist for eng. Equivalent for AI in ops, finance, CS?

1•Poolyberat•1m ago•0 comments

Hypeman – Run Containerized Workloads in VMs, Powered by Cloud Hypervisor / QEMU

https://github.com/kernel/hypeman
2•crbelaus•2m ago•0 comments

Show HN: InstallerStudio – Create MSI Installers Without WiX or InstallShield

https://www.ionline.com/
2•pkailas•4m ago•0 comments

Show HN: Sampler Step Explorer – for understanding diffusion sampler updates

https://www.bryanthornbury.com/interactives/sampler-step-explorer/
1•bthornbury•4m ago•0 comments

Show HN: Pure Python web framework using free-threaded Python

https://github.com/grandimam/barq
1•grandimam•5m ago•0 comments

The Next Four Years, an experimental novel

https://thenextfouryears.ai
1•garof•6m ago•1 comments

Show HN: O-O – HTML/bash polyglot files that rewrite themselves (update)

1•jahala•6m ago•0 comments

Ask HN: How would you start a small private math circle for talented kids?

5•andrewstetsenko•8m ago•0 comments

Show HN: OpenGem – Free, self-healing load-balanced proxy for Google Gemini API

https://github.com/arifozgun/OpenGem
1•ariozgun•10m ago•0 comments

Ask HN: My YC company is hiring one engineer/day but there's not enough work

4•ta_jobstartup•11m ago•0 comments

Trump Says Iran's Supreme Leader Ayatollah Ali Khamenei Is Dead

https://www.bbc.com/news/live/cn5ge95q6y7t
5•tlogan•12m ago•0 comments

Intermittent fasting no better than typical weight loss diets

https://www.theguardian.com/science/2026/feb/16/intermittent-fasting-no-better-than-typical-weigh...
2•paulpauper•13m ago•0 comments

A World Where All Is Free? That's Elon Musk's Theory of Abundance

https://www.nytimes.com/2026/02/27/business/a-world-where-all-is-free-thats-elon-musks-theory-of-...
2•paulpauper•14m ago•1 comments

Amiga Alien Breed HD

https://old.reddit.com/r/amiga/comments/1rh7743/alien_breed_hd/
2•doener•14m ago•0 comments

My 24 Rules for Reading

https://www.honest-broker.com/p/my-24-rules-for-reading
2•paulpauper•14m ago•0 comments

Khamenei dead, say US and Israel

https://www.reuters.com/world/iran-crisis-live-explosions-tehran-israel-announces-strike-2026-02-28/
4•andrepd•15m ago•0 comments

What are GPS jammers and how do you combat them?

https://www.geotab.com/blog/combating-gps-jammers/
2•RyanShook•16m ago•0 comments

Show HN: Lovepdf – open-source self hosting alternative to ilovepdf

https://github.com/rtvkiz/lovepdf
2•theoo21•16m ago•0 comments

Show HN: Focusmo – a Mac focus app with a local Claude MCP server

https://focusmo.app
2•elesinn•17m ago•0 comments

There Are No Psychopaths

https://aeon.co/essays/psychopathy-is-a-zombie-idea-why-does-it-cling-on
2•marojejian•17m ago•1 comments

AI, Networks and Mechanical Turks

https://www.ben-evans.com/benedictevans/2025/11/23/ai-networks-and-mechanical-turks
2•simonebrunozzi•18m ago•0 comments

You don't have to if you don't want to

https://www.scottsmitelli.com/articles/you-dont-have-to/
2•yshklarov•18m ago•0 comments

Flixtera: Download and own your movies and TV Shows forever, not rent it

https://flixtera.xyz
3•monyasau•21m ago•1 comments

Show HN: Memory Engine – AI Consciousness Persistence Framework

https://github.com/andresuarus10-byte/memory-engine
2•KaelyrAT•24m ago•0 comments

Show HN: Flare – Full-Stack OpenTelemetry Observability for Apache Spark

https://github.com/Neutrinic/flare
2•ZenithR9•25m ago•0 comments

A terminal-based KeePass password manager

https://github.com/shikaan/keydex
2•shikaan•26m ago•0 comments

India Blocks the Supbase.co

https://techcrunch.com/2026/02/27/india-disrupts-access-to-popular-developer-platform-supabase-wi...
2•pratikshit08•27m ago•0 comments

Reified Generics in PHP

https://github.com/php/php-src/pull/21317
2•mastabadtomm•30m ago•0 comments