wolfhece.mesh2d.gpu_2d

Module Contents

class wolfhece.mesh2d.gpu_2d.infiltration_GPU(parent: Sim_2D_GPU)[source]
property infiltrations_chronology: list[float][source]
property nb_steps: int[source]
property nb_zones: wolfhece.PyVertexvectors.Zones[source]
plot_plt(figax=None, show=True)[source]

Plot the infiltration data

class wolfhece.mesh2d.gpu_2d.Sim_2D_GPU(directory: str | pathlib.Path = '')[source]

Simulation 2D GPU – Interface

property boundary_condition[source]
property is_loaded: bool[source]
property sim[source]
property nullvalues: dict[str, int][source]

Define null values for the arrays

unload() None[source]

Unload the simulation

_get_name_arrays() list[str][source]

Get the name of the arrays

_get_description_arrays() list[str][source]

Get the description of the arrays

get_header() wolfhece.wolf_array.header_wolf[source]

Get the header of the simulation

get_arraysasdict() dict[str, wolfhece.wolf_array.WolfArray][source]

Get all the arrays from the simulation

mimic_mask(source: wolfhece.wolf_array.WolfArray, dest: list[wolfhece.wolf_array.WolfArray])[source]

Mimic the mask

create_arrays_from(source: wolfhece.wolf_array.WolfArray)[source]

Create arrays from a source

create_from_vector(vector: Sim_2D_GPU.create_from_vector.vector, dx: float, dy: float)[source]

Create a simulation from a vector

create_from_array(array: wolfhece.wolf_array.WolfArray)[source]

Create a simulation from an array

create_from_header(header: wolfhece.wolf_array.header_wolf) Sim_2D_GPU[source]

Create a simulation from a header

set_mesh_size(dx, dy)[source]

Set the mesh size

set_magnetic_grid(dx: float, dy: float, origx: float, origy: float)[source]

Définition de la grille magnétique

Parameters:
  • dx (float) – taille de maille selon X

  • dy (float) – taille de maille selon Y

  • origx (float) – origine selon X (coordonnée du noeud d’intersection)

  • origy (float) – origine selon Y (coordonnée du noeud d’intersection)

align2grid(x: float, y: float)[source]

Alignement sur la grille magnétique

verify_files()[source]

Verify the files

get_wizard_text(lang: str = 'en') str[source]

Get the wizard text

bc2txt() str[source]

“ Get the text for the boundary conditions Manager

check_infiltration() str[source]
Informations sur les zones d’infiltration :
  • nombre de zones dans la simulation

  • nombre de cellules de chaque zone

  • première maille de chaque zone

  • nombre de temps énumérés dans le fichier .fil

  • Warning si le nombre de zones est différent entre les fichiers .inf et .fil

check_environment() list[str][source]
run(limit_dryuploops: int = -1)[source]

run the simulation in a subprocess

write_initial_condition_from_record(recpath: pathlib.Path = None, id_rec: int = None, destpath: pathlib.Path = None)[source]

Write the initial condition from a record

Parameters:
  • recpath – the path to the records. if None, the default path is used and ‘simul_gpu_results’ as result directory.

  • id_rec – the index of the record you want to start from.

  • destpath – the path where to save the initial condition. If None, the current path is used.

copy2dir(destpath: pathlib.Path)[source]

Copy the simulation to a directory

reload_ic()[source]

Reload the initial conditions from the disk and store ir in the same memory space.

reload_all()[source]

Reload all the data from the disk and store them in the same memory space.