13.07.2015 Views

Simulation of the Effects of an Air Blast Wave - ELSA - Europa

Simulation of the Effects of an Air Blast Wave - ELSA - Europa

Simulation of the Effects of an Air Blast Wave - ELSA - Europa

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

lpyr2 = p1 d ppy3;lpyr3 = p1 d ppy4;lpyr4 = p1 d ppy5;pyra = m<strong>an</strong>u pyr5 p1 ppy5 ppy4 ppy3 ppy2;*Points <strong>of</strong> <strong>the</strong> explosivepe2 = (dex) (opex) (opex);pe3 = (dex) (0-opex) (opex);pe4 = (dex) (0-opex) (0-opex);pe5 = (dex) (opex) (0-opex);*defining <strong>the</strong> lines between <strong>the</strong> pyramid <strong>an</strong>d <strong>the</strong> explosivelpe1 = ppy2 d ppy3;lpe2 = ppy3 d ppy4;lpe3 = ppy4 d ppy5;lpe4 = ppy5 d ppy2;*defining <strong>the</strong> lines around explosiveDENS dexin;le1 = ppy2 d 'DINI' dexin 'DFIN' dexfi pe2;le2 = ppy3 d 'DINI' dexin 'DFIN' dexfi pe3;le3 = ppy4 d 'DINI' dexin 'DFIN' dexfi pe4;le4 = ppy5 d 'DINI' dexin 'DFIN' dexfi pe5;*defining <strong>the</strong> lines between <strong>the</strong> explosive <strong>an</strong>d <strong>the</strong> airDENS 100.;lea1 = pe2 d pe3;lea2 = pe3 d pe4;lea3 = pe4 d pe5;lea4 = pe5 d pe2;*defining <strong>the</strong> surfaces around <strong>the</strong> explosiveae1=dall lpe1 le1 lea1 le2;ae2=dall lpe2 le2 lea2 le3;ae3=dall lpe3 le3 lea3 le4;ae4=dall lpe4 le4 lea4 le1;ae5=dall lpe1 lpe2 lpe3 lpe4;ae6=dall lea1 lea2 lea3 lea4;*defining <strong>the</strong> surfaces around <strong>the</strong> pyramideapyr1 = surf (lpyr1 et lpyr2 et lpe1) pl<strong>an</strong>e;apyr2 = surf (lpyr2 et lpyr3 et lpe2) pl<strong>an</strong>e;apyr3 = surf (lpyr3 et lpyr4 et lpe3) pl<strong>an</strong>e;apyr4 = surf (lpyr4 et lpyr1 et lpe4) pl<strong>an</strong>e;apyrsum = (apyr1 et apyr2 et apyr3 et apyr4 et ae6);elim 1e-10 apyrsum;*defining <strong>the</strong> volume <strong>of</strong> <strong>the</strong> explosivegeomex= (ae1 et ae2 et ae3 et ae4 et ae5 et ae6) coul roug;elim 1e-10 (geomex);vex = (geomex) volu;vex1=vex;*Points for <strong>the</strong> controllfp1 = vex1 poin proche (0.1 0 0);pp0 = fp1 et fp1;REPE I0 (NBEL vex1);TEST0 = pp0 INCL (vex1 ELEM CUB8 &I0) 'VOLU';SI ((NBEL TEST0)> 0);quit I0;FINS;FIN I0;MESS &I0;fe1 = vex1 elem CUB8 &I0;*lines for <strong>the</strong> output <strong>of</strong> <strong>the</strong> pressurevges = (vex1);nxpl = pxpdroi1 vges p1 (p1 plus pe2) 2e-5;nxpl = pxordpoi nxpl p1;*areas on <strong>the</strong> sidesasum1 = (apyr1 et ae1);asum2 = (apyr2 et ae2);asum3 = (apyr3 et ae3);asum4 = (apyr4 et ae4);asum = (asum1 et asum2 et asum3 et asum4);geom_new = (vex1 et pyra et nxpl et fe1 et asum);TASS geom_new;OPTI sauv form 'explosiveX.msh';sauv form geom_new;cv8.dgibi* Construction d'une sphere a partir d'un cube* control volume modelopti donn 'D:\Users\larchma\cast3m\pxpdroi1.procedur';opti donn 'D:\Users\larchma\cast3m\pxordpoi.procedur';opti dime 3 elem cub8;*Nombre de bissectionsnel0 = 30;sizeex = 1.0;sizeai = 4.0;*Cote du cube intermediairer0 = .25;dini = 3.141*sizeex/(4.*nel0);dfin = 3.141*sizeai/(4.*nel0);*Referenceo0 = 0. 0. 0.;x0 = (sizeex) 0. 0.;xa0 = 0 (sizeex) (sizeex);xb0 = (sizeex) (sizeex) (sizeex);xc0 = (sizeex) 0 (sizeex);xd0 = 0 0 (sizeex);y0 = 0. (sizeex) 0.;z0 = 0. 0. (sizeex);x1 = (sizeai) 0. 0.;y1 = 0. (sizeai) 0.;z1 = 0. 0. (sizeai);c0 = x0 plus y0 plus z0 / 2.;c1 = x1 plus y1 plus z1 / 2.;symp1 = (sizeex/2.) (sizeex/2.) (sizeex/2.);symp2 = (sizeai/2.) (sizeai/2.) (sizeai/2.);*Cube intermediaire (centre=o0 et arete=r0)cub0 = (o0 droi nel0 y0 tr<strong>an</strong> nel0 x0)et (o0 droi nel0 z0 tr<strong>an</strong> nel0 y0) et(o0 droi nel0 x0 tr<strong>an</strong> nel0 z0)syme 'POINT' symp1 homo o0 r0;cub2 = (o0 droi nel0 y1 tr<strong>an</strong> nel0 x1)et (o0 droi nel0 z1 tr<strong>an</strong> nel0 y1) et(o0 droi nel0 x1 tr<strong>an</strong> nel0 z1)syme 'POINT' symp2;*Pojection sur la sphere de rayon unitairespe1 = cub0 proj 'CONI' o0 'SPHE' o0 x0;spe2 = cub2 proj 'CONI' o0 'SPHE' o0 x1;a_press = spe1 coul 'BLEU';*Remplissageair1 = spe1 volu 'DINI' dini 'DFIN' dfin spe2 coul bleu;ages = enve air1;a_abso = ages diff a_press;*Points for <strong>the</strong> controllnxp1 = pxpdroi1 air1 x0 (x0 plus x1) 0.0005;nxp1 = pxordpoi nxp1 x0;81

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!