Skip to content

Improve performance of 1D visualization for curved P4estMesh #2471

@ranocha

Description

@ranocha

I improved the algorithm to find 1D points used for visualization in linear P4estMeshes in #2334 and #2340. It would be nice to extend this to curved meshes as well, see the comments in

function unstructured_2d_to_1d_curve(u, mesh::P4estMesh{2, 2, Float64},
equations, dg::DGSEM, cache,
curve, slice,
point, nvisnodes,
solution_variables)
# TODO: Currently, the efficient search functionality is only implemented
# for linear meshes. If the mesh is not linear, we fall back to the naive
# but general approach.
if length(mesh.nodes) != 2
return unstructured_2d_to_1d_curve_general(u, mesh, equations,
dg, cache,
curve, slice,
point, nvisnodes,
solution_variables)
end
# From here on, we know that we only have to deal with a linear mesh.

and

function unstructured_3d_to_1d_curve(u,
mesh::Union{P4estMesh{3, 3, Float64},
T8codeMesh{3, Float64}},
equations, dg::DGSEM, cache,
curve, solution_variables)
# TODO: Currently, the efficient search functionality is only implemented
# for linear meshes. If the mesh is not linear, we fall back to the naive
# but general approach.
if length(mesh.nodes) != 2
return unstructured_3d_to_1d_curve_general(u, equations, dg, cache,
curve, solution_variables)
end
# From here on, we know that we only have to deal with a linear mesh.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions