.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "auto_examples/fibre_texture.py" .. LINE NUMBERS ARE GIVEN BELOW. .. only:: html .. note:: :class: sphx-glr-download-link-note :ref:`Go to the end ` to download the full example code. .. rst-class:: sphx-glr-example-title .. _sphx_glr_auto_examples_fibre_texture.py: =================================== Average stiffness of fibre texture =================================== This example shows how to compute the Voigt-Reuss-Hill average of crystals with perfect fibre texture. .. GENERATED FROM PYTHON SOURCE LINES 9-14 Define fibre texture ------------------------------------- We define the stiffness tensor for BCC austenite using its elastic constants. They are taken from the `Materials Project (mp-13) `_. .. GENERATED FROM PYTHON SOURCE LINES 14-17 .. code-block:: Python from elasticipy.tensors.elasticity import StiffnessTensor C = StiffnessTensor.cubic(C11=274, C12=175, C44=89) .. GENERATED FROM PYTHON SOURCE LINES 18-21 Create a gamma fibre texture ------------------------------------------------- The gamma texture correspond to alignment of <1 1 1> with normal direction. .. GENERATED FROM PYTHON SOURCE LINES 21-25 .. code-block:: Python from elasticipy.crystal_texture import FibreTexture gamma = FibreTexture.gamma() print(gamma) .. rst-class:: sphx-glr-script-out .. code-block:: none Fibre texture <1. 1. 1.> || [0, 0, 1] .. GENERATED FROM PYTHON SOURCE LINES 26-30 Plot the corresponding pole figure ------------------------------------ The pole figure of uvw directions, defined with the help of `orix `_, as pole figures. Eg.: .. GENERATED FROM PYTHON SOURCE LINES 30-32 .. code-block:: Python fig, ax = gamma.plot_as_pole_figure(uvw=[1,0,0]) .. image-sg:: /auto_examples/images/sphx_glr_fibre_texture_001.png :alt: fibre texture :srcset: /auto_examples/images/sphx_glr_fibre_texture_001.png :class: sphx-glr-single-img .. GENERATED FROM PYTHON SOURCE LINES 33-36 Compute the Hill average -------------------------- The Voigt-Reuss-Hill average of the polycrystal is: .. GENERATED FROM PYTHON SOURCE LINES 36-39 .. code-block:: Python Chill = C.Hill_average(orientations=gamma) print(Chill) .. rst-class:: sphx-glr-script-out .. code-block:: none Stiffness tensor (in Kelvin mapping): [[310.73 164.6 148.67 0. 0. 0. ] [164.6 310.73 148.67 -0. -0. -0. ] [148.67 148.67 326.67 -0. 0. 0. ] [ 0. -0. 0. 120.76 0. -0. ] [ 0. -0. -0. -0. 120.76 0. ] [ -0. 0. -0. -0. 0. 146.13]] .. GENERATED FROM PYTHON SOURCE LINES 40-44 Check transversely isotropy --------------------------- The transversely isotropy, resulting from the fibre texture along ND, can be evidenced by looking at the Young modulus, which is constant along any direction in XY plane: .. GENERATED FROM PYTHON SOURCE LINES 44-46 .. code-block:: Python Chill.Young_modulus.plot3D() .. raw:: html


.. rst-class:: sphx-glr-timing **Total running time of the script:** (0 minutes 0.403 seconds) .. _sphx_glr_download_auto_examples_fibre_texture.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: fibre_texture.ipynb ` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: fibre_texture.py ` .. container:: sphx-glr-download sphx-glr-download-zip :download:`Download zipped: fibre_texture.zip ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_