Useful tools
MaterialPointGenerator.sortbycol
— Methodsortbycol(pts, col::T) where T <: Int
Description:
Sort the points in pts
according to the column col
.
MaterialPointGenerator.csv2geo2d
— Methodcsv2geo2d(csv_file::String, geo_file::String)
Description:
Convert the CSV file (.csv) to the Gmsh geo (.geo) file.
MaterialPointGenerator.sort_pts
— Methodsort_pts(pts::Matrix)
Description:
Sort the points in pts by the (z-), y-, and x-coordinates, in that order (2/3D).
MaterialPointGenerator.sort_pts_xy
— Functionsort_pts_xy(pts::Matrix)
Description:
Sort the points in pts by the x- and y-coordinates, in that order.
MaterialPointGenerator.populate_pts
— Methodpopulate_pts(pts_cen, h)
Description:
Populate the points around the center points pts_cen
with the spacing h/4
(2/3D).
MaterialPointGenerator.insolidbase
— Methodinsolidbase(mp::Matrix{T2}, surf::Matrix{T2}, nv::Matrix{T2}) where T2
Description:
Check if the points are inside the solid. The function uses the normal vector, and return the points that are outside the surface.