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

[v1.0.1] add mesh-method discontinous #101

Closed
adtzlr opened this issue Oct 28, 2021 · 0 comments
Closed

[v1.0.1] add mesh-method discontinous #101

adtzlr opened this issue Oct 28, 2021 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@adtzlr
Copy link
Owner

adtzlr commented Oct 28, 2021

Introduce a method for transforming a connected mesh into a disconnected mesh. Template code:

import numpy as np
from felupe import Mesh


def as_discontinous(self):
    points = self.points[self.cells].reshape(-1, self.dim)
    cells = np.arange(self.cells.size).reshape(*self.cells.shape)
    return Mesh(points, cells, cell_type=self.cell_type)
@adtzlr adtzlr added the enhancement New feature or request label Oct 28, 2021
@adtzlr adtzlr self-assigned this Oct 28, 2021
@adtzlr adtzlr closed this as completed Oct 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant