Skip to content

Commit e86b9e1

Browse files
committed
Fix link to Server context doc section
1 parent 1692221 commit e86b9e1

24 files changed

+174
-174
lines changed

examples/02-modal-harmonic/00-multi_harmonic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
1010
.. note::
1111
This example requires the Premium ServerContext.
12-
For more information, see :ref:`_user_guide_server_context`.
12+
For more information, see :ref:`user_guide_server_context`.
1313
1414
1515
"""

examples/02-modal-harmonic/04-modal_superposition.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
1414
.. note::
1515
This example requires the Premium ServerContext.
16-
For more information, see :ref:`_user_guide_server_context`.
16+
For more information, see :ref:`user_guide_server_context`.
1717
1818
"""
1919

examples/03-advanced/01-solve_harmonic_problem.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
1111
.. note::
1212
This example requires the Premium ServerContext.
13-
For more information, see :ref:`_user_guide_server_context`.
13+
For more information, see :ref:`user_guide_server_context`.
1414
1515
"""
1616

examples/03-advanced/02-volume_averaged_stress.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
1313
.. note::
1414
This example requires the Premium ServerContext.
15-
For more information, see :ref:`_user_guide_server_context`.
15+
For more information, see :ref:`user_guide_server_context`.
1616
1717
"""
1818
from ansys.dpf import core as dpf

examples/03-advanced/03-exchange_data_between_servers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
1313
.. note::
1414
This example requires the Premium ServerContext.
15-
For more information, see :ref:`_user_guide_server_context`.
15+
For more information, see :ref:`user_guide_server_context`.
1616
1717
"""
1818

examples/03-advanced/04-extrapolation_stress_3d.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
3333
.. note::
3434
This example requires the Premium ServerContext.
35-
For more information, see :ref:`_user_guide_server_context`.
35+
For more information, see :ref:`user_guide_server_context`.
3636
3737
"""
3838

examples/03-advanced/05-extrapolation_strain_2d.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
3333
.. note::
3434
This example requires the Premium ServerContext.
35-
For more information, see :ref:`_user_guide_server_context`.
35+
For more information, see :ref:`user_guide_server_context`.
3636
3737
"""
3838

examples/03-advanced/06-stress_gradient_path.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
1313
.. note::
1414
This example requires the Premium ServerContext.
15-
For more information, see :ref:`_user_guide_server_context`.
15+
For more information, see :ref:`user_guide_server_context`.
1616
1717
"""
1818

examples/03-advanced/07-load_plugin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
99
.. note::
1010
This example requires the Premium ServerContext.
11-
For more information, see :ref:`_user_guide_server_context`.
11+
For more information, see :ref:`user_guide_server_context`.
1212
1313
"""
1414

examples/04-file-IO/00-hdf5_double_float_comparison.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
1111
.. note::
1212
This example requires the Premium ServerContext.
13-
For more information, see :ref:`_user_guide_server_context`.
13+
For more information, see :ref:`user_guide_server_context`.
1414
1515
"""
1616

examples/04-file-IO/01-reduced_matrices_export.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
1010
.. note::
1111
This example requires the Premium ServerContext.
12-
For more information, see :ref:`_user_guide_server_context`.
12+
For more information, see :ref:`user_guide_server_context`.
1313
1414
"""
1515

examples/04-file-IO/04-basic-load-file.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
1212
.. note::
1313
This example requires the Premium ServerContext.
14-
For more information, see :ref:`_user_guide_server_context`.
14+
For more information, see :ref:`user_guide_server_context`.
1515
1616
"""
1717

examples/05-plotting/00-basic_plotting.py

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -47,25 +47,25 @@
4747
mesh.plot(field_or_fields_container=field, title='Mesh with field', text='Mesh field plot')
4848

4949

