{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Boundary treatment `3d`\n", "\n", "A boundary treatment based on the work of [Inglis et. al. (2020)](https://doi.org/10.1007/s10404-020-2323-x)." ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "from mnflow.mfda.cad.dld.theme.block import DLD" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "dld = DLD(\n", " Np=10,\n", " Nw=8,\n", " gap_w=1.,\n", " boundary_treatment='3d',\n", " num_unit=2,\n", " rot_last=90,\n", " # constraints OFF\n", " turn_off_constraints=True,\n", " # image\n", " opt_save_image=True,\n", " img_dpu=40,\n", ")" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Output layout:\n", "![Layout](layout_overlay.png)" ] } ], "metadata": { "kernelspec": { "display_name": ".venv", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.12.7" } }, "nbformat": 4, "nbformat_minor": 2 }