mindflow.data.BoundaryBC

View Source On Gitee
class mindflow.data.BoundaryBC(geometry)[source]

Sampling data of boundary condition.

Parameters

geometry (Geometry) – specifies geometry information of boundary condition. Derived from mindflow.geometry, the geometry could be cube or disk, etc.

Raises

ValueError – if sampling_config.bc of geometry is None.

Supported Platforms:

Ascend GPU

Examples

>>> from mindflow.geometry import generate_sampling_config, Geometry
>>> from mindflow.data import BoundaryBC
>>> geometry_config = dict({'BC' : dict({'random_sampling' : True, 'size' : 100, 'sampler' : 'uniform',})})
>>> sampling_config = generate_sampling_config(geometry_config)
>>> geom = Geometry("geom", 1, 0.0, 1.0, sampling_config=sampling_config)
>>> boundary_bc = BoundaryBC(geometry=geom)