]> SALOME platform Git repositories - tools/eficas.git/commitdiff
Salome HOME
Add the Techno_data.radial_description.assembly_map_*.rotation_map to the data model.
authorYohann Pipeau <yohann.pipeau@edf.fr>
Fri, 22 Apr 2022 11:33:00 +0000 (13:33 +0200)
committerYohann Pipeau <yohann.pipeau@edf.fr>
Sat, 23 Apr 2022 06:36:11 +0000 (08:36 +0200)
This attribute defines the rotation of the assemblies in the core.

ReacteurNumerique/cata_RN_EDG.py
ReacteurNumerique/edg_REP1300_FULL.comm

index 41b37da25859f7a715fcb619854de019c09b1b6e..05be320d511da1976f022bd73cb5885a4d81028d 100644 (file)
@@ -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",
index 819d325a2082649decce42ff361f0c327c0b47db..4ec727b33a41316b9e4610a8ddd60fdc37826ac9 100644 (file)
@@ -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=
                                               (['#','#','#','#','#','#','#',
                                                         '#','#','#','#','#','#','#','#','#','#'],['#','#','#','#','#','.',