-
-
Notifications
You must be signed in to change notification settings - Fork 12
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
including two flap case #39
Conversation
Port to preCICE v2
Update master branch
Switch to dynamic error checking
Fix compiler version (precice#30)
Update tests and parallelization
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is ready to review. It compiles and seems to be running with precice/tutorials#110.
The code looks reasonable.
@davidscn what do you think? Do we need anything else?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually, we need an additional step: it looks like we pass the wrong vertices to setMeshVertices
and each flap is still located in the middle.
@davidscn where can we modify the support_points
? It looks like you call DoFTools::map_dofs_to_support_points()
in adapter.h
, but I am not sure what is going on under the hood. Maybe you have an idea?
I will have a look at the deal.II side later. |
Exactly, here is the confusing part:
You can reproduce this by adding |
Should we unify the definition of |
That's weird, in my case if I visualize in paraview the same files you did in the screenshot the flaps are located in the same position. Can this be a paraview related issue? in my case I use 5.7.0 |
If you have doubts about paraview you could directly look into the vtks.
and
so that I can directly identify the left and the right flap respectively. |
Thanks! It is indeed smt related to paraview, when I open the files I see same as you:) |
@carme-hp can it maybe be that the files were out-of-date? What if you completely remove the |
Good point. Maybe we could just make the location a parameter in the deal.II adapter? |
@MakisH you are right! I could visualize it correctly when I completely removed the precice-output and run again. Sorry about the confusion. Maybe we could add the precice-output directory to the Allclean to avoid this problem happening again? |
Yes, let's do that! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Much cleaner and simpler than the previous attempt! 👍 😄
Please remove the compiled binaries from the commit, add them to the .gitignore
, and let's squash before merging.
Other than that, the code looks clear, apart from one point that may need a comment. @davidscn could you please also have a quick look at the code changes?
The linear case builds and seems to be running correctly and producing reasonable results visually. Same for the nonlinear.
Nice as well: this change is backwards-compatible. I did not need to update the tutorials to run it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have (not yet) introduced a format checker, but I think the PR doesn't use the .clang-format
of this repo. So please format the PR and maybe rebase your branch to the current develop branch.
Are you sure with this? If we change the parameter file, we also need to change it in the tutorials. Maybe we can define here a default value in order to avoid it. In addition, we need to update the parameter files in this repository. |
I thought there was already a default value. If not, there should be. Does it not run out-of-the-box for you? |
so I put 0.0 as the default value for the flat location, which is the location that we had before. So I expect it works backwards (it did for the flapperpendicular2D case) |
Ah ok, perfect!
Am 17. Dez. 2020, 15:44, um 15:44, carme-hp <[email protected]> schrieb:
…so I put 0.0 as the default value for the flat location, which is the
location that we had before. So I expect it works backwards (it did for
the flapperpendicular2D case)
--
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub:
#39 (comment)
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From my side, this can be merged after the files are formatted with clang-format.
@davidscn any last objections/wishes?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, not really. It might be worth to add the flap location to our 'default' parameter files in this repo in order to have a complete list of all available options here. However, you can do this according to your opinion. I can also format the file after merging if you struggle with this. Feel free to merge.
...so that we can see the result of the indentation check.. |
With this modifications, the dealii-adapter would support the tutorial case with two perpendicular flaps. Besides FSI3 and PF, now we have the case PFleft and PFright, who only differ from PF by the x coordinates in point_bottom and point_tip.