Télécharger topoptim_09_Remeshing.dgibi
* fichier topoptim_09_Remeshing.dgibi ************************************************************************ ************************************************************************ ************************************************************************ ** Topology optimization of a simple 2D structure subjected to a ** mechanical loading, with imposed initial topology and remeshing. ** ** Author: ** Guenhael Le Quilliec (LaMe - Polytech Tours) ** ** Version: ** V2.0 2025/11/13 Updated to make it compatible with TOPOPTIM V4.0 ** V1.0 2017/04/18 Original version compatible with TOPOPTIM V2.1 ************************************************************************ * Plot results graph0 = FAUX ; * General options * Number of mesh refinement iterations nb0 = 5 ; * Dimensions l1 = 60.0 ; l2 = 20.0 ; * Initialize the optimization table tab0.'FRACTION_VOLUME_LIMITE' = 0.5 ; tab0.'MAX_CYCLES' = 0 ; *tab0.'OPTIMISEUR' = MOT 'MMA' ; * Remeshing loop REPE loop1 nb0 ; * Number of elements nelx0 = 15 * &loop1 ; nely0 = 5 * &loop1 ; * Mesh p0 = 0.0 0.0 ; p1 = 0.0 l2 ; p2 = l1 0.0 ; * Model and material * Boundary conditions * Loading * Finite element model table mdl0.'MODELE' = mod0 ; mdl0.'CARACTERISTIQUES' = mat0 ; mdl0.'BLOCAGES_MECANIQUES' = bc0 ; mdl0.'CHARGEMENT' = load0 ; * Add the finite element model to the optimization table tab0.'RESOLUTION_LINEAIRE' = mdl0 ; * Filtering options * tab0.'FILTRE' = MOT 'EDP' ; * tab0.'FILTRE_EDP_RAYON' = 2.0 * l1 / (FLOT nelx0) ; * tab0.'FILTRE' = MOT 'CHAPEAU' ; * tab0.'FILTRE_CHAPEAU_RAYON' = 2.5 * l1 / (FLOT nelx0) ; * tab0.'FILTRER' = MOT 'DENSITE' ; * Progressively increase the maximum number of cycles SI (&loop1 < nb0) ; tab0.'MAX_CYCLES' = tab0.'MAX_CYCLES' + 4 * &loop1 ; SINO ; tab0.'MAX_CYCLES' = tab0.'MAX_CYCLES' + 50 ; FINS ; * Optimization TOPOPTIM tab0 ; FIN loop1 ; * 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