mindflow.data.BoundaryIC

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

Sampling data of initial condition.

Parameters

geometry (Geometry) – specifies geometry information of initial condition.

Raises

ValueError – if sampling_config.ic of geometry is None.

Supported Platforms:

Ascend GPU

Examples

>>> from mindflow.geometry import generate_sampling_config, Geometry
>>> from mindflow.data import BoundaryIC
>>> geometry_config = dict({'IC' : 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_ic = BoundaryIC(geometry=geom)