Skip to content

Commit

Permalink
DOC: update development documentation 471d907
Browse files Browse the repository at this point in the history
  • Loading branch information
greschd committed Oct 16, 2024
1 parent 7f49a54 commit b230680
Show file tree
Hide file tree
Showing 100 changed files with 172 additions and 175 deletions.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.12.6"
"version": "3.12.7"
}
},
"nbformat": 4,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@
import numpy as np

from ansys.dpf.composites.composite_model import CompositeModel
from ansys.dpf.composites.constants import TEMPERATURE_COMPONENT
from ansys.dpf.composites.example_helper import get_continuous_fiber_example_files
from ansys.dpf.composites.layup_info import get_all_analysis_ply_names
from ansys.dpf.composites.ply_wise_data import SpotReductionStrategy, get_ply_wise_data
Expand Down Expand Up @@ -89,11 +88,11 @@
all_ply_names = get_all_analysis_ply_names(composite_model.get_mesh())
print(all_ply_names)

# The component of the temperature is 0 which is the default value.
nodal_values = get_ply_wise_data(
field=temperatures_fc,
ply_name="P1L1__ModelingPly.8",
mesh=composite_model.get_mesh(),
component=TEMPERATURE_COMPONENT,
spot_reduction_strategy=SpotReductionStrategy.MAX,
requested_location=dpf.locations.nodal,
)
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.12.6"
"version": "3.12.7"
}
},
"nbformat": 4,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.12.6"
"version": "3.12.7"
}
},
"nbformat": 4,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.12.6"
"version": "3.12.7"
}
},
"nbformat": 4,
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.12.6"
"version": "3.12.7"
}
},
"nbformat": 4,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.12.6"
"version": "3.12.7"
}
},
"nbformat": 4,
Expand Down
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.12.6"
"version": "3.12.7"
}
},
"nbformat": 4,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.12.6"
"version": "3.12.7"
}
},
"nbformat": 4,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.12.6"
"version": "3.12.7"
}
},
"nbformat": 4,
Expand Down
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.12.6"
"version": "3.12.7"
}
},
"nbformat": 4,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
},
"outputs": [],
"source": [
"import ansys.dpf.core as dpf\nimport numpy as np\n\nfrom ansys.dpf.composites.composite_model import CompositeModel\nfrom ansys.dpf.composites.constants import TEMPERATURE_COMPONENT\nfrom ansys.dpf.composites.example_helper import get_continuous_fiber_example_files\nfrom ansys.dpf.composites.layup_info import get_all_analysis_ply_names\nfrom ansys.dpf.composites.ply_wise_data import SpotReductionStrategy, get_ply_wise_data\nfrom ansys.dpf.composites.select_indices import get_selected_indices_by_dpf_material_ids\nfrom ansys.dpf.composites.server_helpers import connect_to_or_start_server\n\nserver = connect_to_or_start_server()\ncomposite_files = get_continuous_fiber_example_files(server, \"thermal_solid\")"
"import ansys.dpf.core as dpf\nimport numpy as np\n\nfrom ansys.dpf.composites.composite_model import CompositeModel\nfrom ansys.dpf.composites.example_helper import get_continuous_fiber_example_files\nfrom ansys.dpf.composites.layup_info import get_all_analysis_ply_names\nfrom ansys.dpf.composites.ply_wise_data import SpotReductionStrategy, get_ply_wise_data\nfrom ansys.dpf.composites.select_indices import get_selected_indices_by_dpf_material_ids\nfrom ansys.dpf.composites.server_helpers import connect_to_or_start_server\n\nserver = connect_to_or_start_server()\ncomposite_files = get_continuous_fiber_example_files(server, \"thermal_solid\")"
]
},
{
Expand Down Expand Up @@ -76,7 +76,7 @@
},
"outputs": [],
"source": [
"all_ply_names = get_all_analysis_ply_names(composite_model.get_mesh())\nprint(all_ply_names)\n\nnodal_values = get_ply_wise_data(\n field=temperatures_fc,\n ply_name=\"P1L1__ModelingPly.8\",\n mesh=composite_model.get_mesh(),\n component=TEMPERATURE_COMPONENT,\n spot_reduction_strategy=SpotReductionStrategy.MAX,\n requested_location=dpf.locations.nodal,\n)\n\ncomposite_model.get_mesh().plot(nodal_values)"
"all_ply_names = get_all_analysis_ply_names(composite_model.get_mesh())\nprint(all_ply_names)\n\n# The component of the temperature is 0 which is the default value.\nnodal_values = get_ply_wise_data(\n field=temperatures_fc,\n ply_name=\"P1L1__ModelingPly.8\",\n mesh=composite_model.get_mesh(),\n spot_reduction_strategy=SpotReductionStrategy.MAX,\n requested_location=dpf.locations.nodal,\n)\n\ncomposite_model.get_mesh().plot(nodal_values)"
]
},
{
Expand Down Expand Up @@ -114,7 +114,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.12.6"
"version": "3.12.7"
}
},
"nbformat": 4,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.12.6"
"version": "3.12.7"
}
},
"nbformat": 4,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.12.6"
"version": "3.12.7"
}
},
"nbformat": 4,
Expand Down
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.12.6"
"version": "3.12.7"
}
},
"nbformat": 4,
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.12.6"
"version": "3.12.7"
}
},
"nbformat": 4,
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified version/dev/_images/sphx_glr_012_fatigue_example_001.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified version/dev/_images/sphx_glr_012_fatigue_example_003.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified version/dev/_images/sphx_glr_012_fatigue_example_thumb.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ Scope failure evaluation by plies.

