Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New save_maker_chain function #285

Merged
merged 8 commits into from
Jan 15, 2025
Merged

New save_maker_chain function #285

merged 8 commits into from
Jan 15, 2025

Conversation

aelligp
Copy link
Collaborator

@aelligp aelligp commented Jan 13, 2025

I added a new function to save a line of points to a vtk file to track e.g. the evolution of the surface over time. Our use case is to track the marker chain.

save_marker_chain(fname::String, cell_vertices::LinRange{Float64}, h_vertices::Vector{Float64})

Save a vector of points as a line in a VTK file. The X and Y coordinates of the points are given by `cell_vertices` and `h_vertices`, respectively.
The Z coordinate is set to zero as we are working in 2D.

## Arguments
- `fname::String`: The name of the VTK file to save. The extension `.vtk` will be appended to the name.
- `cell_vertices::LinRange{Float64}`: A range of X coordinates for the points.
- `h_vertices::Vector{Float64}`: A vector of Y coordinates for the points.

## Example
cell_vertices = LinRange(0.0, 1.0, 10)
h_vertices = [0.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9]
save_marker_chain("Example", cell_vertices, h_vertices)

Also features some errors fixes and minor changes to the testing framework

Screenshot 2025-01-15 at 10 29 40

Copy link
Collaborator

@albert-de-montserrat albert-de-montserrat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great thanks!

@aelligp aelligp merged commit 35b7da6 into main Jan 15, 2025
16 of 18 checks passed
@aelligp aelligp deleted the pa-vtk_chain branch January 15, 2025 10:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants