Examples#

End-to-end examples show how you can use PyTwin. If the pytwin package is installed on your machine, you can download these examples as Python files or Jupyter notebooks and run them locally.

Twin evaluation examples#

These examples show how to use the evaluation workflow in a TWIN file. Included are multiple workflow demonstrations such as these:

  • Single evaluation of a dynamic model

  • Parametric sweep analysis of a dynamic model

  • Parametric response surface ROM evaluation

  • Scalar dynamic ROM simulation with state saving and loading

  • Field ROM evaluation and results visualization from the twin runtime and postprocessed in Ansys Fluent

  • Field ROM evaluation and the transfer of results as inputs stress analysis in Ansys Mechanical

  • Field ROM evaluation with inputs parameterized by both scalar and field data, and snapshot generation on demand

Twin evaluation

Twin evaluation

Parametric dynamic twin evaluation

Parametric dynamic twin evaluation

Parametric twin evaluation of a response surface ROM

Parametric twin evaluation of a response surface ROM

Twin evaluation of a scalar dynamic ROM

Twin evaluation of a scalar dynamic ROM

3D field ROM example for images generation

3D field ROM example for images generation

Twin evaluation of a 3D field ROM co-simulation with an FEA model

Twin evaluation of a 3D field ROM co-simulation with an FEA model

3D field ROM example for input field snapshot projection and snapshot generation on demand

3D field ROM example for input field snapshot projection and snapshot generation on demand

3D field ROM example for field snapshot input and output as Numpy array

3D field ROM example for field snapshot input and output as Numpy array

Gallery generated by Sphinx-Gallery