Turbulence-Resolving Integral Simulations (TRIS) applies a moment-of-momentum integral approach, derived from Navier-Stokes, to run the time evolution of the integrated velocity and pressure fields. The Python code here provides an animation of a chosen field depending on the user input.
unlisted
ubuntu2204o nBfg 3 � @ s$ d dl T d dlZd dlZd dlmZ d dlmZ d dlZej � dddd�� ej � dd d �� ejddd � ejddd� dd� Zdd� Z G dd� d�ZG dd� d�Zdd� Zd6dd�Zd6dd�Zd d!� Zd"d#� Zd$d%� Zd&d'� Zd6d(d)�Zd6d*d+�Zd,d-� Zd6d.d/�Zd0d1� Zd2d3� Zd4d5� ZdS )7� )�*N)�Image� � g�������?)zlines.linewidthzlines.markersizezlines.markeredgewidth� � )z font.sizezlegend.fontsize�font�serif)�family�textT)�usetexc C � t �| �d S )Nr ��spec�sici��x� r �0/home/user/JFM-Notebooks/figure-3/tris_models.py�Si � r c C r )Nr r r r r r �Ci r r c @ s e Zd ZdZddd �ZdS )�ParamszJData structure for storing and passing input parameters for TRIS closures.�= ףp=�?�������@� �r@�333333�?�333333�?�{�G�z�?� @� � �?Tc C sX || _ || _|| _|| _|| _|| _|| _|| _| | _| | _ || _ || _| | _|| _ d S �N)�kappa�B�Re�Pi_ref�Cuv�Cs0�Cs1�Cp�Cn�n�Ctau�CPi� linearize� flow_angle)�selfr# r$ r% r&