Utilisation d`une interface Python pour la gestion améliorée

Utilisation d’une interface Python pour la gestion
améliorée des codes de simulation numérique
« Un boïdé pour Esther »
Christophe Debonnel, Aurélie Forbes
Patrick Combis
CEA, DIF
Bruyères-le-Châtel
91229 Arpajon Cedex, France
christophe.debonn[email protected]
Workshop sur la modélisation de
l’interaction rayonnement-matière
du solide au plasma (IRMDSP 2008)
INSTN, Saclay, France
September 24-26, 2008
2
09/25/2008C.S. Debonnel
SOLID
PLASMA
liquid
vapor
Interaction
- 1D laser energy deposition (planar
EM Helmholtz or spherical Mie theory)
- 1D planar X-ray energy deposition
- ion heating
-fluid and solid dynamics (with elastic
and plastic effects, fracture formation)
- thermal diffusion
- radiative transfer
- breakdown and multiphotonic ionization
- two-temperature model for sub-
picosecond laser-matter interaction
Material data
- complex optical index, dense-plasma
electrical conductivity (SCAALP + Ziman)
-spectral opacities (Henke + NOHEL)
-ion stopping powers
-EOS (Puff-Mie-Grüneisen, SESAME ,
multiphase Bushman-Lomonosov-Fortov),
material strengths (SCG)
- thermal conductivity
-non-LTE opacity and emissivity (NOHEL)
- ionization and collision frequency
- electron transport coefficients
The 1-D Lagrangian radiation-hydrodynamics code ESTHER
Simulation of the interaction of radiation with matter
3
Esther’s text-based pre-processing tool (I)
09/25/2008C.S. Debonnel
#initialisation du cas notice
from esther import *
cas=Esther(nom_du_cas=’notice’,
chemin_esther=‘/ESTHER_v3/’, chemin_sorties=‘/figures/’)
cas.init_rubrique(rubrique="demarrage",
USI=1,transfert_radiatif=1)
m1=Milieu(nom_milieu=‘Al_stand_1’,
epaisseur_vide=100e-6, epaisseur_milieu=5e-6,
nombre_mailles=101, epaisseur_externe=5.e-10)
cas.init_rubrique(rubrique="milieux_int_vers_ext",
milieux=[m1])
Same keywords
Python syntax, not Esthers
Users folders, not Esthers notice.txt
4
Esther’s text-based pre-processing tool (II)
09/25/2008C.S. Debonnel
d1=Depot_energie(laser=1, spectre_laser=1,
longueur_onde_laser=800e-9,
impulsion_gaussienne=1, duree_impulsion=30e-12,
intensite_impul_max=9.3987e18)
cas.init_rubrique(rubrique="depots_energie",
depots=[d1])
tf=150e-12
cas.init_rubrique(rubrique="sorties_graphiques",
decoupage_temps=1,
borne=[tf],
increment=[tf/200])
cas.init_rubrique(rubrique="arret",temps_arret=tf)
notice.txt
Variables and mathematical operations
5
Esthers text-based post-processing tool
#execution du cas notice
cas.executer()
#depouillement du cas notice
cas.lecture()
cas.trace(liste_abscisses=[’position moyenne relative’],
liste_ordonnees=[‘pression’,‘temperature’],
liste_temps=[i*1e-12 for i in range(0,int(tf*1e12)+1,10)],
chemin_sorties=cas.chemin_sorties)
cas.carte2D(t1=0,t2=1.5e-10,
ordonnee=‘position moyenne relative’,
y1=-4.9e-6,y2=1.7e-4,
variable_centrale=‘temperature’)
32 plots!
(make movies!)
09/25/2008C.S. Debonnel
1 / 9 100%

Utilisation d`une interface Python pour la gestion améliorée

La catégorie de ce document est-elle correcte?
Merci pour votre participation!

Faire une suggestion

Avez-vous trouvé des erreurs dans linterface ou les textes ? Ou savez-vous comment améliorer linterface utilisateur de StudyLib ? Nhésitez pas à envoyer vos suggestions. Cest très important pour nous !