50-
##############################################################################################
51-
# This next section requires a Premium context to be active du to the ``split_mesh`` operator.
52-
# Comment this last part to run the example as Entry.
53-
54-
dpf.SERVER.apply_context(dpf.AvailableServerContexts.premium)
55-
56-
# One can also plot a MeshesContainer. Here our mesh is split by material.
57-
split_mesh_op = dpf.Operator("split_mesh")
58-
split_mesh_op.connect(7, mesh)
59-
split_mesh_op.connect(13, "mat")
60-
meshes_cont = split_mesh_op.get_output(0, dpf.types.meshes_container)
61-
meshes_cont.plot(title='Meshes Container', text='Meshes Container plot')
62-
# A fields_container can be given as input, with results on each part of our split mesh.
63-
disp_op = dpf.Operator("U")
64-
disp_op.connect(7, meshes_cont)
65-
ds = dpf.DataSources(examples.find_multishells_rst())
66-
disp_op.connect(4, ds)
67-
disp_fc = disp_op.outputs.fields_container()
68-
meshes_cont.plot(disp_fc, title='Meshes Container disp_fc', text='Meshes Container disp_fc plot')
69-
# Additional PyVista kwargs are supported, such as:
70-
meshes_cont.plot(off_screen=True, notebook=False, screenshot='meshes_cont_plot.png',
71-
title='Meshes Container', text='Meshes Container plot')
50+
# ##############################################################################################
51+
# # This next section requires a Premium context to be active du to the ``split_mesh`` operator.
52+
# # Comment this last part to run the example as Entry.
53+
#
54+
# dpf.SERVER.apply_context(dpf.AvailableServerContexts.premium)
55+
#
56+
# # One can also plot a MeshesContainer. Here our mesh is split by material.
57+
# split_mesh_op = dpf.Operator("split_mesh")
58+
# split_mesh_op.connect(7, mesh)
59+
# split_mesh_op.connect(13, "mat")
60+
# meshes_cont = split_mesh_op.get_output(0, dpf.types.meshes_container)
61+
# meshes_cont.plot(title='Meshes Container', text='Meshes Container plot')
62+
# # A fields_container can be given as input, with results on each part of our split mesh.
63+
# disp_op = dpf.Operator("U")
64+
# disp_op.connect(7, meshes_cont)
65+
# ds = dpf.DataSources(examples.find_multishells_rst())
66+
# disp_op.connect(4, ds)
67+
# disp_fc = disp_op.outputs.fields_container()
68+
# meshes_cont.plot(disp_fc, title='Meshes Container disp_fc', text='Meshes Container disp_fc plot')
69+
# # Additional PyVista kwargs are supported, such as:
70+
# meshes_cont.plot(off_screen=True, notebook=False, screenshot='meshes_cont_plot.png',
71+
# title='Meshes Container', text='Meshes Container plot')

examples/05-plotting/04-plot_on_path.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
1111
.. note::
1212
This example requires the Premium ServerContext.
13-
For more information, see :ref:`_user_guide_server_context`.
13+
For more information, see :ref:`user_guide_server_context`.
1414
1515
"""
1616

examples/05-plotting/05-plot_on_warped_mesh.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
1010
.. note::
1111
This example requires the Premium ServerContext.
12-
For more information, see :ref:`_user_guide_server_context`.
12+
For more information, see :ref:`user_guide_server_context`.
1313
1414
"""
1515

examples/06-distributed-post/02-distributed-msup_expansion.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
6969
.. note::
7070
This example requires the Premium ServerContext.
71-
For more information, see :ref:`_user_guide_server_context`.
71+
For more information, see :ref:`user_guide_server_context`.
7272
7373
"""
7474

examples/06-distributed-post/03-distributed-msup_expansion_steps.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171
7272
.. note::
7373
This example requires the Premium ServerContext.
74-
For more information, see :ref:`_user_guide_server_context`.
74+
For more information, see :ref:`user_guide_server_context`.
7575
7676
"""
7777

0 commit comments

Comments
 (0)