Skip to content

Slow generation of 3D gyroids #107

@Maxou-153

Description

@Maxou-153

Describe the bug, what's wrong, and what you expected.

Hello,

I'm Maxime, new doctorant at I2M, i'm following Jules's internship on TPMS generation for FEM calculus but instead of fedoo i'm using Abaqus for some comparaison. I'am trying to compare Jules's experimental results to my simulation results. In order to compare them with precision I have to make the same geometry.

Here is my issue : when i try to make the same sample as Jules did (5x5x5 cell number in a 35x35x35 sample size) the computation time became huge. For example I just tried to compute a 2x2x2 model and even after 2h it didn't stop computing, so i can't manage to make volumics gyroid like that.

The problem can be on my side but the code is the one from the github.

Thank you for reading this !

Maxime MIRAMON (DuMas - Dynamics)

Steps to reproduce the bug.

from pathlib import Path
from microgen import Tpms, Phase, Rve
from microgen.shape.surface_functions import gyroid
import cadquery as cq

# 1. Generate a TPMS geometry using the gyroid surface function.
geometry = Tpms(
    surface_function=gyroid,
    density=0.30,
    resolution=30,
    cell_size=7,
    repeat_cell=5,
)

# 2. Wrap the geometry into a microgen Phase object.
phases = []
phases.append(Phase(shape=geometry.generate()))
rve = Rve(dim=1)

# 3. Export the geometry as a STEP file.
step_file = str(Path(__file__).parent / "gyroid.step")
cq.exporters.export(phases[0].shape, step_file)

System Information

No report because it's just about computing time.

Screenshots

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions