optimus.postprocess.exterior_interior_points_eval

Module Contents

Functions

exterior_interior_points_eval(grid, points, ...[, verbose])

Evaluate whether a field point is within a domain or not using a solid angle method.

compute_solid_angle(elements_barycent_x_coordinate, ...)

Compute the solid angle value for a triangular element.

optimus.postprocess.exterior_interior_points_eval.exterior_interior_points_eval(grid, points, solid_angle_tolerance, verbose=False)

Evaluate whether a field point is within a domain or not using a solid angle method.

Parameters
gridbempp.api.Grid

surface grid defining a domain

pointsnumpy.ndarray

Field points to be evaluated if they are inside the volume defined by the surface grid or not. Array of size (3,N).

solid_angle_tolerancefloat, None

the tolerance in solid angle method. If set to None/zero boundary points are not identified, otherwise they are.

verboseboolean

display the log

Returns
points_interiornumpy.ndarray

Array of size (3,N) with coordinates of the interior points.

points_exteriornumpy.ndarray

Array of size (3,N) with coordinates of the exterior points.

points_boundarynumpy.ndarray

Array of size (3,N) with coordinates of the points that lie on the surface of the domain.

index_interiornumpy.ndarray

Array of size (1,N) with boolean values identifying the interior points.

index_exteriornumpy.ndarray

Array of size (1,N) with boolean values identifying the exterior points.

index_boundarynumpy.ndarray

Array of size (1,N) with boolean values identifying the surface points.

optimus.postprocess.exterior_interior_points_eval.compute_solid_angle(elements_barycent_x_coordinate, elements_barycent_y_coordinate, elements_barycent_z_coordinate, points, normals, elements_surface_area, point_index)

Compute the solid angle value for a triangular element.

Parameters
elements_barycent_x_coordinatenumpy.ndarray
elements_barycent_y_coordinatenumpy.ndarray
elements_barycent_z_coordinatenumpy.ndarray
pointsnumpy.ndarray
normalsnumpy.ndarray
elements_surface_areanumpy.ndarray
point_indexnumpy.ndarray
Returns
solid_anglenumpy.ndarray