mindflow.data.Equation
- class mindflow.data.Equation(geometry)[source]
Sampling data of equation domain.
- Parameters
geometry (Geometry) – specifies geometry information of equation domain.
- Raises
TypeError – if geometry is not instance of class Geometry.
ValueError – if sampling_config of geometry is
None
.KeyError – if sampling_config.domain of geometry is
None
.
- Supported Platforms:
Ascend
GPU
Examples
>>> from mindflow.geometry import generate_sampling_config, Geometry >>> from mindflow.data import Equation >>> geometry_config = dict({'domain' : 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 = Equation(geometry=geom)