wolfhece.mesh2d.gpu_2d
Module Contents
- class wolfhece.mesh2d.gpu_2d.infiltration_GPU(parent: Sim_2D_GPU)[source]
-
- property nb_zones: wolfhece.PyVertexvectors.Zones[source]
- class wolfhece.mesh2d.gpu_2d.Sim_2D_GPU(directory: str | pathlib.Path = '')[source]
Simulation 2D GPU – Interface
- 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_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)
- 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
- 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.