2 # Generated python file of Graph aNewDataFlow
6 aNewDataFlow = Graph( 'aNewDataFlow' )
7 print aNewDataFlow.SetName( 'aNewDataFlow' )
8 print aNewDataFlow.SetAuthor( '' )
9 print aNewDataFlow.SetComment( '' )
10 aNewDataFlow.Coords( 0 , 0 )
13 InitCL = aNewDataFlow.Node( 'CLRheolef' , 'CLRheolef' , 'InitCL' )
14 print InitCL.SetName( 'InitCL' )
15 print InitCL.SetAuthor( '' )
16 print InitCL.SetContainer( 'localhost/FactoryServer' )
17 print InitCL.SetComment( '' )
18 InitCL.Coords( 340 , 327 )
19 MakeBox = aNewDataFlow.Node( 'GEOM' , 'GEOM' , 'MakeBox' )
20 print MakeBox.SetName( 'MakeBox' )
21 print MakeBox.SetAuthor( '' )
22 print MakeBox.SetContainer( 'localhost/FactoryServer' )
23 print MakeBox.SetComment( '' )
24 MakeBox.Coords( 0 , 0 )
25 MeshGeomShapeSup = aNewDataFlow.Node( 'QMG' , 'QMG' , 'MeshGeomShapeSup' )
26 print MeshGeomShapeSup.SetName( 'MeshGeomShapeSup' )
27 print MeshGeomShapeSup.SetAuthor( '' )
28 print MeshGeomShapeSup.SetContainer( 'localhost/FactoryServer' )
29 print MeshGeomShapeSup.SetComment( '' )
30 MeshGeomShapeSup.Coords( 339 , 0 )
31 SolveSup = aNewDataFlow.Node( 'Rheolef' , 'Rheolef' , 'SolveSup' )
32 print SolveSup.SetName( 'SolveSup' )
33 print SolveSup.SetAuthor( '' )
34 print SolveSup.SetContainer( 'localhost/FactoryServer' )
35 print SolveSup.SetComment( '' )
36 SolveSup.Coords( 862 , 298 )
37 ModifyCL = aNewDataFlow.Node( 'CLRheolef' , 'CLRheolef' , 'ModifyCL' )
38 print ModifyCL.SetName( 'ModifyCL' )
39 print ModifyCL.SetAuthor( '' )
40 print ModifyCL.SetContainer( 'localhost/FactoryServer' )
41 print ModifyCL.SetComment( '' )
42 ModifyCL.Coords( 509 , 328 )
43 MakeBoolean = aNewDataFlow.Node( 'GEOM' , 'GEOM' , 'MakeBoolean' )
44 print MakeBoolean.SetName( 'MakeBoolean' )
45 print MakeBoolean.SetAuthor( '' )
46 print MakeBoolean.SetContainer( 'localhost/FactoryServer' )
47 print MakeBoolean.SetComment( '' )
48 MakeBoolean.Coords( 171 , 0 )
49 MakeBox_1 = aNewDataFlow.Node( 'GEOM' , 'GEOM' , 'MakeBox' )
50 print MakeBox_1.SetName( 'MakeBox_1' )
51 print MakeBox_1.SetAuthor( '' )
52 print MakeBox_1.SetContainer( 'localhost/FactoryServer' )
53 print MakeBox_1.SetComment( '' )
54 MakeBox_1.Coords( 0 , 325 )
55 MakeTranslation = aNewDataFlow.Node( 'GEOM' , 'GEOM' , 'MakeTranslation' )
56 print MakeTranslation.SetName( 'MakeTranslation' )
57 print MakeTranslation.SetAuthor( '' )
58 print MakeTranslation.SetContainer( 'localhost/FactoryServer' )
59 print MakeTranslation.SetComment( '' )
60 MakeTranslation.Coords( 165 , 325 )
61 FindNode = aNewDataFlow.Node( 'QMG' , 'QMG' , 'FindNode' )
62 print FindNode.SetName( 'FindNode' )
63 print FindNode.SetAuthor( '' )
64 print FindNode.SetContainer( 'localhost/FactoryServer' )
65 print FindNode.SetComment( '' )
66 FindNode.Coords( 510 , 0 )
67 ValueOf = aNewDataFlow.Node( 'Rheolef' , 'Rheolef' , 'ValueOf' )
68 print ValueOf.SetName( 'ValueOf' )
69 print ValueOf.SetAuthor( '' )
70 print ValueOf.SetContainer( 'localhost/FactoryServer' )
71 print ValueOf.SetComment( '' )
72 ValueOf.Coords( 692 , 43 )
73 ModifyCL_1 = aNewDataFlow.Node( 'CLRheolef' , 'CLRheolef' , 'ModifyCL' )
74 print ModifyCL_1.SetName( 'ModifyCL_1' )
75 print ModifyCL_1.SetAuthor( '' )
76 print ModifyCL_1.SetContainer( 'localhost/FactoryServer' )
77 print ModifyCL_1.SetComment( '' )
78 ModifyCL_1.Coords( 674 , 328 )
79 Plot = aNewDataFlow.Node( 'Rheolef' , 'Rheolef' , 'Plot' )
80 print Plot.SetName( 'Plot' )
81 print Plot.SetAuthor( '' )
82 print Plot.SetContainer( 'localhost/FactoryServer' )
83 print Plot.SetComment( '' )
84 Plot.Coords( 860 , 43 )
85 Add = aNewDataFlow.Node( 'AddComponent' , 'AddComponent' , 'Add' )
86 print Add.SetName( 'Add' )
87 print Add.SetAuthor( '' )
88 print Add.SetContainer( 'localhost/FactoryServer' )
89 print Add.SetComment( '' )
92 # Creation of intermediate Output variables and of links
93 InitCLreturn = InitCL.Port( 'return' )
94 ModifyCLmyRheolefData = aNewDataFlow.Link( InitCLreturn , ModifyCL.Port( 'myRheolefData' ) )
95 MakeBoxshape = MakeBox.Port( 'shape' )
96 MakeBooleanshape1 = aNewDataFlow.Link( MakeBoxshape , MakeBoolean.Port( 'shape1' ) )
97 MeshGeomShapeSupreturn = MeshGeomShapeSup.Port( 'return' )
98 SolveSupmyMesh = aNewDataFlow.Link( MeshGeomShapeSupreturn , SolveSup.Port( 'myMesh' ) )
99 print SolveSupmyMesh.AddCoord( 1 , 836 , 509 )
100 print SolveSupmyMesh.AddCoord( 2 , 835 , 320 )
101 print SolveSupmyMesh.AddCoord( 3 , 499 , 321 )
102 print SolveSupmyMesh.AddCoord( 4 , 498 , 152 )
103 InitCLmyMesh = aNewDataFlow.Link( MeshGeomShapeSupreturn , InitCL.Port( 'myMesh' ) )
104 print InitCLmyMesh.AddCoord( 1 , 333 , 570 )
105 print InitCLmyMesh.AddCoord( 2 , 332 , 321 )
106 print InitCLmyMesh.AddCoord( 3 , 499 , 321 )
107 print InitCLmyMesh.AddCoord( 4 , 499 , 151 )
108 FindNodeaMesh = aNewDataFlow.Link( MeshGeomShapeSupreturn , FindNode.Port( 'aMesh' ) )
109 print FindNodeaMesh.AddCoord( 1 , 498 , 152 )
110 SolveSupreturn = SolveSup.Port( 'return' )
111 ValueOfaField = aNewDataFlow.Link( SolveSupreturn , ValueOf.Port( 'aField' ) )
112 print ValueOfaField.AddCoord( 1 , 683 , 194 )
113 print ValueOfaField.AddCoord( 2 , 682 , 16 )
114 print ValueOfaField.AddCoord( 3 , 1000 , 17 )
115 print ValueOfaField.AddCoord( 4 , 1001 , 450 )
116 ModifyCLreturn = ModifyCL.Port( 'return' )
117 ModifyCL_1myRheolefData = aNewDataFlow.Link( ModifyCLreturn , ModifyCL_1.Port( 'myRheolefData' ) )
118 MakeBooleanshape = MakeBoolean.Port( 'shape' )
119 MeshGeomShapeSupshape = aNewDataFlow.Link( MakeBooleanshape , MeshGeomShapeSup.Port( 'shape' ) )
120 print MeshGeomShapeSupshape.AddCoord( 1 , 333 , 182 )
121 print MeshGeomShapeSupshape.AddCoord( 2 , 332 , 153 )
122 MakeBox_1shape = MakeBox_1.Port( 'shape' )
123 MakeTranslationshape1 = aNewDataFlow.Link( MakeBox_1shape , MakeTranslation.Port( 'shape1' ) )
124 MakeTranslationshape = MakeTranslation.Port( 'shape' )
125 MakeBooleanshape2 = aNewDataFlow.Link( MakeTranslationshape , MakeBoolean.Port( 'shape2' ) )
126 print MakeBooleanshape2.AddCoord( 1 , 163 , 182 )
127 print MakeBooleanshape2.AddCoord( 2 , 163 , 321 )
128 print MakeBooleanshape2.AddCoord( 3 , 326 , 321 )
129 print MakeBooleanshape2.AddCoord( 4 , 327 , 477 )
130 FindNodereturn = FindNode.Port( 'return' )
131 ValueOfnumberOfNode = aNewDataFlow.Link( FindNodereturn , ValueOf.Port( 'numberOfNode' ) )
132 print ValueOfnumberOfNode.AddCoord( 1 , 673 , 224 )
133 print ValueOfnumberOfNode.AddCoord( 2 , 672 , 151 )
134 ValueOfreturn = ValueOf.Port( 'return' )
135 PlotValue = aNewDataFlow.Link( ValueOfreturn , Plot.Port( 'Value' ) )
136 ModifyCL_1return = ModifyCL_1.Port( 'return' )
137 SolveSupmyRheolefData = aNewDataFlow.Link( ModifyCL_1return , SolveSup.Port( 'myRheolefData' ) )
138 Addz = Add.Port( 'z' )
139 MakeTranslationy1 = aNewDataFlow.Link( Addz , MakeTranslation.Port( 'y1' ) )
140 print MakeTranslationy1.AddCoord( 1 , 161 , 537 )
141 print MakeTranslationy1.AddCoord( 2 , 162 , 831 )
142 FindNodey = aNewDataFlow.Link( Addz , FindNode.Port( 'y' ) )
143 print FindNodey.AddCoord( 1 , 504 , 209 )
144 print FindNodey.AddCoord( 2 , 503 , 832 )
145 PlotPosition = aNewDataFlow.Link( Addz , Plot.Port( 'Position' ) )
146 print PlotPosition.AddCoord( 1 , 854 , 228 )
147 print PlotPosition.AddCoord( 2 , 855 , 832 )
149 # Creation of Input datas
150 InitCLstudyId = InitCL.Input( 'studyId' , 1)
151 InitCLdataName = InitCL.Input( 'dataName' , 'BoxData')
152 InitCLsource = InitCL.Input( 'source' , 0)
153 MakeBoxx1 = MakeBox.Input( 'x1' , 0)
154 MakeBoxy1 = MakeBox.Input( 'y1' , 0)
155 MakeBoxz1 = MakeBox.Input( 'z1' , 0)
156 MakeBoxx2 = MakeBox.Input( 'x2' , 100)
157 MakeBoxy2 = MakeBox.Input( 'y2' , 500)
158 MakeBoxz2 = MakeBox.Input( 'z2' , 50)
159 MeshGeomShapeSupstudyId = MeshGeomShapeSup.Input( 'studyId' , 1)
160 MeshGeomShapeSupsizeControl = MeshGeomShapeSup.Input( 'sizeControl' , 999999)
161 MeshGeomShapeSupcurveControl = MeshGeomShapeSup.Input( 'curveControl' , 0.5)
162 MeshGeomShapeSuptolmesh = MeshGeomShapeSup.Input( 'tolmesh' , 1e-05)
163 MeshGeomShapeSuptolskin = MeshGeomShapeSup.Input( 'tolskin' , 0)
164 SolveSupstudyId = SolveSup.Input( 'studyId' , 1)
165 ModifyCLfaceToModify = ModifyCL.Input( 'faceToModify' , 3)
166 ModifyCLnewFaceCLtype = ModifyCL.Input( 'newFaceCLtype' , 1)
167 ModifyCLnewFaceValue = ModifyCL.Input( 'newFaceValue' , 0)
168 MakeBooleanoperation = MakeBoolean.Input( 'operation' , 2)
169 MakeBox_1x1 = MakeBox_1.Input( 'x1' , 0)
170 MakeBox_1y1 = MakeBox_1.Input( 'y1' , 0)
171 MakeBox_1z1 = MakeBox_1.Input( 'z1' , 0)
172 MakeBox_1x2 = MakeBox_1.Input( 'x2' , 40)
173 MakeBox_1y2 = MakeBox_1.Input( 'y2' , 40)
174 MakeBox_1z2 = MakeBox_1.Input( 'z2' , 70)
175 MakeTranslationx1 = MakeTranslation.Input( 'x1' , 30)
176 MakeTranslationz1 = MakeTranslation.Input( 'z1' , -10)
177 FindNodex = FindNode.Input( 'x' , 50)
178 FindNodez = FindNode.Input( 'z' , 25)
179 ModifyCL_1faceToModify = ModifyCL_1.Input( 'faceToModify' , 5)
180 ModifyCL_1newFaceCLtype = ModifyCL_1.Input( 'newFaceCLtype' , 1)
181 ModifyCL_1newFaceValue = ModifyCL_1.Input( 'newFaceValue' , 1)
182 PlotFilename = Plot.Input( 'Filename' , 'Result.plt')
183 Addx = Add.Input( 'x' , 0)
184 Addy = Add.Input( 'y' , 10)
186 # Missing Input datas
188 # Creation of Output variables
189 AddFuncValue = Add.Port( 'FuncValue' )