Starting With Cast3M
Starting With Cast3M
THERMOMECHANICAL CALCULATIONS
AVAILABLE ON: HTTP://WWW-CAST3M.CEA.FR/INDEX.PHP?XML=FORMATIONS
Introduction to Cast3M
Gibiane language
Tutorial class
thermo-mechanical behavior of a plate with a hole
Complements
Objects in Gibiane
PAGE 2
INTRODUCTION TO CAST3M
WHAT IS CAST3M?
PAGE 4
HISTORY
AQUAMODE
1970 CEASEMT: package of dedicated software:
COCO (mesh), ESPACE, TEMPS, VISU (post-processing), TRICO INCA
SANSON (eq. properties) COCO
TEDEL (beams, pipes), TRICO (shells), BILBO (solids) ESPACE SANSON
PASTEL (2D, plasticity) INCA TEMPS VISU
PAGE 5
MODELLING OF NUMEROUS PHYSICAL PHENOMENA
Structural mechanics
Quasi-static (non-linear materials, geometries, boundary conditions )
Contact/friction
Buckling
Dynamics (temporal, modal, fluid/structure interaction)
Fracture mechanics (XFEM, dynamic propagation, cohesive zone model)
Thermal calculations
Conduction, convection, radiation, phase change
Fluid mechanics
Magneto statics
Multi species diffusion (Fick’s Law)
Thermo-hydro-mechanical coupling
PAGE 6
GENERAL COMMENTS (1/2)
PAGE 7
GENERAL COMMENTS (2/2)
Collaborative development
Everyone can propose developments/bug fixes to be integrated to the
Cast3M standard version
PAGE 8
HOW TO LAUNCH CAST3M?
Open a terminal
Go to the working directory
here are some basic Linux commands:
ls list present files
cd foo/bar change directory
pwd print the name of the current working directory
Cast3M presentation
Downloads
PAGE 10
GIBIANE: THE USER LANGAGE
INTRODUCTION TO GIBIANE
Interpreted language
You can run the program as soon as you make changes to the file
You can run it in a interactive mode
Object-oriented language
Everything in the program is treated as an object
No need to declare variables or to specify the type of a variable
French key words
Easy to learn, easy to read PAGE 12
GIBIANE: SYNTAX
Statements lines
500 characters max per statement
A statement can be written on several lines
End with a semicolon ;
The assignment operator is the equals sign =
Older versions (< 2018): 72 characters by line!!!
Case insensitive
TOTO = 3.14 ;
A = 2. * tOTo ; variable A has the value of 6.28
excepted characters strings 'blabla' ≠ 'BLABLA'
enclosed by single quotes mot1 = 'Hello bro' ;
Program ends
with statement FIN ; Cast3M stop
empty line or EOF interactive mode
A * in the first column means that the rest of the line is a comment
Prohibitions
No tab key incomprehensible error message
No double quotes "
Guidelines
No special characters (é, ç, ~, œ …)
Use line indentation
Adjust the text editor
syntax highlighting, switch tabulations by spaces,…
Common traps
Semicolon ; forgotten at the end of the statement
the statement is not ended
Introduce a single quote in a string
indicates the string end
PAGE 14
GIBIANE: OBJECTS
Definition
Any data/result with a defined type (possibly a sub-type) and name
Objects Names
User Defined
Limited to 8 characters chosen in:
letters a to z or A to Z, digits (0 to 9) and underscore ( _ )
Traps
more than 8 characters: additional characters ignored
dash sign – not allowed
letters with accents: é, è not allowed
Objects types
There are more than 40 types of objects
A detailed list of the most often used objects is given at the end of the
presentation (link)
PAGE 15
GIBIANE: OBJECTS
PAGE 16
GIBIANE: OPERATORS
Definition
Any processing with a name (Gibiane instruction) that creates new
object(s) from pre-existing object(s)
Operators Names
Pre-defined
These are Gibiane instructions
Case insensitive
Only the four first characters are necessary and taken into account
(DROITE = DROI)
Excepted abbreviations
DROIT D (or d)
CERCLE C (or c)
PAGE 17
GIBIANE: OPERATORS
PAGE 18
GIBIANE: OPERATORS
Arguments order
do not matters if arguments have different types
(with a few exceptions pointed in the manual)
matters if same type arguments
Overwriting an object
Always possible, the overwritten object does not exists any longer
A = ‘Hello' ; A has type MOT
B = 28 ;
C = 3 ;
A = B**C ; A has type ENTIER, its value is 21952
Traps
Object name = operator name operator cannot be called
excepted if you call it with quotes
A = 'OPER' B C ;
in upper case!
Objet name c, C, d or D ! PAGE 19
GIBIANE: DIRECTIVES
Definition
Statement without assignment operator =
Does not create a new object
Examples
OPTI 'DIME' 3 'ELEM' 'CUB8' ;
OPTI 'TITR' 'Meshing of the structure' ;
DEPL mail1 'PLUS' (28. -0.3 20.03) ;
Examples:
space dimension (1 to 3), elements type, mesh size,
output file name, axial symmetry hypothesis, and others…
PAGE 20
GIBIANE: PROCEDURES
Definition
Set of Gibiane statements having a name with input and output
arguments
Similar to Fortran subroutine or a C function
Procedures names
As other objects (a procedure is an object with PROCEDUR type)
Declaration
DEBP my_proc arg_e1*entier arg_e2*flottant ... arg_en*mchaml ;
statement 1 ;
statement 2 ;
...
statement k ;
FINP arg_s1 arg_s2 ... arg_sm ;
PAGE 21
GIBIANE: PROCEDURES
Calling
As an operator or directive
obj1 obj2 ... objm = my_proc ent1 flot2 ... champn ;
PAGE 22
GIBIANE: PROCEDURES
Traps
FINP missing
Cast3M stops, error message that can be misunderstood
FINP existing but missing ;
Cast3M stops, error message that can be misunderstood
Procedure called before it is declared
Cast3M stops, error message in the = operator difficult to
interpret
PAGE 23
GIBIANE: SOME USEFUL STATEMENTS
Debugging
INFO OPER ; OPTI 'LANG' 'ANGL' ;
print the manual page of a operator/directive/procedure
OPTI 'DONN' 5 ;
stop to run the file .dgibi
run from scream: interactive prompt
OPTI 'DONN' 3 ;
return to run the file .dgibi (from where it stops previously)
LIST OBJ1 ;
print information about the object OBJ1
LIST 'RESU' OBJ1 ;
printing is reduced to the headings
OPTI 'DEBU' 1 ;
stop on a error inside a procedure
TRAC OBJ1 (OBJ2) ;
plot an object (mesh, iso-values of fields, deformed mesh, …)
MESS 'Here I am!' ;
print a message
PAGE 24
DOCUMENTATION
PAGE 25
TUTORIAL CLASSES
Thermal
Uniform strength Radiation
Mechanical
Prescribed Convection
heat flux
Prescribed
temperature
PAGE 28
SOLUTION FILES
formation_debutant_1_maillage.dgibi
formation_debutant_2_thermique.dgibi
formation_debutant_3_mecanique.dgibi
PAGE 29
CHAP. 1: GEOMETRY AND MESH
nhaut
haut
nbasg nbasd
X
O PAGE 30
long
CHAP. 1: MESHING AND GENERAL STATEMENTS
NLONG = 24 ;
NHAUT = 4 ;
nhaut
NBASG = 10 ;
haut
NBASD = 10 ;
NQCG = 8 ;
NQCD = 8 ;
nbasg nbasd
O X
long
PAGE 31
New objects ENTIER, FLOTTANT, MOT
CHAP. 1: MESHING AND GENERAL STATEMENTS
Points creation
* CREATION OF POINTS SUPPORTING THE MESH
PA = 0. 0. ; PG PF
PB = ((0.5 * LONG) – RAYON) 0. ;
PC = (0.5 * LONG) RAYON ;
PD = ((0.5 * LONG) + RAYON) 0. ;
PE = LONG 0. ;
PF = LONG HAUT ;
PG = 0. HAUT ; PC
PCEN = (0.5 * LONG) 0. ;
PCEN
PA PB PD PE
PAGE 32
new object POINT
CHAP. 1: MESHING AND GENERAL STATEMENTS
PAGE 33
new object MAILLAGE
CHAP. 1: MESHING AND GENERAL STATEMENTS
LIEF
LIGA
* CONSTRUCTION OF CIRCLES (CERC or C)
CE
PAGE 34
CHAP. 1: MESHING AND GENERAL STATEMENTS
PAGE 35
CHAP. 1: MESHING AND GENERAL STATEMENTS
PAGE 36
CHAP. 1: MESHING AND GENERAL STATEMENTS
PG PH PF
nhaut
PC
PAGE 38
CHAP. 1: MESHING AND GENERAL STATEMENTS
TRAC SU ;
PAGE 39
CHAP. 1: MESHING AND GENERAL STATEMENTS
all SU nodes distant less than 10-9 m are merged in single one
does not change the element type
directive to use carefully !
PAGE 41
CHAP. 1: MESHING AND GENERAL STATEMENTS
CSU = CONT SU ;
PAGE 42
[BONUS] 3D MESHING
* DISPLAYING
TRAC VO ;
TRAC 'CACH' VO ;
OPTI 'TRAC' 'OPEN' ;
TRAC 'CACH' VO ;
* BACK TO DIMENSON 2
OPTI 'DIME' 2 ;
PAGE 43
CHAP. 1: MESHING AND GENERAL STATEMENTS
PAGE 44
CHAP. 2: STATIONARY LINEAR THERMAL ANALYSIS
Linear system: Λ 𝜃 = Φ
250 °C
PAGE 45
CHAP. 2: STATIONARY LINEAR THERMAL ANALYSIS
PAGE 46
CHAP. 2: STATIONARY LINEAR THERMAL ANALYSIS
Mathematical formulation
* MATERIAL PROPERTIES
CONDUMAT = 210. ;
CAPAMAT = 900. ;
RHOMAT = 2700. ;
PAGE 47
new objects MMODEL, MCHAML, RIGIDITE
CHAP. 2: STATIONARY LINEAR THERMAL ANALYSIS
Boundary conditions
* BOUNDARY CONDITIONS: PRESCRIBED TEMPERATURE ON THE HOLE
BLT = BLOQ CE 'T' ;
PAGE 48
new object CHPOINT
CHAP. 2: STATIONARY LINEAR THERMAL ANALYSIS
Results display
* DISPLAY THE TEMPERATURE FIELD
TRAC TCON1 SU ;
PAGE 49
CHAP. 2: STATIONARY LINEAR THERMAL ANALYSIS
Results display
* DISPLAY THE TEMPERATURE FIELD
PAGE 50
CHAP. 2: STATIONARY LINEAR THERMAL ANALYSIS
Results display
* DISPLAY THE TEMPERATURE FIELD
LISO1 = PROG 0. 'PAS' (TMAX / 15.) TMAX ;
TRAC TCON1 SU CSU LISO1 ;
PAGE 51
CHAP. 2: STATIONARY LINEAR THERMAL ANALYSIS
Results display
* DISPLAY THE TEMPERATURE FIELD
PAGE 52
NOTE: THE NODAL FIELD (CHPOINT)
Some characteristics:
only one value per node
do not depends on the mesh, only on nodes!
when plotted, the field is continuous on the mesh
PAGE 53
NOTE: THE ELEMENT FIELD (MCHAML)
Some characteristics:
several support points available:
integration points for stresses
integration points for stiffness
integration points for mass
center of gravity
nodes
interpolation functions depends on the model
non continuous between elements
PAGE 54
CHAP. 3: TRANSIENT LINEAR THERMAL ANALYSIS
PASAPAS
250 °C
PAGE 55
CHAP. 3: TRANSIENT LINEAR THERMAL ANALYSIS
PASAPAS
Initial conditions
* FINAL TIME OF THE THERMAL CALCULATION
TPSFIN = 5.E4 ;
* INITIAL TEMPERATURE (UNIFORM)
T0 = 25. ;
T_INI = MANU 'CHPO' 1 SU 'T' T0 ;
PAGE 56
new objects EVOLUTIOn and CHARGEMEnt
CHAP. 3: TRANSIENT LINEAR THERMAL ANALYSIS
PASAPAS
TAB1 = TABL ;
TAB1 . 'MODELE' = MOT ;
TAB1 . 'CARACTERISTIQUES' = MAT ;
TAB1 . 'BLOCAGES_THERMIQUES' = BLT ;
TAB1 . 'CHARGEMENT' = CHT ;
TAB1 . 'TEMPS_CALCULES' = PROG 0. 'PAS' (0.02 * TPSFIN) TPSFIN ;
TAB1 . 'TEMPERATURES' = TABL ;
TAB1 . 'TEMPERATURES' . 0 = T_INI ;
PAGE 57
new object TABLE
CHAP. 3: TRANSIENT LINEAR THERMAL ANALYSIS
PASAPAS
PAGE 58
CHAP. 3: TRANSIENT LINEAR THERMAL ANALYSIS
PASAPAS
PAGE 59
CHAP. 3: TRANSIENT LINEAR THERMAL ANALYSIS
PASAPAS
PAGE 60
new objects PROCEDURe, LISTMOTS, VECTEUR
CHAP. 3: TRANSIENT LINEAR THERMAL ANALYSIS
PASAPAS
PAGE 61
new object LOGIQUE
CHAP. 3: TRANSIENT LINEAR THERMAL ANALYSIS
PASAPAS
PAGE 62
CHAP. 3: TRANSIENT LINEAR THERMAL ANALYSIS
PASAPAS
PAGE 63
CHAP. 4: TRANSIENT NON-LINEAR THERMAL ANALYSIS
CONVECTION, RADIATION, PASAPAS
T∞ = 25 °C
ε = 0.8
250 °C
PAGE 64
CHAP. 4: TRANSIENT NON-LINEAR THERMAL ANALYSIS
CONVECTION, RADIATION, PASAPAS
PAGE 66
CHAP. 4: TRANSIENT NON-LINEAR THERMAL ANALYSIS
CONVECTION, RADIATION, PASAPAS
PAGE 67
CHAP. 4: TRANSIENT NON-LINEAR THERMAL ANALYSIS
CONVECTION, RADIATION, PASAPAS
Post processing
* RE-DEFINITION OF TABLE TAB1 FOR PASAPAS PROCEDURE
TAB1 = TABL ;
TAB1 . 'MODELE' = MOT ET MOC ET MOR ;
TAB1 . 'CARACTERISTIQUES' = MAT ET MAC ET MAR ;
TAB1 . 'BLOCAGES_THERMIQUES' = BLT ;
TAB1 . 'CHARGEMENT' = CHT ET CHACONV ET CHARAYE ;
TAB1 . 'TEMPS_CALCULES' = PROG 0. 'PAS' (0.02 * TPSFIN) TPSFIN ;
TAB1 . 'TEMPERATURES' = TABL ;
TAB1 . 'TEMPERATURES' . 0 = T_INI ;
TAB1 . 'CELSIUS' = VRAI ;
PAGE 68
CHAP. 4: TRANSIENT NON-LINEAR THERMAL ANALYSIS
CONVECTION, RADIATION, PASAPAS
Post processing
* LOCAL TEMPERATURE A FUNCTION OF TIME
PAGE 69
CHAP. 4: TRANSIENT NON-LINEAR THERMAL ANALYSIS
CONVECTION, RADIATION, PASAPAS
Post processing
* LOCAL TEMPERATURE AS A FUNCTION OF TIME
EV11 = EVOL 'ROUG' 'TEMP' TAB1 'TEMPERATURES' 'T' PMIL ;
EV22 = EVOL 'BLEU' 'TEMP' TAB1 'TEMPERATURES' 'T' PG ;
TL = TABL ;
TL . 1 = 'TIRR' ;
TL . 2 = 'TIRR' ;
TL . 'TITRE' = TABL ;
TL . 'TITRE' . 1 = 'PMIL cond only' ;
TL . 'TITRE' . 2 = 'PG cond only' ;
TL . 'TITRE' . 3 = 'PMIL cond+conv+rad' ;
TL . 'TITRE' . 4 = 'PG cond+conv+rad' ;
DESS (EV1 ET EV2 ET EV11 ET EV22) 'LEGE' TL ;
PAGE 70
CHAP. 4: TRANSIENT NON-LINEAR THERMAL ANALYSIS
CONVECTION, RADIATION, PASAPAS
FIN ;
PAGE 71
CHAP. 5: ELASTIC MECHANICAL ANALYSIS
Linear system: 𝐾 𝑢 = 𝐹
1. stiffness matrix calculation 𝐾 (1st member)
2. nodal forces calculation 𝐹 (2nd member)
3. solving with RESO displacements 𝑢 (unknown)
σ = 100 MPa
Ux = 0 Uy = 0 PAGE 72
CHAP. 5: ELASTIC MECHANICAL ANALYSIS
PAGE 74
CHAP. 5: ELASTIC MECHANICAL ANALYSIS
PAGE 75
CHAP. 5: ELASTIC MECHANICAL ANALYSIS
PAGE 76
new object DEFORMEE
CHAP. 5: ELASTIC MECHANICAL ANALYSIS
PAGE 77
new object DEFORMEE
CHAP. 5: ELASTIC MECHANICAL ANALYSIS
PAGE 78
CHAP. 5: ELASTIC MECHANICAL ANALYSIS
PAGE 79
CHAP. 5: ELASTIC MECHANICAL ANALYSIS
PAGE 80
CHAP. 5: ELASTIC MECHANICAL ANALYSIS
PAGE 81
CHAP. 5: ELASTIC MECHANICAL ANALYSIS
PAGE 82
CHAP. 5: ELASTIC MECHANICAL ANALYSIS
PAGE 83
CHAP. 5: ELASTIC MECHANICAL ANALYSIS
PAGE 84
CHAP. 5: ELASTIC MECHANICAL ANALYSIS
PAGE 85
CHAP. 5: ELASTIC MECHANICAL ANALYSIS
* RESOLUTION
U52 = RESO RITOT2 TR2 ;
* POST PROCESSING
DEF_5C2 = DEFO CSU U52 150. 'VERT' ;
TRAC (DEF_INIC ET DEF_5C ET DEF_5C2) ;
PAGE 86
CHAP. 6: LINEAR ELASTICITY
THERMAL LOADING
PAGE 87
CHAP. 6: LINEAR ELASTICITY
THERMAL LOADING
PAGE 88
CHAP. 6: LINEAR ELASTICITY
THERMAL LOADING
PAGE 89
CHAP. 6: LINEAR ELASTICITY
THERMAL LOADING
PAGE 90
CHAP. 6: LINEAR ELASTICITY
THERMAL LOADING
PAGE 91
CHAP. 6: LINEAR ELASTICITY
THERMAL LOADING
* ELASTIC STRAINS
EPE = (It's up to you)
PAGE 92
CHAP. 6: LINEAR ELASTICITY
THERMAL LOADING
* ELASTIC STRAINS
EPE = EP - EPT ;
PAGE 93
CHAP. 7: LINEAR ELASTICITY
THERMAL LOADING, NON UNIFORM PROPERTIES
𝑥 − 𝑥mean
3 α0
α 𝑥 = α0 1+β
𝑥max − 𝑥min
x
xmin xmean xmax
PAGE 94
CHAP. 7: LINEAR ELASTICITY
THERMAL LOADING, NON UNIFORM PROPERTIES
BETA = 7. ;
CHP_ALPH = ALPHAMAT * (1. + (BETA * (((XX - XMOY) / (XMAX - XMIN)) ** 3))) ;
PAGE 95
CHAP. 7: LINEAR ELASTICITY
THERMAL LOADING, NON UNIFORM PROPERTIES
PAGE 96
CHAP. 7: LINEAR ELASTICITY
THERMAL LOADING, NON UNIFORM PROPERTIES
PAGE 97
CHAP. 7: LINEAR ELASTICITY
THERMAL LOADING, NON UNIFORM PROPERTIES
PAGE 98
CHAP. 7: LINEAR ELASTICITY
THERMAL LOADING, NON UNIFORM PROPERTIES
PAGE 99
CHAP. 7: LINEAR ELASTICITY
THERMAL LOADING, NON UNIFORM PROPERTIES
PAGE 100
CHAP. 8: ELASTO-PLASTIC MECHANICAL ANALYSIS
THERMAL LOADING, NON UNIFORM PROPERTIES, PASAPAS
σ
σY
E
ε PAGE 101
CHAP. 8: ELASTO-PLASTIC MECHANICAL ANALYSIS
THERMAL LOADING, NON UNIFORM PROPERTIES , PASAPAS
PAGE 102
CHAP. 8: ELASTO-PLASTIC MECHANICAL ANALYSIS
THERMAL LOADING, NON UNIFORM PROPERTIES , PASAPAS
………
………
………
(It's up to you)
………
………
………
PASAPAS TAB2 ;
PAGE 103
CHAP. 8: ELASTO-PLASTIC MECHANICAL ANALYSIS
THERMAL LOADING, NON UNIFORM PROPERTIES , PASAPAS
PAGE 104
CHAP. 8: ELASTO-PLASTIC MECHANICAL ANALYSIS
THERMAL LOADING, NON UNIFORM PROPERTIES , PASAPAS
PAGE 105
CHAP. 8: ELASTO-PLASTIC MECHANICAL ANALYSIS
THERMAL LOADING, NON UNIFORM PROPERTIES , PASAPAS
PAGE 106
CHAP. 8: ELASTO-PLASTIC MECHANICAL ANALYSIS
THERMAL LOADING, NON UNIFORM PROPERTIES , PASAPAS
Post-processing: stresses
* LOOP ON EACH TIME STEP
LISO2 = PROG 0. 'PAS' 10.E6 160.E6 ;
REPE B1 N2 ;
U_I = TAB2 . 'DEPLACEMENTS' . (&B1 - 1) ;
DEF_I = DEFO SU U_I 150. ;
S_I = TAB2 . 'CONTRAINTES' . (&B1 - 1) ;
TRAC S_I MOM2 DEF_I CSU LISO2 ;
FIN B1 ;
PAGE 107
CHAP. 8: ELASTO-PLASTIC MECHANICAL ANALYSIS
THERMAL LOADING, NON UNIFORM PROPERTIES , PASAPAS
PAGE 108
CHAP. 9: ELASTO-PLASTIC MECHANICAL ANALYSIS
THERMAL LOADING, VARIABLE PROPERTIES (X,T), PASAPAS
σY
300 MPa
100 MPa
T
50 °C 200 °C PAGE 109
CHAP. 9: ELASTO-PLASTIC MECHANICAL ANALYSIS
THERMAL LOADING, VARIABLE PROPERTIES (X,T), PASAPAS
PASAPAS call
(It's up to you)
PAGE 110
CHAP. 9: ELASTO-PLASTIC MECHANICAL ANALYSIS
THERMAL LOADING, VARIABLE PROPERTIES (X,T), PASAPAS
PASAPAS call
TAB2 = TABL ;
TAB2 . 'MODELE' = MOT ET MOC ET MOR ET MOM2 ;
TAB2 . 'CARACTERISTIQUES' = MAT ET MAC ET MAR ET MAM2 ;
TAB2 . 'BLOCAGES_MECANIQUES' = BLMX ET BLMY ;
TAB2 . 'BLOCAGES_THERMIQUES' = BLT ;
TAB2 . 'CHARGEMENT' = CHT ET CHACONV ET CHARAYE ET CHM ;
TAB2 . 'TEMPS_CALCULES' = PROG 0. 'PAS' (0.02 * TPSFIN) (0.98 * TPSFIN)
'PAS' (0.001 * TPSFIN) TPSFIN ;
TAB2 . 'TEMPERATURES' = TABL ;
TAB2 . 'TEMPERATURES' . 0 = T_INI ;
TAB2 . 'CELSIUS' = VRAI ;
PASAPAS TAB2 ;
PAGE 111
CHAP. 9: ELASTO-PLASTIC MECHANICAL ANALYSIS
THERMAL LOADING, VARIABLE PROPERTIES (X,T), PASAPAS
PAGE 112
CHAP. 9: ELASTO-PLASTIC MECHANICAL ANALYSIS
THERMAL LOADING, VARIABLE PROPERTIES (X,T), PASAPAS
PAGE 113
ADDENDA
TRUSS, BEAM, SHELL, JOINT … F.E.
PAGE 117
READING / WRITING DATA
PAGE 118
READING / WRITING DATA
PAGE 120
READING / WRITING DATA
PAGE 122
DEVELOPMENT: ESOPE SOURCES
Linking
essaicast19
creation of a binary executable file : cast_64_19
local version of Cast3M
PAGE 123
AND TO COMPLETE
Subscription to the Cast3M mailing list (see the Cast3M web site)
Send an e-mail at [email protected] with in the message frame:
SUB cast3m-util your_name your_firstname
PAGE 124
PLANE LINEAR THERMAL ELASTICITY
(1) EQUATIONS
𝜕𝑢
Displacements gradient ന = 𝐆𝐫𝐚𝐝 𝑢ത
𝐻 𝐻𝑖𝑗 = 𝜕𝑥𝑖 = 𝑢𝑖,𝑗
𝑖
1
Total strains (Green Lagrange) ന+𝐻
𝜀Ӗ = 2 𝐻 ന𝑻 + 𝐻
ന𝑻 . 𝐻
ന
with: 𝑢ത displacement
𝜀Ӗ total strain 𝜎ധ stress
𝜀 𝑒Ӗ elastic strain 𝜀 Ӗ𝑡ℎ thermal strain
𝛿Ӗ identity tensor
C stiffness tensor (4th order)
𝛼 thermal expansion
∆𝑇 temperature increment
PAGE 125
PLANE LINEAR THERMAL ELASTICITY
(2) PLANE STRESSES
Vector notation:
𝜎11 𝜀11 𝜈
with: 𝜀33 = − 𝜀11 + 𝜀22
𝜎 = 𝜎22 𝜀 = 𝜀22 𝐸
3 independent components
𝜎12 2𝜀12
Hooke's law:
𝜎11 1 𝜈 0 𝜀11
𝐸 𝜈 1 0
𝜎22 = 𝜀22
1 − 𝜈2 1−𝜈
𝜎12 0 0 2𝜀12
2
𝜎 = 𝐶 𝜀 𝐶 stiffness matrix
PAGE 126
PLANE LINEAR THERMAL ELASTICITY
(3) FINITE ELEMENTS
𝑞1𝐵
Interpolation of primal unknowns: 𝑞2𝐵
B
𝑢(𝑥) = 𝑁(𝑥) 𝑞
at each point (𝑥, 𝑦) in the element A
𝑞1𝐴 C 𝑞1𝐶
𝑞 are the displacements of the element nodes
𝑞2𝐴 𝑞2𝐶
Assembly:
𝑄 nodes displacements (global mesh)
1 𝑇
1 𝑇 The 𝑘𝑒 matrices are extended on all dof
𝐸𝑑𝑒𝑓 = 𝑄 𝑘𝑒 𝑄 = 𝑄 𝐾 𝑄
2 2 with null items
𝑒 𝐾 assembly stiffness matrix
PAGE 128
PLANE LINEAR THERMAL ELASTICITY
(5) PRINCIPLE OF VIRTUAL WORK
ധ 𝛿 𝜀 ∗Ӗ 𝑑𝑉 = න 𝑓ഥ𝑣 𝛿 𝑢ത ∗ 𝑑𝑉 + න 𝑓ഥ𝑠 𝛿 𝑢ത ∗ 𝑑𝑆
න 𝜎:
𝑉𝑒 𝑉𝑒 𝑆𝑒
න 𝛿𝜀 ∗ 𝑇 𝜎 𝑑𝑉 = න 𝛿𝑢∗ 𝑇 𝑓𝑣 𝑑𝑉 + න 𝛿𝑢∗ 𝑇 𝑓𝑠 𝑑𝑆
𝑉𝑒 𝑉𝑒 𝑆𝑒
𝛿𝑞 ∗ 𝑇
න 𝐵 𝑇
𝜎 𝑑𝑉 = 𝛿𝑞 ∗ 𝑇
න 𝑁 𝑇
𝑓𝑣 𝑑𝑉 + න 𝑁 𝑇
𝑓𝑠 𝑑𝑆
𝑉𝑒 𝑉𝑒 𝑆𝑒
𝑇 𝑇 𝑇
න 𝐵 𝐶 𝐵 𝑑𝑉 𝑞 = න 𝑁 𝑓𝑣 𝑑𝑉 + න 𝑁 𝑓𝑠 𝑑𝑆
𝑉𝑒 𝑉𝑒 𝑆𝑒
𝑘𝑒 𝐹𝑒
PAGE 129
PLANE LINEAR THERMAL ELASTICITY
(6) THERMAL LOAD
න 𝐵 𝑇 𝜎 𝑑𝑉 = 𝐹𝑒
𝑉𝑒
න 𝐵 𝑇 𝐶 𝜀 − 𝜀 𝑡ℎ 𝑑𝑉 = 𝐹𝑒
𝑉𝑒
න 𝐵 𝑇 𝐶 𝜀 𝑑𝑉 = 𝐹𝑒 + න 𝐵 𝑇 𝐶 𝜀 𝑡ℎ 𝑑𝑉
𝑉𝑒 𝑉𝑒
𝐹𝑡ℎ
𝑘𝑒 𝑞 = 𝐹𝑒 + 𝐹𝑡ℎ
PAGE 130
STIFFNESS AND LAGRANGE MULTIPLIERS
* Mesh
p1 = 0. 0. ;
p2 = 3. 0. ;
l1 = DROI 1 p1 p2 ; 𝑘 0 −𝑘 0 𝑈𝑋1 𝐹𝑋1
𝑈𝑌1 𝐹𝑌1
* Model and properties rig1 = 0 0 0 0
mo = MODE l1 'MECANIQUE' 'BARR' ; −𝑘 0 𝑘 0 𝑈𝑋2 𝐹𝑋2
ma = MATE mo 'YOUN' 210.E9 'NU' 0.3
'SECT' 1.E-2 ;
0 0 0 0 𝑈𝑌2 𝐹𝑌2
* Main stiffness matrix 0 1 𝐿𝑋3 𝐹𝐿𝑋3
bl1 =
rig1 = RIGI mo ma ; 1 0 𝑈𝑋1 𝐹𝑋1
LIST rig1 ;
𝑘+0 0 −𝑘 0 1 𝑈𝑋1 𝐹𝑋1
* Constraint matrix
bl1 = BLOQ 'UX' p1 ; 0 0 0 0 0 𝑈𝑌1 𝐹𝑌1
LIST bl1 ; rig1 ET bl1 = −𝑘 0 𝑘 0 0 𝑈𝑋2 𝐹𝑋2
* Second member 0 0 0 0 0 𝑈𝑌2 𝐹𝑌2
f1 = DEPI bl1 1.2 ; 1 0 0 0 0 𝐿𝑋3 𝐹𝐿𝑋3
LIST f1 ;
PAGE 132
lien 1 lien 2 𝐹𝐿𝑋3 = 1,2
ACCUMULATED PLASTIC STRAIN
Definition
𝑡
2 ሶ𝑝 ሶ𝑝 2 𝑝 𝑝
𝑝 𝑡 = න 𝑝ሶ 𝜏 𝑑𝜏 𝑝ሶ = 𝜀Ӗ : 𝜀Ӗ = 𝜀ሶ 𝜀ሶ
0 3 3 𝑖𝑗 𝑖𝑗
Meaning
Measure of the length of the flow trajectory in the plastic strain space
𝜺𝒑 (𝒕𝟐 )
𝜀 𝑝 𝐼𝐼𝐼
(link) 𝜺𝒑 (𝒕𝟏 )
𝜀 𝑝 𝐼𝐼
𝜀𝑝 𝐼
PAGE 133
DESCRIPTION OF GIBIANE OBJECTS
OBJECTS DESCRIPTION
General objects
ENTIER Integer
FLOTTANT Real
MOT Characters string
LOGIQUE Boolean (TRUE and FALSE)
LISTENTI List of integers
PAGE 136
OBJECTS DESCRIPTION
PAGE 137
François DI PAOLA DEN/DANS
Commissariat à l'énergie atomique et aux énergies alternatives DM2S
Centre de Saclay | 91191 Gif-sur-Yvette Cedex SEMT
Etablissement public à caractère industriel et commercial | R.C.S Paris B 775 685 019