wolfhece.mesh2d.bc_manager
Author: HECE - University of Liege, Pierre Archambeau Date: 2024
Copyright (c) 2024 University of Liege. All rights reserved.
This script and its content are protected by copyright law. Unauthorized copying or distribution of this file, via any medium, is strictly prohibited.
Module Contents
- class wolfhece.mesh2d.bc_manager.BcManager(parent=None, linked_array: wolfhece.wolf_array.WolfArray = None, dx=1.0, dy=1.0, ox=0.0, oy=0.0, version=2, title=_('Boundary Condition manager'), width=500, height=500, DestroyAtClosing=False, Callback=None, mapviewer=None, wolfparent=None, *args, **kwargs)[source]
Bases:
wx.Frame
Boundary conditions Manager for WOLF
- FindBC(bc_type: str) tuple[str, str] [source]
Find indices of borders with associated ‘whichbc’ value
- param whichbc:
type of BC to find
:return 2 strings with indices along X and Y – ‘i j
‘
- OnSetBC(event: wx.MouseEvent)[source]
Click on Apply button
Parse BC from textboxes and apply to memory
- OnFindBorders(event: wx.MouseEvent)[source]
Click on Find borders Button
Parsing of textboxes and update selection
- ReadFileBorders(*args)[source]
Read sux and suy files
Provide path to .sux file .suy file is supposed to be in the same directory
- _nb_bc(bc: dict) int [source]
Count number of BC for border ‘bc’
- Parameters:
bc – dict of BC for a border
- _get_index(key: str, dictXY: dict) int [source]
Get index of key in dictXY
- Parameters:
key – key to find
dictXY – dictionary of borders – self.borderX or self.borderY
- ray_tracing_numpy(poly, XorY: str = 'x')[source]
Find all borders in rectangle or polygon and addto ‘selected’ dict
- get_lists_for_GPU() tuple[list[wolfhece.mesh2d.wolf2dprev.boundary_condition_2D], list[wolfhece.mesh2d.wolf2dprev.boundary_condition_2D]] [source]
Return list of BC for GPU computing