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

Easy access to neighboring node not on the boundary for LR-meshes #203

Open
kmokstad opened this issue Oct 3, 2017 · 6 comments
Open

Easy access to neighboring node not on the boundary for LR-meshes #203

kmokstad opened this issue Oct 3, 2017 · 6 comments

Comments

@kmokstad
Copy link
Contributor

kmokstad commented Oct 3, 2017

To be able to run adaptive C1-continuous plate problems (KL) with symmetry boundary conditions (the problem I showed on the whiteboard today), I need to constrain the node that is adjacent to a boundary node, but not on the boundary itself (dvs. noden innafor). That is, we need to do something like ASMs2DC1::constrainEdge but for ASMu2D. Maybe we need a ASMu2DC1 class for that.

@akva2
Copy link
Member

akva2 commented Oct 3, 2017 via email

@akva2
Copy link
Member

akva2 commented Oct 3, 2017

yes, essentially do what is done in ASMu2D::getEdgeNodes, but set depth = 2. after sort you have the nodes in interleaved fashion. but which is first (the node on the boundary, or the one inside) will depend on the edge in question, ie for left boundary you get the node on the boundary, then the one inside, on the right boundary it is the opposite.

@akva2
Copy link
Member

akva2 commented Oct 3, 2017

this->getBasis(basis)->getEdgeFunctions(edgeFunctions2,
                                          static_cast<LR::parameterEdge>(edge),2);
 ASMunstruct::Sort(u, v, orient, edgeFunctions2);
 for (auto& it : edgeFunctions2)
    std::cout << it->getId() << " " << this->getCoord(it->getId()+1) << std::endl;

@kmokstad
Copy link
Contributor Author

kmokstad commented Oct 5, 2017

OK, thanks. I will give it a try.

@VikingScientist
Copy link
Contributor

c1-inner-functions

@VikingScientist
Copy link
Contributor

This is not trivial to do in the general case. However, with the proposed solution in #207 you are guaranteed some regular structure on the boundary interior (well that's a contradiction if I ever saw one, but I think you know what I mean) which might make it easier to pick corresponding "pairs" of functions that form normal derivatives.

@kmokstad kmokstad changed the title Feature Request: Easy access to neighboring node not on the boundary for LR-meshes Easy access to neighboring node not on the boundary for LR-meshes Oct 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants