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

MeshData representing vectors #119

Open
bmxam opened this issue Jul 15, 2024 · 0 comments
Open

MeshData representing vectors #119

bmxam opened this issue Jul 15, 2024 · 0 comments
Labels
question Further information is requested

Comments

@bmxam
Copy link
Member

bmxam commented Jul 15, 2024

Currently, MeshData only accept an AbstractVector (by opposition with AbstractMatrix). When we want to represent a vector field, should we:

  1. modify the implementation of MeshData to accept matrices, then the "get_value" will look like get_value(data,i) = view(data,i,:)
  2. build a MeshData with a "vector of vectors" : MeshData([[u1_x, u1_y], [u2_x, u2_y], ...])

?

For sure method 2. does the job for now, but I am just asking the question. Note however that, with solution 2, our write_vtk methods will fail for MeshCellData (because we don't materialize them, we just get the values).

@bmxam bmxam added the question Further information is requested label Jul 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant