Professional Documents
Culture Documents
andrei.constantinescu@lms.polytechnique.fr delaplace@lmt.ens-cachan.fr
http://www-cast3m.cea.fr
Program lements finis Cration ~ 1980 CEA Tierry Charras, Alain Millard, Pierre Verpeaux + ...
open source
Cast3M - Philosophie
opti paramtres ; objet = oprateur objet objet ... ; paramtres: dimension space, messages, ... objet:
gometrie: maillage, point, ligne, surface, volume nombres: flottant, entier, ... listes logiques: vrai, faux champs: par lment: par noeud:
,
u
operateur:
....
repeter boucle nb_temps; Fn.n = F1; Q = Fn.n + (KM2*U1) - (KM1*U0); V = reso KM1 Q; Un.n = redu V bord; U0 = U1; U1 = V; n = n + 1; fin boucle;
Cast3M Programmation
Procedure = fonction, subroutine
debproc devi sig*mchaml; sxx sxy syy szz = = = = exco exco exco exco smxx smxy smyy smzz sig sig sig sig scal; scal; scal; scal;
trac = (1/3.) * (sxx + syy + szz); sxx syy szz = = = exco scal (sxx - trac) smxx; exco scal (syy - trac) smyy; exco scal (szz - trac) smzz;
opti sauv[er] 'my_file.dat'; sauv[er] object1 object2; opti rest[ituer] 'my_file.dat'; rest[ituer];
Save and recover mesh data (nodal coordinates and connectivities) -> see pdf document
Cast3M Pratique
installations et documentations:
... doc ... dgibi example.dgibi pdf ps html
Cast3M Pratique
% castem -m XL mon_fichier.dgibi ..... $ fin; % les fichiers cres: UTILPROC, UTILNOTI: contient info procdures fort.98: contient commandes exectues
Cast3M Pratique
syntaxe
72 charactres sur ligne maximum 7 ligne conscutives chaque commande finit avec ; pas de diffrence entre majuscules ABCD... = minuscules abcd ... sauf en MOTS: 'TOTO' =!= 'toto'
Cast3M Pratique
syntaxe algbre
a + b * c = ( a + b ) * c
en non
a + ( b * c )
simple
Deplacement impose
simple
opti dime 2 echo 1 elem myelem; ldom = 1.; r = 0.1; p1 p2 p3 p4 = = = = 0. 0.; ldom 0.; ldom ldom; 0. ldom;
p1
p 2
simple
nel_bis = -20;
p 4
p 3
d12 = droite nel_bis a2 p2 dini 0.002 dfin 0.15 ; d23 = droite nelem p2 p3; d34 = droite nelem p3 p4; d41 = droite nel_bis p4 a4 dini 0.15 dfin 0.002 ; bis = droite nel_bis a3 p3 dini 0.003 dfin 0.22 ; arc23 = cerc nelem a2 p1 a3; arc34 = cerc nelem a3 p1 a4;
p1
p 2
dom1 = dall d12 d23 (inve bis) (inve arc23); dom2 = dall (inve d41) (inve d34) (inve bis) arc34; dom = dom1 et dom2; trace dom;
simple
= dom mode mecanique elastique isotrope; = mod mate 'YOUN' 2.e11 'NU' 0.3;
p 4
p 3
mat
rig = rigi mod mat; cd12 = bloq uy d12; cd41 = bloq ux d41; cd34 = bloq uy d34; f34 = depi cd34 0.1; u = reso (rig et cd12 et cd41 et cd34) f34;
p1
p 2
simple
ux = exco ux u scal; uy = exco uy u scal; trace ux dom; trace (((ux*ux) + (uy*uy))**0.5) dom; eps = epsi mod u; sig = sigma mod mat u; trace mod sig;
p1
p 2
Cast3M Exercices I
Same geometry
change boundary conditions: applied forces forc[e] pressure pres[sion]: constant, varying
pass the compute the nodal values corresponding to the stress field using chan[ger] and plot using dess[iner] the evol[ution] on the hole boundary
start from the contour and mesh the plate using surf[ace] complete the plate through symetries: syme[trie] and turns (rotation): tour[ner] eliminate double nodes: elim[iner] apply boundary conditions, extract boundary nodes using poin[t] passage to 3D and shell elements opti dime 3;
Cast3M Exercices II
Other geometries Tube under pressure
Spatially varying material constants create an inclusion using coor[dinate] fields and masq[uer], transform the field from nodes to Gauss points using chan[ger]
Encastrated Displacements
mod_p
mat_p
= mode dom mecanique elastique isotrope plastique cinematique; = mate mod_p 'YOUN' 2.e11 'NU' 0.3 'SIGY' 200.e6 'H' 2.e9;
tt = prog 0. pas 5. 20.; a_ud34 = prog 0. 1. 0. -1. 0.; ev_ud34 = evol manu 'TEMPS' tt 'DIMP' a_ud34; dess ev_ud34; ch_ud34 = char 'DIMP' ud34 ev_ud34;
tabexp = table;
tabexp . 'MODELE' = mod_p; tabexp . 'CARACTERISTIQUES' = mat_p;
tabexp . 'BLOCAGES_MECANIQUES' = AA; tabexp . 'TEMPS_CALCULES' tabexp . 'CHARGEMENT' pasapas tabexp; = prog 0. pas 1. 20.; = ch_ud34;
opti donn 5;
deplacement = displacement contraintes = stress deformation = strain variable internes = internal variables deformation inelastiques = anelastic strain (example plastic)
Cast3M Exercices
Same geometry change hardening type (fr. ecrouissage), then constitive law mode[le], mate[riaux]
plot using the time stress curve, strain stress curve using evol[ution] extracting values at nodes or gauss points extr[aire] constructiong the lists with prog[rammer] and repe[ter]
create a subroutine (fr. procedure) using debp[rocedure] and finp[rocedure] to encapsulate the preceding commands