3 \page tui_execution_distribution_page Distribute Geometry script execution.
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.
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.
13 The standard way of geometry initialization in a Python script is:
18 from salome.geom import geomBuilder
19 geompy = geomBuilder.New(theStudy)
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).
26 To select another engine than the default “FactoryServer”,
27 the CORBA engine can be given as an optional parameter of the method New.
30 from salome.geom import geomBuilder
32 engineGeom = lcc.FindOrLoadComponent("myServer", "GEOM")
33 geompy = geomBuilder.New(theStudy, engineGeom)
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>:
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)