# One homogenization pipeline for microstructures from Abaqus/CAE, Gmsh, microgen and TexGen

**URL:** <https://community.cdmhub.org/t/one-homogenization-pipeline-for-microstructures-from-abaqus-cae-gmsh-microgen-and-texgen/4662>\
**Category:** MSG & SwiftComp\
**Created:** [October 2, 2026, 5:29pm UTC](https://community.cdmhub.org/t/one-homogenization-pipeline-for-microstructures-from-abaqus-cae-gmsh-microgen-and-texgen/4662 "2026-10-02T17:29:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![su.tian.22](https://community.cdmhub.org/user_avatar/community.cdmhub.org/su.tian.22/32/620_2.png) [@su.tian.22](https://community.cdmhub.org/u/su.tian.22)\
**Post date:** [October 2, 2026, 5:29pm UTC](https://community.cdmhub.org/t/one-homogenization-pipeline-for-microstructures-from-abaqus-cae-gmsh-microgen-and-texgen/4662/1 "2026-10-02T17:29:57Z")

</div>

Posted a new example on homogenizing microstructures that come from different modeling tools with a single sgio + SwiftComp pipeline, and comparing their elastic anisotropy on one scale.

**What it covers:**

- Four microstructures, one per builder: hexagonal honeycomb (Abaqus/CAE, 2D SG), UD composite with random fibres (GmshModel, 2D SG), Schwarz-P TPMS sheet (microgen, 3D SG) and 2×2 plain weave (TexGen, 3D SG)
- Two hand-over formats:
  - Abaqus `.inp` decks with per-element material orientations. The honeycomb uses a discrete orientation along each wall, and the TexGen weave stores voxel yarn directions in an `.ori` file that sgio follows from the `*Distribution` line.
  - Gmsh `.msh` meshes plus an _SG manifest_ (`.sg.json`) that sets the SG dimension, the model space and the physical group → material binding

- One code path for every case: `sgio.convert(...)` to a SwiftComp SG, `sgio.run("swiftcomp", ..., "h")`, then `sgio.read_output_model` for the 6×6 effective stiffness and the density. Only the input format and the SG dimension change.
- Postprocessing on C and ρ alone: directional Young’s modulus surfaces and the energy-ratio-based measure of elastic anisotropy (Fang et al., PRL 2019) for all 32 cases (geometry parameter ranges × two material sets)

The folder includes the homogenization outputs, so rerunning the postprocessing and the figures only needs uv. The `workflow/` folder has the builder scripts and the sgio/SwiftComp driver if you want to rebuild everything. Each builder gets its own Python environment because the tools’ requirements conflict, and the article notes the version pins and workarounds this needed.

If you have microstructures from another tool, the SG manifest route (mesh + JSON) is the easiest way to bring them into SwiftComp.

Full example, code and interactive figures:

> **[Many Builders, One Pipeline - Multiscale Structural Mechanics](https://wenbinyugroup.github.io/msg-examples/multi-builder-anisotropy/)**
>
> Microstructures built with Abaqus/CAE, GmshModel, microgen and TexGen are converted by sgio, homogenized by SwiftComp and compared with the energy-ratio-based measure of elastic anisotropy.
