* fichier : c3d93.dgibi ************************************************************************ ************************************************************************ ************************************************************** * 3D MAGNETIC FIELD COMPUTATION 2 POTENTIALS METHOD * * REDUCED POTENTIAL (VOLUME CONTAINING INDUCTORS) * TOTAL POTENTIAL (VOLUME WHITHOUT CURRENTS ) * ************************************************************** option echo 1 ; TYPEL = 2 ; GRAPH = N ; si ( ega typel 2 ) ; sinon ; finsi ; *---------------------------MESH ----------------------------------- R1 =20. ; R2= 25. ; R3= 27. ; R4= 29. ; R5=39.;R6 = 130.; Z1= 2.5; Z2= 5. ; Z3= 20. ; Z4= 130.;Z31=30.;Z32=50.; DI1= 1.; DI2=5.;DI3=60. ;DI4= 10.;NET2= 6; DENS DI1 ; OZ3= 0. Z3; OZ2= 0. Z2;OZ1= 0. Z1;OZ4=0. Z4; OO= 0. 0.;R0Z0= DI1 0 ; R1Z0= R1 0. ;R2Z0= R2 0. ;R3Z0 = R3 0. ;R4Z0 = R4 0.; R0Z2= DI1 Z2 ; R4Z2 = R4 Z2 ; DENS DI2 ; R5Z0= R5 0. ;R5Z3= R5 Z3 ;R0Z3 =DI2 Z3 ;OZ3 = 0. Z3 ; DENS DI3 ; R6Z0=R6 0.; R6Z4=R6 Z4 ; R2Z3= R2 Z3 ; R1Z3= R1 Z3; R4Z1 = R4 Z1; R3Z1= R3 Z1 ; DENSITE DI4 ; R0Z4 = DI4 Z4 ; OZ4 = 0. Z4 ; NTRA= 1; COUL BLEU ; FER = (D OZ2 R0Z2 D R4Z2 D 6 R4Z0 D R5Z0 D R5Z3 D R0Z3 D OZ3 D OZ2 ) * COUL VERT ; PTAX = TFLAN POINT DROITE OO ( 0 1. ) .01 ; * C2 = C1 PROJETER DIRE (1 0 ) DROITE OO OZ4 ; OZ4 = C2 POINT PROCHE OZ4 ; OO = C2 POINT PROCHE OO ; TU1 = DALLER C1 ( D 1 R0Z0 OO ) C2 (D OZ4 R0Z4 ) PLAN ; * TRAC (AIRIN ET FER ET AIREXT ) FACE ; *----------- *------------------ SHIFT TO 3D -------------------------------- *------------ OPTION ELEM CUB8 ; SI ( EGA TYPEL 2 ) FINSI ; ANG = 20. ; * *------------- DEFINITION OF THE 2 DOMAINS ----------- *------ REDUCED POTENTIAL VOLUME -------------------------- **------ TOTAL POTENTIAL VOLUME -------------------------- * *---- ---------SEPARATION SURFACE IDENTIFICATION ------------- * ---------- BELONGS TO REDUCED POTENTIAL VOLUME --------------- *------------- SPLITTING OF THE 2 DOMAINS ------------------ *--------------------IRON------------------------------------- * VOL1 = DPHI ET DPSI ; AA = DPHI POINT PLAN (0 0 0 ) ( 10 0 0 ) (0 0 10 ) .00001 ; AA = (AB ENVEL ) POINT DROITE (0 0 0 ) ( 10 0 0 ) .00001 ; deplacer vol1 tourner 90 ( 0 0 0 ) ( 1 0 0 ) ; * ORIG= SEP_PHI POINT PROCHE (29. 0 0 ) ; BANTI= SEP_PHI POINT PLAN (0. 0. 0.) (10. 0. 0.) (0. 10. 0.) .1 ; geomed = (dpsi et dphi ) point plan (0 0 0) ( 1 0 0) (0 1 0 ) .1 ; MU0 = 4. * PI * 1.E-4 ; RINT = 20. ;REXT =25. ; HAUT = 5. ; J = 800. ; C1 = 0. 0. 0. ; ZP1 = 20. 0. 0. ;ZP2 = 0. 20. 0. ; E = Z1 * 4 ; UNIT = M ; si ( ega UNIT M) ; MU0 = 4. * PI * 1.E-7 ; RINT = RINT/1000; REXT = REXT/1000 ; HAUT = HAUT/1000 ; ZP1 = ZP1/1000;ZP2 = ZP2 / 1000 ;J = J*1.E6 ; E = E /1000 ; finsi ; option echo 1 ; *------- *-- BIOT and SAVART COMPUTATION of Hs ON REDUCED POTENTIAL DOMAIN *------- HS = BS / MU0 ; SI (NEG GRAPH 'N') ; OEIL = 1000 1000 500 ; TITRE ' HS ON SEPARATION SURFACE ' ; VVVV = VECTEUR BS 1.e-3 'BX' 'BY' 'BZ' ROUG ; TRAC OEIL SEP_PHI VVVV ; FINSI ; *---------------- FILLING OF A TABLE ----------------------------- *-in this computation there is only one isotropic material but it * is shown how to coope with multi-material (even orthotropic ) *------------------------------------------------------------------ TABB= TABLE ; * * TABDEF = TABLE ; *----------------- isotropic material ----------------- STN = TABLE ; STN.'EV1' = KEVOL1 ; TABDEF.OBFER1 = STN ; *------------- orthotropic material ------------------- STN = TABLE ; DI1 = (0 1 0 ) ;DI2 = (1 0 1 ) ; STN.'EV1' = KEVOL1 ;STN.'DIR1' = DI1 ; STN.'EV2' = KEVOL2 ;STN.'DIR2' = DI2 ; TABDEF.OBFER2 = STN ; TABB.'TABNUSEC'= TABDEF; *---------------------------------------------------------------- *----------------- REDUCED POTENTIAL AREA ---------------- *--- TABB.'DPHI' = DPHI ; imet = 0 ; si (ega imet 1 ) ; RIGC1 = CONDUC MOD1 MAT1 ; TABB.'RIGCON' = RIGC1 ; finsi ; * TABB.'SEPPHI' = SEP_PHI ; TABB.'ORIG' = ORIG ; TABB.'MUAIR' = MU0; * *------------------- TOTAL POTENTIAL AREA -------------------- *--------- TABB.'DPSI' = DPSI ; si ( ega imet 1 ) ; RIGC2 = CONDUC MOD2 MAT2 ; TABB.'RIGCPSI' = RIGC2 ; finsi ; * TABB.'SEP_PSI' = SEP_PSI ; *------------------ GENERAL BOUBDARY CONDITIONS --------- TABB.'BLOQUE' = BLOQUER 'T' GEOMED ; * *------ BOUNDARY CONDITION LINKED TO POTENTIAL JUMP ------------ * TABA = TABLE ; STN = TABLE ;TABA.1 = STN ; STN.'LGEO' = BANTI ;STN.'MTYP' = 'TBLOQ' ; TABB.'POTSYM'= TABA ; TABB.ISTEP = 1 ; *-------------------- FIRST STEP POTENTIALS COMPUTATION ---------- POT_SCAL TABB 'SOLIN'; *------------------------------------------------------------------- SOL1= TABB.'POTENTIEL'; PREF= 0. 0. 0. ; *----------- FIELD COMPUTATION (B) ----------------------- BA= BA * -1. * MU0 ; option echo 0 ; SAUTER 5 LIGNES ; BTH = MU0 * J * (REXT - RINT ) * HAUT / E ; BCAL = BM + BS0 ; MESS ' COMPUTED ' BCAL ; ******************************************************************* SI (NEG GRAPH 'N' ) ; TABLEG= TABLE ;TATT = TABLE ; TABLEG.1 = 'MARQ CROI' ;TATT.1= 'B_COIL' ; TABLEG.3 = 'MARQ CARR' ;TATT.3= 'B_TOTAL ' ; TABLEG.TITRE = TATT ; TITRE ' BZ(R) for Z=0 ' ; FINSI ; RAP = ABS ((BCAL - BTH ) / BTH ); SI ( RAP > .01 ) ; ERREUR 5 ; FINSI ; *----------------------------------------------------------------- * NON LINEAR COMPUTATION *----------------------------------------------------------------- TABB.SOUSTYPE = THERMIQUE ; TABB.CRITERE =1.E-4 ; TABB.NITER =1; TABB.'OME'= .99 ; * ----------2 itérations only for the test ------------------------ TABB.ITERMAX=2; TABB.NIVEAU =1; *----------------------------------------------------------------- MAG_NLIN TABB ; *----------------------------------------------------------------- SOL2 = TABB.'POTENTIEL'; BA= BA * -1. * MU0 ; *--------------- ITEST = 1 ; SI ( EGA ITEST 1 ) ; MESS ' VERIFICATION AU CENTRE '; ***************************************************************** BAT = 1.9496 ; ******************************************************************* RAP = ABS ((BM - BAT ) / BAT ); SI ( RAP > .01 ) ; ERREUR 5 ; FINSI ; ******************************************************************* FIN ; FINSI ; *------------ *------ CONTINUATION TILL CONVERGENCE OR UP TO 100 ITERATION --- *---------- TABB.ITERMAX=100 ; *------------------------------------------------------------------ MAG_NLI3 TABB ; *------------------------------------------------------------------ SOL2 = TABB.'POTENTIEL'; BA= BA * -1. * MU0 ; BCAL = BM + BS0 ; MESS ' CHECK AT CENTER OF THE DEVICE '; MESS ' TOTAL BZ COMPUTED AT CENTER ' BCAL ; FIN;
© Cast3M 2003 - Tous droits réservés.
Mentions légales