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 single evaluation of a dynamic model, parametric sweep analysis (static/dynamic models), evaluation with states saving and loading.

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

TBROM evaluation examples#

These examples show how to use PyTwin to evaluate field results from TBROM included in a TWIN file. Multiple workflows are demonstrated such as image and field data generation (with possible processing of data to other Ansys tools like Fluent or Mechanical), TBROM evaluation with input field parameterization, output field visualization for detailed post processing (including projection on CFD/FEA meshes).

3D field ROM example for images generation

3D field ROM example for images generation

Twin evaluation of a 3D field ROM and data transfer to FEA model inputs

Twin evaluation of a 3D field ROM and data transfer to FEA model inputs

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

3D field ROM example with CFD mesh based visualization

3D field ROM example with CFD mesh based visualization

3D field ROM example with FEA mesh based visualization

3D field ROM example with FEA mesh based visualization

Gallery generated by Sphinx-Gallery