Examples#
These examples demonstrate the behavior and usage of PyDPF - Composites. Some additional modules are required to run the examples which can be installed with the following command:
pip install ansys-dpf-composites[examples]
It is recommended to run the examples in a Jupyter notebook or an IPython console. Copy / pasting to a standard Python interactive shell can lead to formatting issues (e.g. IndentationError). This issue is resolved with Python 3.13 and later.

Plot of the orientation tensor for short fiber composites
Plot of the orientation tensor for short fiber composites