Classes for probing values of Variables, for example, along a line.
Probe variables along a circle.
If n_point is positive, that number of evenly spaced points is used. If n_point is None or non-positive, an adaptive refinement based on element diameters is used and the number of points and their spacing are determined automatically. If it is negative, -n_point is used as an initial guess.
Get the probe points.
Returns: | pars : array_like
points : array_like
|
---|
Evaluate integral expressions.
Probe variables along a line.
If n_point is positive, that number of evenly spaced points is used. If n_point is None or non-positive, an adaptive refinement based on element diameters is used and the number of points and their spacing are determined automatically. If it is negative, -n_point is used as an initial guess.
Probe variables in given points.
Base class for all point probes. Enforces two points minimum.
Return the evaluate cache for domain-related data given by self.share_geometry.
Probe the given variable.
Parameters: | variable : Variable instance
mode : {‘val’, ‘grad’}, optional
ret_points : bool
|
---|---|
Returns: | pars : array
points : array, optional
vals : array
|
Refine the probe parametrization based on the refine_flag.
Mark intervals between points for a refinement, based on element sizes at those points. Assumes the points to be ordered.
Returns: | refine_flag : bool array
|
---|
Set the number of probe points.
Parameters: | n_point : int
|
---|
Probe variables along a ray. The points are parametrized by a function of radial coordinates from a given point in a given direction.
Try to read next data name in file fd.
Returns: | name : str
nc : int
|
---|
Read the probe data header from file descriptor fd.
Returns: | header : Struct instance
|
---|
Read probing results from a file.
Parameters: | filename : str or file object
|
---|---|
Returns: | header : Struct instance
results : dict
|
Write probing results into a file.
Parameters: | filename : str or file object
probe : Probe subclass instance
results : dict
|
---|