pheromone_dispersion.gaussian_plume module

class pheromone_dispersion.gaussian_plume.Gaussian_plume_1source(Xs, K, u, Q, w_set, w_dep)[source]

Bases: object

Class to compute a Gaussian plume (i.e. explicit solution of the CTM in a simplified set up) for one source

CDV(x)[source]

Compute a change of variable

Parameters:

x (array) – position in the x direction

Returns:

change of variable

Return type:

array

__init__(Xs, K, u, Q, w_set, w_dep)[source]

Instanciation of the class

Parameters:
  • Xs (array like) – (x,y,z) location of the source

  • K (float) – diffusion coefficient

  • u (float) – velocity value

  • Q (float) – emission rate

  • w_set (float) – settling value

  • w_dep (gloat) – deposition value

gaussian_plume(xx, yy, zz)[source]

Compute the gaussian plume

Parameters:
  • xx (array) – x mesh grid

  • yy (array) – y mesh grid

  • zz (array) – z mesh grid

Returns:

gaussian plume value at each grid point

Return type:

array

class pheromone_dispersion.gaussian_plume.Gaussian_plume_multisources(Xs, K, u, Q, w_set, w_dep)[source]

Bases: object

Classe to compute gaussian plume for multi-sources

__init__(Xs, K, u, Q, w_set, w_dep)[source]

_summary_

Parameters:
  • Xs (array like) – (x,y,z) location of the source

  • K (float) – diffusion coefficient

  • u (float) – velocity value

  • Q (array) – emission rates (for each source). Q dimension determines the number of sources

  • w_set (float) – settling value

  • w_dep (gloat) – deposition value

gaussian_plume(xx, yy, zz)[source]

Compute the gaussian plume (as the sum of the one source gaussian plume computed for each source)

Parameters:
  • xx (array) – x mesh grid

  • yy (array) – y mesh grid

  • zz (array) – z mesh grid

Returns:

gaussian plume value at each grid point

Return type:

array

pheromone_dispersion.gaussian_plume.plot_downwindprofile(xv, yv, zv, yp, zp, C, xmax=None, Cmax=None)[source]

plot the x profile at (yp,zp) position

Parameters:
  • xv (array) – mesh grid (x coordinates)

  • yv (array) – mesh grid (y coordinates)

  • zv (array) – mesh grid (z coordinates)

  • yp (float) – y coordinate of the cutting plane

  • zp (float) – z coordinate of the cutting plane

  • C (array) – gaussian plume

  • xmax (array, optional) – xmax. Defaults to None.

  • Cmax (array, optional) – Cmax. Defaults to None.

pheromone_dispersion.gaussian_plume.plot_horizontalxs(xv, yv, zv, zp, C)[source]

Plot the plume profile at zp in the x-y plane

Parameters:
  • xv (array) – mesh grid (x coordinates)

  • yv (array) – mesh grid (y coordinates)

  • zv (array) – mesh grid (z coordinates)

  • zp (float) – z coordinate of the cutting plane

  • C (array) – gaussian plume

pheromone_dispersion.gaussian_plume.plot_verticalxs(xv, yv, zv, yp, C)[source]

Plot the plume profile at yp in the x-z plane

Parameters:
  • xv (array) – mesh grid (x coordinates)

  • yv (array) – mesh grid (y coordinates)

  • zv (array) – mesh grid (z coordinates)

  • yp (float) – y coordinate of the cutting plane

  • C (array) – gaussian plume