Télécharger formation_debutant_3_mecanique.dgibi
		
* fichier : formation_debutant_3_mecanique.dgibi
*
*----------------------------------------------------------------------*
* FORMATION DEBUTER AVEC CAST3M - CALCULS THERMO-MECANIQUES *
* *
* Modelisation du comportement thermo-mecanique d'une piece trouee *
* *
* Ce fichier est la partie 3 sur 3 de la formation debutant a Cast3M *
* *
* Partie 3 : calculs mecaniques *
* restitution des objets *
* recuperation des zones maillees *
* elasticite lineaire, plasticite parfaite *
* chargement thermique *
* caracteristiques variables *
* *
*----------------------------------------------------------------------*
*----------------------------------------------------------------------*
* R E S T I T U T I O N D E S O B J E T S *
* *
* R E S T O R I N G T H E O B J E C T S *
*----------------------------------------------------------------------*
REST ;
itrac = FAUX ;
***OPTI 'TRAC' 'PSC' ;
*----------------------------------------------------------------------*
* P A R M E T R E S D E C A L C U L *
* *
* C A L C U L A T I O N P A R M E T E R S *
*----------------------------------------------------------------------*
** Parametres materiau / material parameters
you = 200.E9 ;
nu = 0.3 ;
alpha = 1.E-5 ;
sigy = 250.E6 ;
** Parametres des conditions limites et chargement /
* Parameters for boundary conditions and loading
mass1 = 2500. ;
*----------------------------------------------------------------------*
* Chapitre / Chapter 6 *
*----------------------------------------------------------------------*
* C A L C U L M E C A N I Q U E *
* elasticite *
* deplacements + forces surfaciques imposes *
* lineaire, quasi statique, materiau homogene *
* *
* M E C H A N I C H A L A N A L Y S I S *
* elasticity *
* imposed displacements + surface forces *
* linear, quasi static, homogeneous material *
*----------------------------------------------------------------------*
** Modele mecanique elastique / Elastic mechanical model
mam1 = MATE mom1 'YOUN' you 'NU' nu
'ALPH' alpha 'TREF' t0 'TALP' t0 ;
** Matrice de rigidite / Stifness matix
** Matrice de blocage / Boundary condition matrix
SI ipsc ;
FINSI ;
SI itrac ;
FINSI ;
** Plusieurs manieres de representer la masse suspendue /
* Several ways to represent the suspended mass
* 1) avec une force ponctuelle / with a single point force
SI ipsc ;
FINSI ;
SI itrac ;
FINSI ;
* 2) avec une pression (orthogonale a la surface) /
* with a pressure (orthogonal to the surface)
pres1 = mass1 * 9.81 / (pi * r * e) ;
SI itrac ;
FINSI ;
* 3) avec une force surfacique verticale /
* with a vertical surface force
SI itrac ;
FINSI ;
SI ipsc ;
FINSI ;
SI itrac ;
FINSI ;
** Resolution des 3 cas de chargement /
* Solving the 3 load cases
** Deformees / Deformed shapes
SI ipsc ;
FINSI ;
SI itrac ;
TRAC 'CACH' def61 ;
TRAC 'CACH' def62 ;
TRAC 'CACH' def63 ;
FINSI ;
SI itrac ;
FINSI ;
** Forces de reactions / Reaction forces
SI ipsc ;
FINSI ;
SI itrac ;
TRAC vrea63 are1 ;
FINSI ;
** Deformations / Strains
** Contraintes / Stresses
SI ipsc ;
FINSI ;
SI itrac ;
TRAC sig63 mom1 ;
FINSI ;
SI itrac ;
TRAC sig63 mom1 def63 are1 ;
FINSI ;
** Contraintes aux points de Gauss / Stresses at Gauss points
SI itrac ;
TRAC vm63 mom1 ;
FINSI ;
SI itrac ;
TRAC vm63g ;
FINSI ;
** Valeurs le long d'un bord /
* Values along an edge
SI ipsc ;
FINSI ;
SI itrac ;
DESS evs1 ;
FINSI ;
** Valeurs le long d'une ligne quelconque /
* Values along any line
lz = (0.4 * h * (SIN (lx * 3000.))) + (h / 2.) ;
SI itrac ;
FINSI ;
SI itrac ;
DESS evs3 ;
FINSI ;
*----------------------------------------------------------------------*
* Chapitre / Chapter 7. *
*----------------------------------------------------------------------*
* C A L C U L M E C A N I Q U E *
* elasticite + dilatation thermique *
* deplacements + forces surfaciques + temperatures imposes *
* lineaire, quasi statique, materiau homogene *
* *
* M E C H A N I C H A L A N A L Y S I S *
* elasticity + thermal expansion *
* imposed displacements + surface forces + temperatures *
* linear, quasi static, homogeneous material *
*----------------------------------------------------------------------*
** Increment de deformations thermiques /
* Thermal strain increment
temp1 = tab1 . 'TEMPERATURES' . (n1 - 1) ;
** Pseudo contraintes / Pseudo stresses
** Forces nodales eq. dilatation /
* Eq. nodal forces thermal expansion
** Resolution / Solving
** Deformee / Deformed shape
SI ipsc ;
FINSI ;
SI itrac ;
FINSI ;
** Contraintes / Stresses
epsel = epstot - epsth ;
SI ipsc ;
FINSI ;
SI itrac ;
TRAC sig7 mom1 are1 ;
FINSI ;
*----------------------------------------------------------------------*
* Chapitre / Chapter 8. *
*----------------------------------------------------------------------*
* C A L C U L M E C A N I Q U E *
* elasticite + dilatation thermique *
* deplacements + forces surfaciques + temperatures imposees *
* lineaire, quasi statique, materiau heterogene *
* *
* M E C H A N I C H A L A N A L Y S I S *
* elasticity + thermal expansion *
* imposed displacements + surface forces + temperatures *
* linear, quasi static, heterogeneous material *
*----------------------------------------------------------------------*
** Champ alpha(x) / Field alpha(x)
xmoy = l / 2. ;
xsig = l / 5. ;
* Champ par points / Point field
chealpha = alpha * (1. + (3. *
(EXP (-1. * (((x - xmoy) / xsig) ** 2))))) ;
SI ipsc ;
FINSI ;
SI itrac ;
TRAC chealpha mom1 are1 ;
FINSI ;
* Mise a jour des parmetres materiau /
* Updating the material parameters
mam1b = MATE mom1 'YOUN' you 'NU' nu
'ALPH' chealpha 'TREF' t0 'TALP' t0 ;
** Mise a jour chargement thermique / Updating thermal load
** Resolution / Solving
** Deformee / Deformed shape
SI ipsc ;
FINSI ;
SI itrac ;
FINSI ;
** Contraintes / Stresses
epsel = epstot - epsth ;
SI ipsc ;
FINSI ;
SI itrac ;
TRAC sig8 mom1 are1 ;
FINSI ;
*----------------------------------------------------------------------*
* Chapitre / Chapter 9.1 *
*----------------------------------------------------------------------*
* C A L C U L M E C A N I Q U E *
* elasto plasticite + dilatation thermique *
* deplacements + forces surfaciques + temperatures imposees *
* non lineaire, quasi statique, materiau heterogene *
* *
* M E C H A N I C H A L A N A L Y S I S *
* elasto plasticity + thermal expansion *
* imposed displacements + surface forces + temperatures *
* non linear, quasi static, heterogeneous material *
*----------------------------------------------------------------------*
** Nouveau modele mecanique / New mechanical model
chealpha = alpha * (1. + (3. *
(EXP (-1. * (((x - xmoy) / xsig) ** 2))))) ;
mam2 = MATE mom2 'YOUN' you 'NU' nu 'SIGY' sigy
'ALPH' chealpha 'TREF' t0 'TALP' t0 ;
** Descriptions temporelles des chargements /
* Time descriptions of the loads
* 1) Forces imposees / Imposed forces
* 2) Temperatures imposees / Imposed temperatures
ttemps . 0 = 0. ;
ttemps . 1 = 100. ;
ttimp . 0 = tab1 . 'TEMPERATURES' . 0 ;
ttimp . 1 = tab1 . 'TEMPERATURES' . (n1 - 1) ;
** Resolution avec la procedure PASAPAS /
* Solving with the PASAPAS procedure
tab2 . 'MODELE' = mom2 ;
tab2 . 'CARACTERISTIQUES' = mam2 ;
tab2 . 'BLOCAGES_MECANIQUES' = blm ;
tab2 . 'CHARGEMENT' = chamass ET chatemp ;
PASAPAS tab2 ;
** Post traitement / Post processing
* 1) Boucle : trace des contraintes a chaque instant /
* Loop: plotting the stresses for each time step
SI ipsc ;
FINSI ;
REPE b2 n2 ;
ui = tab2 . 'DEPLACEMENTS' . (&b2 - 1) ;
sigi = tab2 . 'CONTRAINTES' . (&b2 - 1) ;
SI itrac ;
FINSI ;
FIN b2 ;
* 2) Boucle : trace des variables internes a chaque instant /
* Loop: plotting the internal variables for each time step
SI ipsc ;
FINSI ;
REPE b2 n2 ;
ui = tab2 . 'DEPLACEMENTS' . (&b2 - 1) ;
epi = tab2 . 'VARIABLES_INTERNES' . (&b2 - 1) ;
SI itrac ;
FINSI ;
FIN b2 ;
*----------------------------------------------------------------------*
* Chapitre / Chapter 9.2 *
*----------------------------------------------------------------------*
* C A L C U L M E C A N I Q U E *
* elasto plasticite + dilatation thermique *
* deplacements + forces surfaciques + temperatures imposees *
* non lineaire, quasi statique, materiau heterogene *
* dependand de la temperature *
* *
* M E C H A N I C H A L A N A L Y S I S *
* elasto plasticity + thermal expansion *
* imposed displacements + surface forces + temperatures *
* non linear, quasi static, heterogeneous material *
* temperature dependent *
*----------------------------------------------------------------------*
** Evolution de SIGY selon T /
* Evolution of SIGY with T
SI ipsc ;
FINSI ;
SI itrac ;
DESS evsigy ;
FINSI ;
* Mise a jour des parmetres materiau /
* Updating the material parameters
mam2 = MATE mom2 'YOUN' you 'NU' nu 'SIGY' evsigy
'ALPH' chealpha 'TREF' t0 'TALP' t0 ;
** Resolution avec la procedure PASAPAS /
* Solving with the PASAPAS procedure
tab2 . 'MODELE' = mom2 ;
tab2 . 'CARACTERISTIQUES' = mam2 ;
tab2 . 'BLOCAGES_MECANIQUES' = blm ;
tab2 . 'CHARGEMENT' = chamass ET chatemp ;
PASAPAS tab2 ;
** Post traitement / Post processing
* 1) Boucle : trace des variables internes a chaque instant /
* Loop: plotting the internal variables for each time step
SI ipsc ;
FINSI ;
REPE b2 n2 ;
ui = tab2 . 'DEPLACEMENTS' . (&b2 - 1) ;
epi = tab2 . 'VARIABLES_INTERNES' . (&b2 - 1) ;
SI itrac ;
FINSI ;
FIN b2 ;
FIN ;
					© Cast3M 2003 - Tous droits réservés.
					Mentions légales