summaryrefslogtreecommitdiff
path: root/Donjon/data/Hex_Model3D_proc/Ssr.c2m
blob: 1bbc8b056db5d666170c7cbbf050b562cf1a3459 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
******************************************************************
*                                                                *
* Procedure :  Ssr.c2m                                           *
* Purpose   :  Numerical Geometry specifications for SSR-W (simp)*
* Author(s) :  I. Trancart (2024)                                *
*                                                                *
*  GeoRef Matex := GeoCo ::                                      *
*    <<Splith>> <<Splitz>> <<MaxR>> <<dr>> <<dz>> ;              *
*                                                                *
*   Options :                                                    *
*     Splitl  = hexagonal splitting  (1/3 losange)               *
*     dr      = side of an assembly                              *
*                                                                *
******************************************************************
PARAMETER       GeoRef Matex ::
::: LINKED_LIST GeoRef Matex ; ;

*----
*  Modules and linked_lists
*----
MODULE      USPLIT: GEO: END: UTL: DELETE: ;
LINKED_LIST GeoCoeur ;
 
*----
*  Set calculation options
*----
INTEGER Splitl MaxR ;
:: >>Splitl<< >>MaxR<< ;
REAL    dr ;
:: >>dr<< ;

*----
*  Define numerical geometrie for hexagonal mesh
*----

GeoCoeur := GEO: :: HEXZ 10 2
  EDIT 1
  HBC SA60 VOID SIDE <<dr>>
  MIX  
PLANE 1
  2
* H1
  2 2
* H2
  3 3 3
* H3
  1 1 1 1
PLANE 2
  2
* H1
  2 2
* H2
  3 3 3
* H3
  1 1 1 1

  SPLITL <<Splitl>>
  MESHZ 0.0 1.0 2.0 
;
SEQ_ASCII GeoCoeur.txt :: FILE './GeoCoeur.txt' ;
GeoCoeur.txt := GeoCoeur ;
UTL: GeoCoeur :: DUMP ;

GeoRef Matex := USPLIT: GeoCoeur :: EDIT 2 NGRP 2 MAXR <<MaxR>>
               NREFL 1  RMIX 1
               NFUEL 2  FMIX 2 3
;

GeoCoeur := DELETE: GeoCoeur ;

END: ;
QUIT "LIST" .