1 .. _parallel_compute_page:
9 This functionality is a work in progress.
11 It is only available for NETGEN.
13 It is only available in TUI.
16 The goal here is to speed up computation by running sub-meshes in parallel
23 .. image:: ../images/diagram_parallel_mesh.png
25 In order to parallelise the computation of the mesh we split the geometry into:
30 Then create a sub-mesh for each of those geometry.
31 And associate Hypothesis to the mesh using a hypothesis on the whole geometry
33 We will first compute sequentially the 1D+2D compound with NETGEN_1D2D.
35 Then we will compute all the solids in parallel. Having done the 1D+2D first
36 ensure that all the solids can be computed without any concurrency.
43 You follow the same principle as the creation of a sequential Mesh.
46 #. First you create the mesh:
47 .. code-block:: python
49 par_mesh = smesh.ParallelMesh(geom, name="par_mesh")
51 #. Define the Global Hypothesis that will be split into an hypothesis for the
52 1D+2D compound and one for each of the 3D solids:
53 .. code-block:: python
55 NETGEN_3D_Parameters_1 = smesh.CreateHypothesisByAverageLength( 'NETGEN_Parameters',
56 'NETGENEngine', 34.641, 0 )
57 par_mesh.AddGlobalHypothesis(netgen_parameters)
59 #. Set the parameters for the parallelisation:
60 .. code-block:: python
62 param = par_mesh.GetParallelismSettings()
66 .. code-block:: python
70 **See Also** a sample script of :ref:`tui_create_parallel_mesh`.