Skip to content

Structured Mesh Element Orientation #15

@JustinPorter88

Description

@JustinPorter88

https://github.com/ptrbortolotti/SONATA/blob/9f037d7dd78ea9b19698596f828138cae99da539/SONATA/cbm/mesh/cell.py#L110-L116

For structured mesh portions, the element orientation theta_11 does not appear to always be calculated correctly for triangular elements. This issue comes up for the first/last element of each layer with the rounded edges. Also, potentially a problem for sharp edge refinement of quad elements to triangles (e.g., sharp trailing edges).

Notably, normal quad elements placed around the perimeter appear to be handled correctly and before the elements get split to triangles.

For debugging can add the line:

            print(len(self.nodes), np.degrees(np.arctan2(v1.Y(), v1.X())))

Running the example for the 15 MW at the 0.7 station appears to show the behavior by the triangular elements having notably different angles than neighboring triangles/quads. Specifically for meshing segment 3, layer 2. Also segment 0, layer 2 appears to shows this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions