6.1.1.5.1.5. thyrsis.simulation.hynverse module

Inversion : determining hydraulic conductivities by inversing hydraulic heads

USAGE:

python -m thyrsis.simulation.hynverse database.sqlite [-t, -c, -v]

OPTIONS

-t : test -r : run inversion -v : verbose

class thyrsis.simulation.hynverse.Hynverse(code, perm)

Bases : object

Process class for inversion calculation

calcul()

Hynverse proccess

get_params()

Returns hynverse parameters

Renvoie

parameters

Type renvoyé

dict

hynverse_param()

Returns hynverse parameters from database

Renvoie

parameters

Type renvoyé

dict

hynverse_pp()

Defines pilot points and indexes them

Return idx_pp

pp index

Rtype idx_pp

rtree.Index

Return xy_pp

pp coordinates list

Rtype xy_pp

list

Return list_pp

Point_pilote list

Rtype list_pp

list

hynverse_tmpdir()

Creates hynverse directory

Renvoie

tempdir

Type renvoyé

string

hynverse_zones()

Creates hynverse zones from pilot points

Renvoie

zones dictionnary

Type renvoyé

dict

index_mailles()

Computes index for mesh

Return idx_m

mesh index

Rtype idx_m

rtree.Index

Return xy_m

mesh coordinates list

Rtype xy_m

list

index_nodes()

Computes index for nodes coordinates

Return idx_n

nodes index

Rtype idx_n

rtree.Index

Return xy_n

nodes coordinates list

Rtype xy_n

list

index_npp()

Computes index of nearest nodes from pilot point

Return idx_npp

npp index

Rtype idx_npp

list

Return pds_npp

weight of nearest nodes

Rtype pds_npp

list

index_ppm()

Computes index of pilot point from center mesh elements

Return idx_ppm

ppm index

Rtype idx_ppm

list

index_ppn()

Computes index of pilot point from nodes

Return idx_ppn

ppn index

Rtype idx_ppn

list

index_pppp()

Computes index of pilot points from themself

Return idx_pppp

pp index

Rtype idx_pppp

list

class thyrsis.simulation.hynverse.Point_pilote(x, y, num, nom, groupe, zone, hmes)

Bases : object

Class object for pilot point

class thyrsis.simulation.hynverse.Zone_perm(num, perm, pmin, pmax, liste_pp)

Bases : object

Class object for permeability zone

thyrsis.simulation.hynverse.distance(x1, y1, x2, y2)

Compute distance between two points

Paramètres
  • x1 (float) – x1 coord

  • y1 (float) – y1 coord

  • x2 (float) – x2 coord

  • y2 (float) – y2 coord

Renvoie

distance

Type renvoyé

float

thyrsis.simulation.hynverse.distance2(x1, y1, x2, y2)

Compute distance² between two points

Paramètres
  • x1 (float) – x1 coord

  • y1 (float) – y1 coord

  • x2 (float) – x2 coord

  • y2 (float) – y2 coord

Renvoie

distance²

Type renvoyé

float

thyrsis.simulation.hynverse.fun1(x, y)

Return coefficient 1/-1

Paramètres
  • x (float) – x1 coord

  • y (float) – y1 coord

Renvoie

coefficient

Type renvoyé

int

thyrsis.simulation.hynverse.hynverse(dbname, run=False, perm=False, verbose=False)

Launch MHYNVERSE process

Paramètres
  • dbname (string) – path to database

  • run (bool) – run flag

  • perm (bool) – permeability field provided flag

  • verbose (bool) – verbose flag

Renvoie

success state

Type renvoyé

bool

thyrsis.simulation.hynverse.poids(x, y, nearest, xy)

Compute weight between point, used for indexing

Paramètres
  • x (float) – x1 coord

  • y (float) – y1 coord

  • nearest (list) – nearest points list

  • xy (list) – pilots point xy

Renvoie

weight

Type renvoyé

float