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

Sanitise nurbsPatchData input #3

Open
Tracked by #50
rath3t opened this issue Jan 3, 2023 · 1 comment
Open
Tracked by #50

Sanitise nurbsPatchData input #3

rath3t opened this issue Jan 3, 2023 · 1 comment
Assignees

Comments

@rath3t
Copy link
Owner

rath3t commented Jan 3, 2023

The passed order of control points should be checked and the user should be informed in it is passed wrongly

@rath3t rath3t self-assigned this Jan 3, 2023
@rath3t rath3t changed the title Sanities nurbsPatchData input Sanitise nurbsPatchData input Jan 3, 2023
@tarun-mitruka
Copy link
Collaborator

const std::array<int, gridDim> order = {1 ,1};
const std::vector<std::vector<ControlPoint>> controlPoints
    = {{{.p = {0, 0}, .w = 1}, {.p = {0, L}, .w = 1}}, {{.p = {L, 0}, .w = 1}, {.p = {L, L}, .w = 1}}};
auto controlNet = Dune::IGA::NURBSPatchData<gridDim, dimWorld>::ControlPointNetType(dimSize, controlPoints);
patchData = Dune::IGA::degreeElevate(patchData, 0, 1);
patchData = Dune::IGA::degreeElevate(patchData, 1, 1);

const std::vector<std::vector<ControlPoint>> controlPoints
      = {{{.p = {0, 0}, .w = 1}, {.p = {L / 2.0, 0}, .w = 1}, {.p = {L, 0}, .w = 1}},
         {{.p = {0, L / 2.0}, .w = 1}, {.p = {L / 2.0, L / 2.0}, .w = 1}, {.p = {L, L / 2.0}, .w = 1}},
         {{.p = {0, L}, .w = 1}, {.p = {L / 2.0, L}, .w = 1}, {.p = {L, L}, .w = 1}}};
auto controlNet = Dune::IGA::NURBSPatchData<gridDim, dimWorld>::ControlPointNetType(dimSize, controlPoints);
const std::array<int, gridDim> order = {2, 2};

Different node numbering if grid is generated with above set of control points

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

No branches or pull requests

2 participants