From: Yohann Pipeau Date: Fri, 22 Apr 2022 11:33:00 +0000 (+0200) Subject: Add the Techno_data.radial_description.assembly_map_*.rotation_map to the data model. X-Git-Tag: merge_uncertainty_odysee_1210~92^2~4 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=1869a7a36e5f0a7e2d8b7fca14f30f07834e0e46;p=tools%2Feficas.git Add the Techno_data.radial_description.assembly_map_*.rotation_map to the data model. This attribute defines the rotation of the assemblies in the core. --- diff --git a/ReacteurNumerique/cata_RN_EDG.py b/ReacteurNumerique/cata_RN_EDG.py index 41b37da2..05be320d 100644 --- a/ReacteurNumerique/cata_RN_EDG.py +++ b/ReacteurNumerique/cata_RN_EDG.py @@ -33,6 +33,18 @@ ROD_COMPOSITIONS = ( "B4C", # Full B4C rods ) +# Available options for the core elements rotation +ASSEMBLY_ROTATIONS = ( + ".", # identity + "R1", # 90° counter-clock + "R2", # 180° + "R3", # 270° counter-clock + "UD", # up-down + "LR", # left-right + "TR", # transpose x/y + "RT", # transpose x/-y +) + class Tuple(_Tuple): """Organize the data into a fixed size tuple. @@ -377,6 +389,19 @@ def gen_assembly_maps(): ("RS","15","14","13","12","11","10","09","08","07","06","05","04","03","02","01","RN",)), # pylint: disable=line-too-long defaut=(i + 2) * [(i + 2) * ["."]], coloree=True)), + rotation_map=SIMP( + fr="Rotation des éléments du cœur. Valeur possibles : {}".format( + ", ".join([repr(elt) for elt in ASSEMBLY_ROTATIONS])), + ang="Core elements rotation. Possible values : {}".format( + ", ".join([repr(elt) for elt in ASSEMBLY_ROTATIONS])), + statut="o", + typ=Matrice( + nbLigs=i + 2, + nbCols=i + 2, + typElt="TXM", + typEltInto=ASSEMBLY_ROTATIONS, + coloree=True), + defaut=(i + 2) * [(i + 2) * ["."]]), rod_map=SIMP( fr="Répartition radiale des groupes de grappes dans le cœur", ang="Rod banks radial repartition in the core", diff --git a/ReacteurNumerique/edg_REP1300_FULL.comm b/ReacteurNumerique/edg_REP1300_FULL.comm index 819d325a..4ec727b3 100644 --- a/ReacteurNumerique/edg_REP1300_FULL.comm +++ b/ReacteurNumerique/edg_REP1300_FULL.comm @@ -88,6 +88,29 @@ techno_data=Techno_data(assembly_list=(REF,U1,UGD,), UGD,REF,REF,REF,],[REF,REF,REF,REF,REF,U1,U1,U1,U1,U1,U1, U1,REF,REF,REF,REF,REF,],[REF,REF,REF,REF,REF,REF,REF,REF, REF,REF,REF,REF,REF,REF,REF,REF,REF,],), + rotation_map= + (['.','.','.','.','.','.', + '.','.','.','.','.','.','.','.','.','.','.'],['.','.','.', + '.','.','.','.','.','.','.','.','.','.','.','.','.','.'], + ['.','.','.','.','.','.','.','.','.','.','.','.','.','.', + '.','.','.'],['.','.','.','.','.','.','.','.','.','.','.', + '.','.','.','.','.','.'],['.','.','.','.','.','.','.','.', + '.','.','.','.','.','.','.','.','.'],['.','.','.','.','.', + '.','.','.','.','.','.','.','.','.','.','.','.'],['.','.', + '.','.','.','.','.','.','.','.','.','.','.','.','.','.', + '.'],['.','.','.','.','.','.','.','.','.','.','.','.','.', + '.','.','.','.'],['.','.','.','.','.','.','.','.','.','.', + '.','.','.','.','.','.','.'],['.','.','.','.','.','.','.', + '.','.','.','.','.','.','.','.','.','.'],['.','.','.','.', + '.','.','.','.','.','.','.','.','.','.','.','.','.'],['.', + '.','.','.','.','.','.','.','.','.','.','.','.','.','.', + '.','.'],['.','.','.','.','.','.','.','.','.','.','.','.', + '.','.','.','.','.'],['.','.','.','.','.','.','.','.','.', + '.','.','.','.','.','.','.','.'],['.','.','.','.','.','.', + '.','.','.','.','.','.','.','.','.','.','.'],['.','.','.', + '.','.','.','.','.','.','.','.','.','.','.','.','.','.'], + ['.','.','.','.','.','.','.','.','.','.','.','.','.','.', + '.','.','.'],), rod_map= (['#','#','#','#','#','#','#', '#','#','#','#','#','#','#','#','#','#'],['#','#','#','#','#','.',