* fichier : mato-2d4.dgibi ************************************************************************ ************************************************************************ 'OPTION' 'ECHO' 0 ; ************************************************************************ * NOM : MATO-2D4 * DESCRIPTION : Test du MAilleur TOpologique pour mailler un carré * avec une métrique isotrope constante en espace * dans le but d'obtenir 10x10 mailles. * Au départ, le carré est 1x1. Concernant la frontière, * on contraint le mailleur, soit à ne pas la modifier, * soit à en modifier une partie, soit la totalité. * * On teste la qualité des éléments obtenus. * * Issu de 2d_9.dgibi+tests * * * LANGAGE : GIBIANE-CAST3M * AUTEUR : Stéphane GOUNAND (CEA/DEN/DM2S/SEMT/LTA) * mél : stephane.gounand@cea.fr ********************************************************************** * VERSION : v1, 07/04/2020, version initiale * HISTORIQUE : v1, 07/04/2020, création * HISTORIQUE : * HISTORIQUE : ************************************************************************ * interact = faux ; graph = faux ; * Mini, mediane et maxi d'un LISTREEL 'DEBP' MIMEMA ; 'ARGU' lr ; 'FINP' mil mel mal ; * Passage au gravite d'un MCHAML 'DEBP' CHGRAV ch*'MCHAML'; * * 'SI' ('NON' interact) ; 'OPTION' 'TRAC' 'PSC' ; 'SINON' ; 'OPTION' 'TRAC' 'X' ; 'FINSI' ; * * Création du contour * nx = 1 ; nv = 10 ; pA = 0. 0. ; pB = 1. 0. ; pC = 1. 1. ; pD = 0. 1. ; * cnt = lAB 'ET' lBC 'ET' lCD 'ET' lDA ; * 'SI' graph ; 'FINSI' ; * * Tests divers (consistance...) * lok = VRAI ; * * TEST 1 Création d'un maillage sans ajouter de noeuds * 'SI' graph ; 'FINSI' ; * Test 1 : on vérifie que le nombre de noeuds est conservé 'SI' ('NEG' nno1 nno2) ; lok = lok 'ET' faux ; 'FINS' ; * * TEST 2 Remaillage de mail1 avec une taille voulue de 0.1 sans * toucher le bord * 'SI' graph ; 'FINSI' ; * Test 2 : on vérifie que les qualités mini, mediane et maxi des éléments sont bonnes 'SI' graph ; 'FINSI' ; * Sur mon linux64 au 07/04/2020 : Qmin= 0.91E-01 Qmoy= 0.82E+00 Qmax= 0.10E+01 *!!!! Mieux miqref = 0.08 ; meqref = 0.81 ; maqref = 0.99 ; *miqref = 0.02 ; meqref = 0.79 ; maqref = 0.99 ; * 2025/11/24 *!!!! Mieux ou different ?? miqaref = 0.08 ; meqaref = 0.89 ; maqaref = 0.99 ; * 2025/11/24 miqaref = 0.86 ; meqaref = 0.86 ; maqaref = 0.86 ; 'SI' ('<EG' miqa miqaref) ; lok = lok 'ET' faux ; 'FINS' ; 'SI' ('<EG' meqa meqaref) ; lok = lok 'ET' faux ; 'FINS' ; 'SI' ('<EG' maqa maqaref) ; lok = lok 'ET' faux ; 'FINS' ; 'SI' graph ; 'FINSI' ; * Sur mon linux64 au 07/04/2020 : Qmin= 0.91E-01 Qmoy= 0.82E+00 Qmax= 0.10E+01 *!!!! Mieux miqref = 0.08 ; meqref = 0.81 ; maqref = 0.99 ; *miqref = 0.02 ; meqref = 0.79 ; maqref = 0.99 ; * 2025/11/24 miqeref = 0.14 ; meqeref = 0.80 ; maqeref = 0.99 ; 'SI' ('<EG' miqe miqeref) ; lok = lok 'ET' faux ; 'FINS' ; 'SI' ('<EG' meqe meqeref) ; lok = lok 'ET' faux ; 'FINS' ; 'SI' ('<EG' maqe maqeref) ; lok = lok 'ET' faux ; 'FINS' ; * * TEST 3 Remaillage de mail1 avec une taille voulue de 0.1 en touchant * le bord sauf lAB * 'SI' graph ; 'FINSI' ; * Test 3 : on vérifie que les qualités mini, mediane et maxi des éléments sont bonnes 'SI' graph ; 'FINSI' ; * Sur mon linux64 au 07/04/2020 : Qmin= 0.13E+00 Qmoy= 0.90E+00 Qmax= 0.10E+01 *!!!!!!!Mieux miqref = 0.12 ; meqref = 0.89 ; maqref = 0.99 ; *miqref = 0.0076 ; meqref = 0.02 ; maqref = 0.02 ; * 2025/11/24 *!!!! Mieux ou different ?? miqaref = 0.11 ; meqaref = 0.89 ; maqaref = 0.99 ; * 2025/11/24 new miqaref = 0.80 ; meqaref = 0.86 ; maqaref = 0.97 ; 'SI' ('<EG' miqa miqaref) ; lok = lok 'ET' faux ; 'FINS' ; 'SI' ('<EG' meqa meqaref) ; lok = lok 'ET' faux ; 'FINS' ; 'SI' ('<EG' maqa maqaref) ; lok = lok 'ET' faux ; 'FINS' ; 'SI' graph ; 'FINSI' ; * 2025/11/24 *!!!!! Mieux miqeref = 0.13 ; meqeref = 0.82 ; maqeref = 0.99 ; * 2025/11/24 new miqeref = 0.08 ; meqeref = 0.20 ; maqeref = 0.89 ; 'SI' ('<EG' miqe miqeref) ; lok = lok 'ET' faux ; 'FINS' ; 'SI' ('<EG' meqe meqeref) ; lok = lok 'ET' faux ; 'FINS' ; 'SI' ('<EG' maqe maqeref) ; lok = lok 'ET' faux ; 'FINS' ; * * TEST 4 Remaillage de mail1 avec une taille voulue de 0.1 en touchant * tout le bord * 'SI' graph ; 'FINSI' ; * Test 4 : on vérifie que les qualités mini, mediane et maxi des éléments sont bonnes 'SI' graph ; 'FINSI' ; * Sur mon linux64 au 07/04/2020 : Qmin= 0.65E+00 Qmoy= 0.91E+00 Qmax= 0.10E+01 *!!!!! Mieux miqref = 0.64 ; meqref = 0.90 ; maqref = 0.99 ; * 2025/11/24 * !!!! Pas si mal miqaref = 0.57 ; meqaref = 0.90 ; maqaref = 0.99 ; * 2025/11/24 new miqaref = 0.73 ; meqaref = 0.88 ; maqaref = 0.99 ; 'SI' ('<EG' miqa miqaref) ; lok = lok 'ET' faux ; 'FINS' ; 'SI' ('<EG' meqa meqaref) ; lok = lok 'ET' faux ; 'FINS' ; 'SI' ('<EG' maqa maqaref) ; lok = lok 'ET' faux ; 'FINS' ; 'SI' graph ; 'FINSI' ; * 2025/11/24 miqeref = 0.59 ; meqeref = 0.86 ; maqeref = 0.99 ; 'SI' ('<EG' miqe miqeref) ; lok = lok 'ET' faux ; 'FINS' ; 'SI' ('<EG' meqe meqeref) ; lok = lok 'ET' faux ; 'FINS' ; 'SI' ('<EG' maqe maqeref) ; lok = lok 'ET' faux ; 'FINS' ; * * TEST 5 Remaillage de mail4 avec une taille voulue de 0.1 en ne touchant * plus le bord. On s'attend à ne pas changer le maillage mais * c'est sans compter avec l'algorithme du noeud fictif qui nous * a deja fait des blagues * 'SI' graph ; 'FINSI' ; * Test 5 : on vérifie que mail5 et mail4 sont identiques ainsi que les * qualités *!!!! dn45 = 0 ; 'SI' ('NEG' dn45 0) ; lok = lok 'ET' faux ; 'FINS' ; * * Test final * 'SI' ('NON' lok) ; 'ERREUR' 5 ; 'SINON' ; 'MESSAGE' ('CHAINE' 'Tout sest bien passe !') ; 'FINSI' ; * 'SI' interact ; 'OPTION' 'ECHO' 1 ; 'OPTION' 'DONN' 5 ; 'FINSI' ; * * End of dgibi file MATO-2D4 * 'FIN' ;
© Cast3M 2003 - Tous droits réservés.
Mentions légales