Tutorials
In this section some tutorials on how to use pyforce will be discussed.
In addition to the already installed packages, set by the requirements.txt file, trame, ipywidgets, openpyxl, trame-vtk and trame-vuetify are needed to execute the tutorials. They can be installed using pip:
python -m pip install trame ipywidgets openpyxl trame-vtk
The following case studies are discussed:
Flow over Cylinder (solved with FEniCSx): DFG2 benchmark
Offline: Generation of time-dependent snapshots.
Offline: Creation of the reduced space using POD for vector fields and plotting the modes.
Online: POD with Interpolation adopting linear and RBF interpolation.
Stationary Multi-group Diffusion equation: ANL11-A2 reactor from the Argonne Code Center - Supplement 2 at https://www.osti.gov/biblio/12030251. The following topics will be discussed:
Offline: Generation of parametric snapshots. FunctionsList class and later export.
Offline: Creation of the reduced space using the Proper Orthogonal Decomposition (POD).
Offline: Generalised Empirical Interpolation Method (GEIM) to generate basis functions and place sensors.
Offline: Sensor Placement with the SGREEDY algorithm using the POD basis.
Online: Effect of random noise onto the GEIM reconstruction, stabilisation with TR-GEIM.
Online: Direct State estimation Parameterised-Background Data-Weak formulation (PBDW), considering noisy data.
Buoyant Cavity (solved with OpenFOAM-6, taken from ROSE-ROM4FOAM)
Offline: Import from OpenFOAM and plotting using pyvista.
Offline: Creation of the reduced space using the POD and GEIM.
Online: Indirect Reconstruction (PE+POD-I), considering noisy data.
Coming Soon: multiphysics (neutronics+thermal-hydraulics) with dolfinx and OpenFOAM.
Each tutorial requires a dataset to be generated: the notebooks generating the dataset are available in the tutorials, alternatively the data can be downloaded from Zenodo.