07 Thermics PDF
07 Thermics PDF
07 Thermics PDF
Thermic calculation
Mechanical calculation
40°C
15°C
mymesh=LIRE_MAILLAGE();
thmat =DEFI_MATERIAU(THER=_F(LAMBDA=6,),);
IMPR_RESU( FORMAT='MED',
RESU=_F(RESULTAT= resuth,),);
FIN();
temps
AFFE_CHAR_THER (...)
AFFE_CHAR_THER_F (...)
LIAISON_DDL
Linear relationships between the nodal temperatures LIAISON_GROUP
LIAISON_MAIL
dT
Natural convection (Fourier law) ECHANGE λ(T ) = h(t ) ⋅ (Text − T )
dn
dT1
Heat exchange between walls ECHANGE_PAROI λ1 = h(T2 − T1 )
dn1
Normal imposed flux : constant or dT
function of time and space FLUX_REP λ(T) = f(t, x)
dn
ρCP (T ) β (T )
T T
11 - Code_Aster and Salome-Meca course material GNU FDL Licence
Precautions for use in thermics
Time discretization with the θ-méthode.
ρC
(Tn+1 − Tn )=θ ∆Tn+1+(1−θ )∆Tn
λ.∆t
θ = 0.57, good compromise and the default value
Ability to change θ with PARM_THETA
ρC ( ∆x )
2
∆t ≤
(6θ )λ
Drive the non-linear convergence, if necessary.
Frequency of updating the tangent matrix
NEWTON
Linear search criteria
Convergence criteria (number of iterations, residues ...) CONVERGENCE
With CALC_CHAMP
FLUX_NOEU (at nodes)
Possibilities :
Compute in moving frame (welding) : THER_NON_LINE_MO
With forced convection (welding) AFFE_CHAR_THER (...CONVECTION...)
Calculate the hardness, the metallurgical transformations CALC_META
Mechanical calculation of
concrete shrinkage
Displacements, strains …
Stresses field
In AFFE_MATERIAU (...
AFFE_VARC=_F( NOM_VARC = 'TEMP',
EVOL = EVOTH,
VALE_REF = 20. )
...)
The mesh to be used in mechanics must be different from that used for
thermics. For two main reasons:
A linear mesh is better in thermics, while rather quadratic in mechanics
Areas of interest are different => the refined areas are different
One must project the temperature field on the mesh used for mechanics
PROJ_CHAMP ( … )
Projection sur le
nouveau maillage
We want to make a mechanical calculation with a different mesh
memesh=LIRE_MAILLAGE()
thmodl2=AFFE_MODELE(MAILLAGE= memesh,
AFFE=_F( TOUT='OUI',
PHENOMENE='THERMIQUE',
MODELISATION='AXIS',),)
resproj=PROJ_CHAMP( RESULTAT= thresu,
MODELE_1= thmodl,
MODELE_2= thmodl2,)
...
mymat=AFFE_MATERIAU( MAILLAGE=mymesh,
AFFE=_F( TOUT='OUI',
MATER=steel,),
AFFE_VARC=_F(TOUT='OUI',
NOM_VARC='TEMP',
EVOL=projres,
VALE_REF=20,),)
mecload=AFFE_CHAR_MECA(MODELE=MODME,
DDL_IMPO=_F(GROUP_NO='FACEB',
DX=0,
DY=0,),)
mecres=MECA_STATIQUE(MODELE=mymodl,
CHAM_MATER=mymat,
EXCIT=_F(CHARGE= mecload,),)
IMPR_RESU(...)
FIN()
18 - Code_Aster and Salome-Meca course material GNU FDL Licence
Analytical temperature field
Here we know the analytical formula of the temperature field in the thickness of the cylinder
(X): X T −T
Tinte − ln exte inte
Rinte ln Rexte
DEBUT(); R
// Thermic calculation inte
thmesh=LIRE_MAILLAGE() memesh=LIRE_MAILLAGE()
thmodl=AFFE_MODELE(...)
T0 = FORMULE(VALE='40-log(X/20)*(40-15)/log(21/20)',
thmater=DEFI_MATERIAU(...) NOM_PARA=('X',),)
fthmater=AFFE_MATERIAU(...) fT0 =CREA_CHAMP( TYPE_CHAM='NOEU_TEMP_F',
thload=AFFE_CHAR_THER(...) OPERATION='AFFE',
thresu=THER_LINEAIRE(...) MAILLAGE= memesh,
// Projection AFFE=_F( TOUT='OUI',
memesh=LIRE_MAILLAGE() NOM_CMP='TEMP',
thmodl2=AFFE_MODELE(...) VALE_F=T0,),)
resproj=PROJ_CHAMP(...)
thresu=CREA_RESU(OPERATION='AFFE',
TYPE_RESU='EVOL_THER',
// Mechanic calculation NOM_CHAM='TEMP',
memodl=AFFE_MODELE(...) AFFE=_F(CHAM_GD=fT0,
steel=DEFI_MATERIAU(...) INST=0,),)
memat=AFFE_MATERIAU( MAILLAGE=memesh,
AFFE=_F( TOUT='OUI',
MATER=steel,),
AFFE_VARC=_F(TOUT='OUI',
NOM_VARC='TEMP',
EVOL= resproj,
VALE_REF=20,),)
meload=AFFE_CHAR_MECA(...)
meresu=MECA_STATIQUE(...)
IMPR_RESU(...)
FIN()
L_ECHAN
L_ECHAN
Exchange by natural convection :
Text = 20°C
h = 5 W/m²°C
# Exchange condition on the edge (during the free cooling) : convection everywhere
thload2 = AFFE_CHAR_THER_F ( MODELE = mymodl,
ECHANGE=_F( GROUP_MA =('LBC','HAUT','COTE','BAS',),
COEF_H = H ,
HAUT
TEMP_EXT = T_EXT , ),)
LBC
COTE
BAS
at t=30s