wolfhece.mesh2d.cst_2D_boundary_conditions
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.cst_2D_boundary_conditions.Direction(*args, **kwds)[source]
Bases:
enum.Enum
Create a collection of name/value pairs.
Example enumeration:
>>> class Color(Enum): ... RED = 1 ... BLUE = 2 ... GREEN = 3
Access them by:
attribute access:
>>> Color.RED <Color.RED: 1>
value lookup:
>>> Color(1) <Color.RED: 1>
name lookup:
>>> Color['RED'] <Color.RED: 1>
Enumerations can be iterated over, and know how many members they have:
>>> len(Color) 3
>>> list(Color) [<Color.RED: 1>, <Color.BLUE: 2>, <Color.GREEN: 3>]
Methods can be added to enumerations, and members can have their own attributes – see the documentation for details.
- class wolfhece.mesh2d.cst_2D_boundary_conditions.BCType_2D_GPU(*args, **kwds)[source]
Bases:
enum.Enum
Boundary conditions for 2D simulations with wolfgpu
- class wolfhece.mesh2d.cst_2D_boundary_conditions.BCType_2D(*args, **kwds)[source]
Bases:
enum.Enum
Boundary conditions for 2D simulations
- class wolfhece.mesh2d.cst_2D_boundary_conditions.BCType_2D_OO(*args, **kwds)[source]
Bases:
enum.Enum
Boundary conditions for 2D simulations with Object-Oriented approach
- wolfhece.mesh2d.cst_2D_boundary_conditions.BCType_2D_To_BCType_2D_GPU(bc_type: BCType_2D) BCType_2D_GPU [source]
- wolfhece.mesh2d.cst_2D_boundary_conditions.revert_bc_type(bc_type: BCType_2D | BCType_2D_OO | BCType_2D_GPU, val: int)[source]
Return the BCType corresponding to the given value
Useful for GUI or scripts