]> SALOME platform Git repositories - modules/superv.git/blob - examples/SupervRheolefGraph.py
Salome HOME
DCQ:prepare 2.0.0
[modules/superv.git] / examples / SupervRheolefGraph.py
1
2 # Generated python file of Graph aNewDataFlow
3
4 from SuperV import *
5 # Graph creation 
6 aNewDataFlow = Graph( 'aNewDataFlow' )
7 aNewDataFlow.SetName( 'aNewDataFlow' )
8 aNewDataFlow.SetAuthor( '' )
9 aNewDataFlow.SetComment( '' )
10 aNewDataFlow.Coords( 0 , 0 )
11
12 # Creation of Factory Nodes
13
14 InitCL = aNewDataFlow.FNode( 'CLRheolef' , 'CLRheolef' , 'InitCL' )
15 InitCL.SetName( 'InitCL' )
16 InitCL.SetAuthor( '' )
17 InitCL.SetContainer( 'localhost/FactoryServer' )
18 InitCL.SetComment( 'InitCL from CLRheolef' )
19 InitCL.Coords( 414 , 334 )
20
21 MakeBox = aNewDataFlow.FNode( 'Geometry' , 'Geometry' , 'MakeBox' )
22 MakeBox.SetName( 'MakeBox' )
23 MakeBox.SetAuthor( '' )
24 MakeBox.SetContainer( 'localhost/FactoryServer' )
25 MakeBox.SetComment( 'MakeBox from Geometry' )
26 MakeBox.Coords( 7 , 29 )
27
28 MeshGeomShapeSup = aNewDataFlow.FNode( 'QMG' , 'QMG' , 'MeshGeomShapeSup' )
29 MeshGeomShapeSup.SetName( 'MeshGeomShapeSup' )
30 MeshGeomShapeSup.SetAuthor( '' )
31 MeshGeomShapeSup.SetContainer( 'localhost/FactoryServer' )
32 MeshGeomShapeSup.SetComment( 'MeshGeomShapeSup from QMG' )
33 MeshGeomShapeSup.Coords( 372 , 0 )
34
35 SolveSup = aNewDataFlow.FNode( 'Rheolef' , 'Rheolef' , 'SolveSup' )
36 SolveSup.SetName( 'SolveSup' )
37 SolveSup.SetAuthor( '' )
38 SolveSup.SetContainer( 'localhost/FactoryServer' )
39 SolveSup.SetComment( 'SolveSup from Rheolef' )
40 SolveSup.Coords( 1030 , 304 )
41
42 ModifyCL = aNewDataFlow.FNode( 'CLRheolef' , 'CLRheolef' , 'ModifyCL' )
43 ModifyCL.SetName( 'ModifyCL' )
44 ModifyCL.SetAuthor( '' )
45 ModifyCL.SetContainer( 'localhost/FactoryServer' )
46 ModifyCL.SetComment( 'ModifyCL from CLRheolef' )
47 ModifyCL.Coords( 602 , 335 )
48
49 MakeBoolean = aNewDataFlow.FNode( 'Geometry' , 'Geometry' , 'MakeBoolean' )
50 MakeBoolean.SetName( 'MakeBoolean' )
51 MakeBoolean.SetAuthor( '' )
52 MakeBoolean.SetContainer( 'localhost/FactoryServer' )
53 MakeBoolean.SetComment( 'MakeBoolean from Geometry' )
54 MakeBoolean.Coords( 188 , 30 )
55
56 MakeBox_1 = aNewDataFlow.FNode( 'Geometry' , 'Geometry' , 'MakeBox' )
57 MakeBox_1.SetName( 'MakeBox_1' )
58 MakeBox_1.SetAuthor( '' )
59 MakeBox_1.SetContainer( 'localhost/FactoryServer' )
60 MakeBox_1.SetComment( 'MakeBox from Geometry' )
61 MakeBox_1.Coords( 0 , 325 )
62
63 MakeTranslation = aNewDataFlow.FNode( 'Geometry' , 'Geometry' , 'MakeTranslation' )
64 MakeTranslation.SetName( 'MakeTranslation' )
65 MakeTranslation.SetAuthor( '' )
66 MakeTranslation.SetContainer( 'localhost/FactoryServer' )
67 MakeTranslation.SetComment( 'MakeTranslation from Geometry' )
68 MakeTranslation.Coords( 190 , 325 )
69
70 FindNode = aNewDataFlow.FNode( 'QMG' , 'QMG' , 'FindNode' )
71 FindNode.SetName( 'FindNode' )
72 FindNode.SetAuthor( '' )
73 FindNode.SetContainer( 'localhost/FactoryServer' )
74 FindNode.SetComment( 'FindNode from QMG' )
75 FindNode.Coords( 621 , 0 )
76
77 ValueOf = aNewDataFlow.FNode( 'Rheolef' , 'Rheolef' , 'ValueOf' )
78 ValueOf.SetName( 'ValueOf' )
79 ValueOf.SetAuthor( '' )
80 ValueOf.SetContainer( 'localhost/FactoryServer' )
81 ValueOf.SetComment( 'ValueOf from Rheolef' )
82 ValueOf.Coords( 832 , 42 )
83
84 ModifyCL_1 = aNewDataFlow.FNode( 'CLRheolef' , 'CLRheolef' , 'ModifyCL' )
85 ModifyCL_1.SetName( 'ModifyCL_1' )
86 ModifyCL_1.SetAuthor( '' )
87 ModifyCL_1.SetContainer( 'localhost/FactoryServer' )
88 ModifyCL_1.SetComment( 'ModifyCL from CLRheolef' )
89 ModifyCL_1.Coords( 800 , 334 )
90
91 Plot = aNewDataFlow.FNode( 'Rheolef' , 'Rheolef' , 'Plot' )
92 Plot.SetName( 'Plot' )
93 Plot.SetAuthor( '' )
94 Plot.SetContainer( 'localhost/FactoryServer' )
95 Plot.SetComment( 'Plot from Rheolef' )
96 Plot.Coords( 1029 , 41 )
97
98 Add = aNewDataFlow.FNode( 'AddComponent' , 'AddComponent' , 'Add' )
99 Add.SetName( 'Add' )
100 Add.SetAuthor( '' )
101 Add.SetContainer( 'localhost/FactoryServer' )
102 Add.SetComment( 'Add from AddComponent' )
103 Add.Coords( 0 , 610 )
104
105 # Creation of Links
106 InitCLreturn = InitCL.Port( 'return' )
107 ModifyCLmyRheolefData = aNewDataFlow.Link( InitCLreturn , ModifyCL.Port( 'myRheolefData' ) )
108
109 MakeBoxshape = MakeBox.Port( 'shape' )
110 MakeBooleanshape1 = aNewDataFlow.Link( MakeBoxshape , MakeBoolean.Port( 'shape1' ) )
111
112 MeshGeomShapeSupreturn = MeshGeomShapeSup.Port( 'return' )
113 SolveSupmyMesh = aNewDataFlow.Link( MeshGeomShapeSupreturn , SolveSup.Port( 'myMesh' ) )
114 SolveSupmyMesh.AddCoord( 1 , 985 , 442 )
115 SolveSupmyMesh.AddCoord( 2 , 984 , 301 )
116 SolveSupmyMesh.AddCoord( 3 , 561 , 300 )
117 SolveSupmyMesh.AddCoord( 4 , 561 , 83 )
118
119 InitCLmyMesh = aNewDataFlow.Link( MeshGeomShapeSupreturn , InitCL.Port( 'myMesh' ) )
120 InitCLmyMesh.AddCoord( 1 , 385 , 502 )
121 InitCLmyMesh.AddCoord( 2 , 384 , 301 )
122 InitCLmyMesh.AddCoord( 3 , 561 , 300 )
123 InitCLmyMesh.AddCoord( 4 , 561 , 81 )
124
125 FindNodeaMesh = aNewDataFlow.Link( MeshGeomShapeSupreturn , FindNode.Port( 'aMesh' ) )
126
127 SolveSupreturn = SolveSup.Port( 'return' )
128 ValueOfaField = aNewDataFlow.Link( SolveSupreturn , ValueOf.Port( 'aField' ) )
129 ValueOfaField.AddCoord( 1 , 818 , 122 )
130 ValueOfaField.AddCoord( 2 , 817 , 26 )
131 ValueOfaField.AddCoord( 3 , 1216 , 26 )
132 ValueOfaField.AddCoord( 4 , 1218 , 385 )
133
134 ModifyCLreturn = ModifyCL.Port( 'return' )
135 ModifyCL_1myRheolefData = aNewDataFlow.Link( ModifyCLreturn , ModifyCL_1.Port( 'myRheolefData' ) )
136
137 MakeBooleanshape = MakeBoolean.Port( 'shape' )
138 MeshGeomShapeSupshape = aNewDataFlow.Link( MakeBooleanshape , MeshGeomShapeSup.Port( 'shape' ) )
139
140 MakeBox_1shape = MakeBox_1.Port( 'shape' )
141 MakeTranslationshape1 = aNewDataFlow.Link( MakeBox_1shape , MakeTranslation.Port( 'shape1' ) )
142
143 MakeTranslationshape = MakeTranslation.Port( 'shape' )
144 MakeBooleanshape2 = aNewDataFlow.Link( MakeTranslationshape , MakeBoolean.Port( 'shape2' ) )
145 MakeBooleanshape2.AddCoord( 1 , 182 , 140 )
146 MakeBooleanshape2.AddCoord( 2 , 181 , 261 )
147 MakeBooleanshape2.AddCoord( 3 , 363 , 260 )
148 MakeBooleanshape2.AddCoord( 4 , 363 , 411 )
149 MakeBooleanshape2.AddCoord( 5 , 327 , 408 )
150
151 FindNodereturn = FindNode.Port( 'return' )
152 ValueOfnumberOfNode = aNewDataFlow.Link( FindNodereturn , ValueOf.Port( 'numberOfNode' ) )
153 ValueOfnumberOfNode.AddCoord( 1 , 799 , 152 )
154 ValueOfnumberOfNode.AddCoord( 2 , 798 , 81 )
155
156 ValueOfreturn = ValueOf.Port( 'return' )
157 PlotValue = aNewDataFlow.Link( ValueOfreturn , Plot.Port( 'Value' ) )
158
159 ModifyCL_1return = ModifyCL_1.Port( 'return' )
160 SolveSupmyRheolefData = aNewDataFlow.Link( ModifyCL_1return , SolveSup.Port( 'myRheolefData' ) )
161
162 Addz = Add.Port( 'z' )
163 MakeTranslationy1 = aNewDataFlow.Link( Addz , MakeTranslation.Port( 'y1' ) )
164 MakeTranslationy1.AddCoord( 1 , 181 , 464 )
165 MakeTranslationy1.AddCoord( 2 , 182 , 720 )
166
167 FindNodey = aNewDataFlow.Link( Addz , FindNode.Port( 'y' ) )
168 FindNodey.AddCoord( 1 , 592 , 139 )
169 FindNodey.AddCoord( 2 , 593 , 720 )
170
171 PlotPosition = aNewDataFlow.Link( Addz , Plot.Port( 'Position' ) )
172 PlotPosition.AddCoord( 1 , 1010 , 150 )
173 PlotPosition.AddCoord( 2 , 1011 , 720 )
174
175 # Creation of Input datas
176 InitCLstudyId = InitCL.Input( 'studyId' , 1)
177 InitCLdataName = InitCL.Input( 'dataName' , 'BoxData')
178 InitCLsource = InitCL.Input( 'source' , 0)
179 MakeBoxx1 = MakeBox.Input( 'x1' , 0)
180 MakeBoxy1 = MakeBox.Input( 'y1' , 0)
181 MakeBoxz1 = MakeBox.Input( 'z1' , 0)
182 MakeBoxx2 = MakeBox.Input( 'x2' , 100)
183 MakeBoxy2 = MakeBox.Input( 'y2' , 500)
184 MakeBoxz2 = MakeBox.Input( 'z2' , 50)
185 MeshGeomShapeSupstudyId = MeshGeomShapeSup.Input( 'studyId' , 1)
186 MeshGeomShapeSupsizeControl = MeshGeomShapeSup.Input( 'sizeControl' , 999999)
187 MeshGeomShapeSupcurveControl = MeshGeomShapeSup.Input( 'curveControl' , 0.5)
188 MeshGeomShapeSuptolmesh = MeshGeomShapeSup.Input( 'tolmesh' , 1e-05)
189 MeshGeomShapeSuptolskin = MeshGeomShapeSup.Input( 'tolskin' , 0)
190 SolveSupstudyId = SolveSup.Input( 'studyId' , 1)
191 ModifyCLfaceToModify = ModifyCL.Input( 'faceToModify' , 3)
192 ModifyCLnewFaceCLtype = ModifyCL.Input( 'newFaceCLtype' , 1)
193 ModifyCLnewFaceValue = ModifyCL.Input( 'newFaceValue' , 0)
194 MakeBooleanoperation = MakeBoolean.Input( 'operation' , 2)
195 MakeBox_1x1 = MakeBox_1.Input( 'x1' , 0)
196 MakeBox_1y1 = MakeBox_1.Input( 'y1' , 0)
197 MakeBox_1z1 = MakeBox_1.Input( 'z1' , 0)
198 MakeBox_1x2 = MakeBox_1.Input( 'x2' , 40)
199 MakeBox_1y2 = MakeBox_1.Input( 'y2' , 40)
200 MakeBox_1z2 = MakeBox_1.Input( 'z2' , 70)
201 MakeTranslationx1 = MakeTranslation.Input( 'x1' , 30)
202 MakeTranslationz1 = MakeTranslation.Input( 'z1' , -10)
203 FindNodex = FindNode.Input( 'x' , 50)
204 FindNodez = FindNode.Input( 'z' , 25)
205 ModifyCL_1faceToModify = ModifyCL_1.Input( 'faceToModify' , 5)
206 ModifyCL_1newFaceCLtype = ModifyCL_1.Input( 'newFaceCLtype' , 1)
207 ModifyCL_1newFaceValue = ModifyCL_1.Input( 'newFaceValue' , 1)
208 PlotFilename = Plot.Input( 'Filename' , 'Result.plt')
209 Addx = Add.Input( 'x' , 0)
210 Addy = Add.Input( 'y' , 10)
211
212 # Creation of Output variables
213 AddFuncValue = Add.Port( 'FuncValue' )