Télécharger topoptim_11_Mechanism.dgibi
* fichier topoptim_11_Mechanism.dgibi ************************************************************************ ************************************************************************ ************************************************************************ ** Topology optimization of a simple 2D compliant mechanism: inverter ** (maximization of the output displacements in the opposite direction ** to the input displacements) ** ** Author: ** Guenhael Le Quilliec (LaMe - Polytech Tours) ** ** Version: ** V3.0 2025/11/13 Updated to make it compatible with TOPOPTIM V4.0 ** V2.0 2021/05/06 Updated to make it compatible with TOPOPTIM V3.0 ** V1.0 2017/11/11 Original version compatible with TOPOPTIM V2.1 ************************************************************************ * Plot results graph0 = FAUX ; * General options * Number of elements nelx0 = 40 ; nely0 = 20 ; * Dimensions l1 = nelx0 * 1.0 ; l2 = nely0 * 1.0 ; * Mesh p0 = 0.0 0.0 ; p1 = l1 0.0 ; p2 = 0.0 l2 ; * Model and material * Boundary conditions * Loading * Output displacement elementary field to be maximized * Finite element model table mdl0.'MODELE' = mod0 ; mdl0.'CARACTERISTIQUES' = mat0 ; mdl0.'BLOCAGES_MECANIQUES' = bc0 ; mdl0.'CHARGEMENT' = load0 ; * Optimization table tab0.'RESOLUTION_LINEAIRE' = mdl0 ; tab0.'FRACTION_VOLUME_LIMITE ' = 0.3 ; tab0.'OC_D' = 0.3 ; tab0.'MECANISME' = load1 ; tab0.'X_CHANGE_SEUIL' = 0.1 ; tab0.'FILTRE_GIBIANE_TAUX' = 2 ; *tab0.'FILTRE' = MOT 'EDP' ; *tab0.'FILTRE_EDP_RAYON' = 3.0 * l1 / (FLOT nelx0) ; *tab0.'FILTRE' = MOT 'CHAPEAU' ; *tab0.'FILTRE_CHAPEAU_RAYON' = 3.0 * l1 / (FLOT nelx0) ; *tab0.'FILTRER' = MOT 'DENSITE' ; *tab0.'OPTIMISEUR' = MOT 'MMA' ; * Optimization TOPOPTIM tab0 ; * Plot final topology (physical density) topo0 = tab0.'TOPOLOGIE'.(tab0.'CYCLE') ; topomsh0 = tab0.'MAILLAGE'.(tab0.'CYCLE') ; SI graph0 ; 'TITR' 'Topologie finale' ; FINS ; * Plot output evolutions SI graph0 ; ' au cours des cycles d''optimisation') ; FIN loop0 ; FINS ; FIN ;
© Cast3M 2003 - Tous droits réservés.
Mentions légales