Skip to main content

Paquete para cálculo de autovalores y autofunciones.

Project description

Orr-Sommerfeld-convmix-CGB Package

It is a python package developed in order to solve the Orr Sommerfeld equations. It is free for the community and allows to calculate disturbances for one flow of interest: Mixed convection in vertical rectangular channels like the following one:

Descripción de la imagen

The perturbations can be used to analyze the phenomenon of the laminar-turbulent transition.

Table of contents

General info

Fluid systems are often described and characterized by their stability or receptivity behavior. Perturbations of infinitesimal amplitude that grow when superimposed on an equilibrium state of the flow render the base flow unstable. The laminar-turbulent transition can have a significant impact on heat transfer, especially in mixed convection applications where temperature effects are manifested through buoyancy forces.

To understand the flow conditions that cause this transition mathematically and how it affects heat transfer, the linear stability theory can be used. This theory predicts when a laminar flow becomes turbulent by analyzing small disturbances and determining if they will grow or dissipate. If the disturbances grow, the laminar flow becomes unstable and transitions to turbulence. This package focuses on examining the temporal transition, using spatial variables as inputs.

Technologies

Project is created with:

In the next figure, it is shown the flux diagram of the main function: Orr-Sommerfeld

Descripción de la imagen

Installation

It is possible to install using pip:

pip install Orr-Sommerfeld-convmix-CGB

Examples

  • Importing the package:
from Orr_Sommerfeld_convmix_CGB import OS_CM
  • The necessary inputs to compute the spectrum of temporal eigenvalues and their respective perturbations are:
N=100 #Number of nodes t
Ra=100 #Rayleigh number
Pr=0.71 #Prandtl number
Re=300 #Reynolds number
alpha=2.5 #perturbation wavelength in the x-direction
beta=0 #perturbation wavelength in the z-direction
  • Can compute the spectrum of temporal eigenvalues (disturbances frecuency) and their respective eigenvectors, which are the amplitude of the disturbances. Also can obtain the real and imaginary parts of the eigenvalue which its imaginary part is the maximum:
[lam,V,max_real,max_imag]=OS_CM.Orr_Sommerfeld(N,Ra,Pr,Re,alpha,beta)
  • The lam array is sorted from highest imaginary part to lowest imaginary part, and it contains all the eigenvalues. To obtain the eigenvectors corresponding to a given eigenvalue, you can do:
[v,u,w,tita]=OS_CM.vector_perturbaciones(N,lam,V,0,alpha,beta,Re,Ra)
  • Where v, u and w are de amplitudes of the velocity disturbances and tita is the amplitude of the temperature disturbance. In this example, the eigenvalue choosen was the first one in lam.
  • There is also available a function to normalize the disturbances such that when the phase of v is zero, its norm is maximum and equal to 1:
[v,u,w,tita]=OS_CM.normalizacion(v,u,w,tita)
  • Additionally, there is a function that plots the eigenvalues using the matplotlib library. The package also includes an interactive plot of the eigenvalues using pandas
OS_CM.grafica_autovalores(N,Ra,Pr,Re,alpha,beta)

The result is for example:

Descripción de la imagen

Descripción de la imagen

Video showing interactive plot

  • Eigenvectors can also be plotted using the previously mentioned normalization: OS_CM.grafica_autofunciones(N,Ra,Pr,Re,alpha,beta)

The result is something like this:

Descripción de la imagen

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

orr_sommerfeld_convmix_cgb-0.2.7.tar.gz (7.1 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file orr_sommerfeld_convmix_cgb-0.2.7.tar.gz.

File metadata

File hashes

Hashes for orr_sommerfeld_convmix_cgb-0.2.7.tar.gz
Algorithm Hash digest
SHA256 a8bbe90984c1f1ad97e2ce1201324e947d23de0441e01dea54ab0cb8de116f72
MD5 32e3fa89267b28e620df225d72eb08af
BLAKE2b-256 f34d979968b3ca7a93b73ee997da61a6fe772c0c6cbf6cf7accc8588d2800197

See more details on using hashes here.

File details

Details for the file orr_sommerfeld_convmix_cgb-0.2.7-py3-none-any.whl.

File metadata

File hashes

Hashes for orr_sommerfeld_convmix_cgb-0.2.7-py3-none-any.whl
Algorithm Hash digest
SHA256 8e0122d1c6df2bbfec1aa25855d765fc3e280d5231bf46ce80df334a7f83838d
MD5 216caece2b9640a1f45b469ef4050430
BLAKE2b-256 6521d9fc90550f3aafb6bf31157c7224c8387e3ed6a3493a0aa12c082e304051

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page