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

Export of super parametric elements #167

Closed
fredrikekre opened this issue Nov 28, 2017 · 3 comments · Fixed by #703
Closed

Export of super parametric elements #167

fredrikekre opened this issue Nov 28, 2017 · 3 comments · Fixed by #703

Comments

@fredrikekre
Copy link
Member

I don't think it works :trollface:.

@fredrikekre
Copy link
Member Author

julia> grid = generate_grid(QuadraticTriangle, (5, 5));

julia> dh = DofHandler(grid);

julia> push!(dh, :u, 1, Lagrange{2,RefTetrahedron,1}());

julia> close!(dh);

julia> u = collect(1:ndofs(dh));

julia> vtk = vtk_grid("test", grid);

julia> vtk_point_data(vtk, dh, u);
ERROR: BoundsError: attempt to access 3-element Array{Int64,1} at index [4]
Stacktrace:

@KristofferC
Copy link
Collaborator

Always just export it as linear?

@fredrikekre
Copy link
Member Author

Yes, or if both fields are quadratic I guess we can export that

@fredrikekre fredrikekre changed the title Export of sub parametric elements Export of super parametric elements Feb 20, 2018
fredrikekre added a commit that referenced this issue May 10, 2023
This patch deprecates `reshape_to_nodes` in favor of the new
`evaluate_at_grid_nodes` function which more or less does the same
thing. `evaluate_at_grid_nodes` uses the interpolation of the field to
evaluate the approximated function in the cell coordinates (by using
`reference_coordinates` of the cell as quadrature points).

Fixes #167.
fredrikekre added a commit that referenced this issue May 10, 2023
This patch deprecates `reshape_to_nodes` in favor of the new
`evaluate_at_grid_nodes` function which more or less does the same
thing. `evaluate_at_grid_nodes` uses the interpolation of the field to
evaluate the approximated function in the cell coordinates (by using
`reference_coordinates` of the cell as quadrature points). This is much
simpler, and more correct, compared to figuring out which Dofs live on
which node etc. In particular, this now support non-standard
interpolations which may not even have dofs in the nodes.

Fixes #167.
fredrikekre added a commit that referenced this issue May 11, 2023
This patch deprecates `reshape_to_nodes` in favor of the new
`evaluate_at_grid_nodes` function which more or less does the same
thing. `evaluate_at_grid_nodes` uses the interpolation of the field to
evaluate the approximated function in the cell coordinates (by using
`reference_coordinates` of the cell as quadrature points). This is much
simpler, and more correct, compared to figuring out which Dofs live on
which node etc. In particular, this now support non-standard
interpolations which may not even have dofs in the nodes.

Fixes #167.
fredrikekre added a commit that referenced this issue May 11, 2023
This patch deprecates `reshape_to_nodes` in favor of the new
`evaluate_at_grid_nodes` function which more or less does the same
thing. `evaluate_at_grid_nodes` uses the interpolation of the field to
evaluate the approximated function in the cell coordinates (by using
`reference_coordinates` of the cell as quadrature points). This is much
simpler, and more correct, compared to figuring out which Dofs live on
which node etc. In particular, this now support non-standard
interpolations which may not even have dofs in the nodes.

Fixes #167.
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 a pull request may close this issue.

2 participants