* fichier topoptim_09.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:
** V1.0 2017/04/18 Original version compatible with TOPOPTIM V2.1
************************************************************************
graph0 = FAUX ;
* General options
* Number of mesh refinement iterations
nb0 = 5 ;
* Initialize the optimization table
tab0.'FRACTION_VOLUME' = 0.5 ;
tab0.'MAX_CYCLES' = 0 ;
* Remeshing loop
REPE loop1 nb0 ;
* Mesh
nelx0 = 15 * &loop1 ;
nely0 = 5 * &loop1 ;
p0 = 0.0 0.0 ;
p1 = 0.0 20.0 ;
p2 = 60.0 0.0 ;
* Model and material
* Boundary conditions and 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 ;
* 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 to screen
topo0 = tab0.'TOPOLOGIE'.(tab0.'CYCLE') ;
topomsh0 = tab0.'MAILLAGE'.(tab0.'CYCLE') ;
SI graph0 ;
FINS ;
FIN ;
					© Cast3M 2003 - Tous droits réservés.
					Mentions légales