Salome HOME
Merge branch 'fbt/addAngleInCylPrimitive'
[modules/geom.git] / doc / salome / gui / GEOM / input / tui_execution_distribution.doc
1 /*!
2
3 \page tui_execution_distribution_page Distribute Geometry script execution.
4
5 \n Several kinds of studies require distributed geometry and mesh calculations.
6 For instance, in some parametric studies, we need to compute a lot of geometries
7 and associated meshes in parallel on a cluster.
8
9 These studies are defined with a YACS Schema in which geometry and meshing
10 are done in distributed Python nodes running on distributed SALOME Containers.
11 We need to instantiate GEOM and SMESH Engines on these containers.
12
13 The standard way of geometry initialization in a Python script is:
14 \code
15 import salome
16 salome.salome_init()
17
18 from salome.geom import geomBuilder
19 geompy = geomBuilder.New(theStudy)
20 \endcode
21
22 With this initialization, the geometry engine runs in the default container,
23 embedded in the SALOME Graphical User Interface process
24 (see YACS documentation for concepts).
25
26 To select another engine than the default “FactoryServer”,
27 the CORBA engine can be given as an optional parameter of the method New.
28 For instance:
29 \code
30 from salome.geom import geomBuilder
31 lcc = salome.lcc
32 engineGeom = lcc.FindOrLoadComponent("myServer", "GEOM")
33 geompy = geomBuilder.New(theStudy, engineGeom)
34 \endcode
35
36 Or, within a Distributed Python Node of a YACS Schema, where the container
37 is already provided in the Python context of the node, with <em>my_container</em>:
38 \code
39 from salome.geom import geomBuilder
40 my_container.load_component_Library("GEOM")
41 engineGeom = my_container.create_component_instance("GEOM", 0)
42 geompy = geomBuilder.New(theStudy, engineGeom)
43 \endcode
44
45
46 */