Developer Documentation
Note that these functions could be removed or change in behavior between minor version changes! Use and dispatch on these with care!
FerriteViz.num_vertices — Function
Total number of vertices
FerriteViz.ntriangles — Function
Helper to count triangles in static triangulations, e.g. for preallocations.
FerriteViz.vertices — Function
Get the vertices represented as a list of coordinates of a cell.
FerriteViz.decompose! — Function
decompose!(coord_offset, coord_matrix, ref_coord_matrix, triangle_offset, triangle_matrix, grid, cell::Union{Ferrite.AbstractCell{2,N,3}, Ferrite.AbstractCell{3,3,1}})Decompose a triangle into a coordinates and a triangle index list to disconnect it properly. Guarantees to preserve orderings and orientations.
decompose!(coord_offset, coord_matrix::Vector{Point{space_dim,T}}, ref_coord_matrix, triangle_offset, triangle_matrix, grid, cell::Union{Ferrite.AbstractCell{2,N,4}, Ferrite.AbstractCell{3,4,1}})Decompose a quadrilateral into a coordinates and a triangle index list to disconnect it properly. Guarantees to preserve orderings and orientations.
decompose!(coord_offset, coord_matrix, ref_coord_matrix, triangle_offset, triangle_matrix, grid, cell::Ferrite.AbstractCell{<:Ferrite.AbstractRefShape{3}})Decompose volumetric objects via their faces.
FerriteViz.transfer_solution — Function
transfer_solution(plotter::MakiePlotter{dim,DH,T}, u::Vector; field_idx::Int=1, process::Function=FerriteViz.postprocess) where {dim,DH<:Ferrite.AbstractDofHandler,T}Transfer the solution of a plotter to the tessellated mesh in dim.
FerriteViz.postprocess — Function
postprocess(node_values::Vector{T}) -> TTakes the nodal dof vector and maps it either to the scalar or to the euclidean norm (in the vectorial case)
FerriteViz._tensorsjl_gradient_accessor — Function
_tensorsjl_gradient_accessor(v::Tensors.Vec, field_dim_idx::Int, spatial_dim_idx::Int)This is a helper to access the correct value in Tensors.jl entities, because the gradient index is the outermost one.
FerriteViz.linear_face_cell — Function
linear_face_cell(cell::Ferrite.Cell, local_face_idx::Int)Get the geometrically linear face of a given cell.