Skip to content

Function to convert variable between being defined on elements and vertices #184

@fmccormack

Description

@fmccormack

Would it be possible to add a function to quickly enable conversion of a field between being defined on elements and vertices?

E.g. defining the x coordinates on an element rather than vertex in matlab is:
x_el = mean(md.mesh.x(md.mesh.elements),2);

Converting velocity from being defined on elements to vertices in matlab is:
vel_vert = averaging(md, vel_el, 0);

Metadata

Metadata

Assignees

Labels

pyissmDefault label for all pyISSM issues

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions