Closed uekerman closed 3 years ago
The original motivation was that the setups are technically different and we currently have the system physics/setup/solvers
. Keep in mind that e.g. flap_perp/OpenFOAM-FEniCS
explicitly copies the fluid case from flap_perp/OpenFOAM-CalculiX
and this system could in principle work for all the cases in the same setup/
level.
I think that mixing the 2D with the 3D case would cause more confusion than it would solve problems. In any case, the difference would be small for the user, but we would need to adapt again our system tests and documentation.
What motivation do you see for changing to this system?
I would prefer to close this and only see it in context of #28.
To which extend is the OpenFOAM case different when coupling to dealii_2D or dealii_3D? I thought it's identical, so still the same setup
.
Motivation would be simplify the structure, so one step towards #28 :smile: But maybe I don't see certain difficulties.
For the user the naming scheme cylinderFlap
and cylinderFlap_2D
might be confusing as they are both "2D" setups.
flap_perp
and flap_perp_2d
, as well as cylinderFlap
and cylinderFlap_2d
are almost identical, apart from the dimension of the interface in precice-config.xml
and a few other minor details that should be the same.
Still, I don't see why the suggested system is simpler. I would rather merge the 2d and 3d cases, if we aim for simplicity.
Still, I don't see why the suggested system is simpler. I would rather merge the 2d and 3d cases, if we aim for simplicity.
Maybe the best solution is to only keep the dealii_2D case and move it to flap_perp
and instead add an OpenFOAM-dealii in 3D_Tube.
I see the systemtests / documentation issue. I did not intend this to be done immediately, but more as a discussion towards #28.
What motivation do you see for changing to this system?
The motivation is also: If people coming from the deal.II side look in the tutorials repo, the 'more default' i.e. deal.II3D-OpenFOAM case is in the respective case folder. I would like to somehow emphasize, that the default tutorial is 2D, which is here currently separated.
The setup is nearly the same for both: Just the config changes (dimension and z-dead) and I reduced the problem size on the solid side.
So, here are the differences between the 2D and the 3D variant of each case.
I see that we need to do the following:
Polynomial degree
in both (which?)0.3
should work for both, while 1
should cause issues in the 2D)precice-config.xml
, assuming the 2D as defaultflap_perp_2D
and cylinder_flap_2D
directoriesflap_perp_2D
--> flap_perp
Use the same Polynomial degree in both (which?)
I just reduced it for 3D to make the simulation faster. More accuracy is obviously obtained with a higher degree.
Use the same thickness for the OpenFOAM domains (0.3 should work for both, while 1 should cause issues in the 2D)
Why should 1 cause issues? Since we are working now with stress, it shouldn't matter any more.
After both cases are consistent and are working, move the important changes as comments in the precice-config.xml, assuming the 2D as default Delete the flap_perp_2D and cylinder_flap_2D directories Explain this in the README.md Update the documentation Update the system tests for flap_perp_2D --> flap_perp
So, the fastest way to get, what you propose is to delete the 3D case, move the 2D in the 'main' case folder (?) and add comments, how to deal with a quasi 3D case, right?
Use the same Polynomial degree in both (which?)
I just reduced it for 3D to make the simulation faster. More accuracy is obviously obtained with a higher degree.
Then we can set it to 4 and leave this also as a comment.
Use the same thickness for the OpenFOAM domains (0.3 should work for both, while 1 should cause issues in the 2D)
Why should 1 cause issues? Since we are working now with stress, it shouldn't matter any more.
Right, I missed the Stress-Force change. Maybe this is something we should also clearly document as a difference from the other tutorials.
After both cases are consistent and are working, move the important changes as comments in the precice-config.xml, assuming the 2D as default Delete the flap_perp_2D and cylinder_flap_2D directories Explain this in the README.md Update the documentation Update the system tests for flap_perp_2D --> flap_perp
So, the fastest way to get, what you propose is to delete the 3D case, move the 2D in the 'main' case folder (?) and add comments, how to deal with a quasi 3D case, right?
Exactly!
Related issue about missing README: https://github.com/precice/tutorials/issues/48
Related to #28.
@uekerman I think we can close this issue since #146 it, correct?
Let's close it once we merge to develop.
We currently have the following structure in subfolder
FSI
:│ ├── 3D_Tube │ │ └── OpenFOAM-CalculiX │ ├── cylinderFlap │ │ ├── OpenFOAM-CalculiX │ │ ├── OpenFOAM-deal.II │ │ └── OpenFOAM-FEniCS │ ├── cylinderFlap_2D │ │ └── OpenFOAM-deal.II │ ├── flap_perp │ │ ├── OpenFOAM-CalculiX │ │ ├── OpenFOAM-deal.II │ │ ├── OpenFOAM-FEniCS │ │ └── SU2-CalculiX │ └── flap_perp_2D │ └── OpenFOAM-deal.II
Wouldn't this be better?
│ ├── 3D_Tube │ │ └── OpenFOAM-CalculiX │ ├── cylinderFlap │ │ ├── OpenFOAM-CalculiX │ │ ├── OpenFOAM-deal.II_2D │ │ ├── OpenFOAM-deal.II_3D │ │ └── OpenFOAM-FEniCS │ ├── flap_perp │ │ ├── OpenFOAM-CalculiX │ │ ├── OpenFOAM-deal.II_2D │ │ ├── OpenFOAM-deal.II_3D │ │ ├── OpenFOAM-FEniCS │ │ └── SU2-CalculiX