.. rst-class:: sphx-glr-timing

**Total running time of the script:** (0 minutes 13.822 seconds)
**Total running time of the script:** (0 minutes 21.299 seconds)


.. _sphx_glr_download_examples_gallery_examples_001_failure_operator_example.py:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ You can change the element ID of the sampling point to generate another plot.

.. rst-class:: sphx-glr-timing

**Total running time of the script:** (0 minutes 5.055 seconds)
**Total running time of the script:** (0 minutes 8.299 seconds)


.. _sphx_glr_download_examples_gallery_examples_002_sampling_point_example.py:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ Compute and plot the maximum failure value per element.

.. rst-class:: sphx-glr-timing

**Total running time of the script:** (0 minutes 3.329 seconds)
**Total running time of the script:** (0 minutes 3.541 seconds)


.. _sphx_glr_download_examples_gallery_examples_003_short_fiber_example.py:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ Implement a custom failure criterion: basic max strain

.. rst-class:: sphx-glr-timing

**Total running time of the script:** (0 minutes 3.345 seconds)
**Total running time of the script:** (0 minutes 5.066 seconds)


.. _sphx_glr_download_examples_gallery_examples_004_get_material_properties_example.py:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ Plot basic layer properties (layer thicknesses, angles, and analysis ply names).

.. rst-class:: sphx-glr-timing

**Total running time of the script:** (0 minutes 1.336 seconds)
**Total running time of the script:** (0 minutes 2.990 seconds)


.. _sphx_glr_download_examples_gallery_examples_005_get_layup_properties_example.py:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,7 @@ in the material direction in this ply.

.. rst-class:: sphx-glr-timing

**Total running time of the script:** (0 minutes 4.580 seconds)
**Total running time of the script:** (0 minutes 5.480 seconds)


.. _sphx_glr_download_examples_gallery_examples_006_filter_composite_data_example.py:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ Plot s3 at the mid-plane of a certain ply.

.. rst-class:: sphx-glr-timing

**Total running time of the script:** (0 minutes 7.420 seconds)
**Total running time of the script:** (0 minutes 7.750 seconds)


.. _sphx_glr_download_examples_gallery_examples_007_interlaminar_normal_stress_example.py:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ For DPF Server versions 7.0 and later, element information can be retrieved dire
.. rst-class:: sphx-glr-timing

**Total running time of the script:** (0 minutes 4.062 seconds)
**Total running time of the script:** (0 minutes 6.995 seconds)


.. _sphx_glr_download_examples_gallery_examples_008_assembly_example.py:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ Plot some components of the fiber orientation tensor.

.. rst-class:: sphx-glr-timing

**Total running time of the script:** (0 minutes 6.074 seconds)
**Total running time of the script:** (0 minutes 5.973 seconds)


.. _sphx_glr_download_examples_gallery_examples_009_short_fiber_orientation_tensor.py:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@ at each frequency, because we look only at the element that has the highest IRF
.. code-block:: none
[<matplotlib.lines.Line2D object at 0x7f740cdd2060>]
[<matplotlib.lines.Line2D object at 0x7f57cffd1610>]
Expand Down Expand Up @@ -509,7 +509,7 @@ Compute critical layer and critical failure mode.
.. rst-class:: sphx-glr-timing

**Total running time of the script:** (0 minutes 10.482 seconds)
**Total running time of the script:** (0 minutes 13.752 seconds)


.. _sphx_glr_download_examples_gallery_examples_010_harmonic_example.py:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ Get input files (RST and material.engd but skip the ACP layup file).

.. code-block:: none
ContinuousFiberCompositesFiles(rst=['/tmp/dataProcessingTemp140021233354496/d627602a-d574-4215-b960-6c0abbced5a6/shell.rst'], composite={}, engineering_data='/tmp/dataProcessingTemp140021233354496/fc5e4035-86ae-4ed8-b632-4d4840829e91/material.engd', files_are_local=False)
ContinuousFiberCompositesFiles(rst=['/tmp/dataProcessingTemp139679970092800/c7bec175-cb59-4c10-84b2-6a7db6a4bb5e/shell.rst'], composite={}, engineering_data='/tmp/dataProcessingTemp139679970092800/b02399e2-239a-4cd1-8e14-4c0c28ffb8a4/material.engd', files_are_local=False)
Expand Down Expand Up @@ -265,7 +265,7 @@ With ACP Standalone (for constant material properties only):

.. rst-class:: sphx-glr-timing

**Total running time of the script:** (0 minutes 6.198 seconds)
**Total running time of the script:** (0 minutes 10.108 seconds)


.. _sphx_glr_download_examples_gallery_examples_011_rst_workflow.py:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ No mean stress correction is applied.
.. code-block:: none
[<matplotlib.lines.Line2D object at 0x7f7417ea3f80>]
[<matplotlib.lines.Line2D object at 0x7f57e58340e0>]
Expand Down Expand Up @@ -378,15 +378,15 @@ Identify the element with the maximum damage
.. code-block:: none
The element with highest damage is 27.
The highest damage value is 4.612034658174498e-07.
The highest damage value is 1.7909671157032134e-06.
.. rst-class:: sphx-glr-timing

**Total running time of the script:** (0 minutes 2.674 seconds)
**Total running time of the script:** (0 minutes 4.177 seconds)


.. _sphx_glr_download_examples_gallery_examples_012_fatigue_example.py:
Expand Down
Loading

0 comments on commit b230680

Please sign in to comment.