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
Enable 2d axisymmetric cases #228
Comments
That's indeed something I did not yet consider. I'm a bit afraid that a warning is not enough as OpenFOAM has a very verbose output and also preCICE (potentially also the adapter) prints out information on the terminal so that the warning disappears rather quick. I would rather introduce a boolean configuration parameter in order to only pass through this line in case it was explicitly enabled. |
That would also be an option. I implemented the warning here, it works well: https://github.com/arvedes/openfoam-adapter |
This issue has been mentioned on preCICE Forum on Discourse. There might be relevant details there: https://precice.discourse.group/t/using-openfoam-adapter-with-axisymmetric-mesh/598/4 |
This adds support for axisymmetric cases, closes #228. co-authored-by: arved.enders-seidlitz@posteo.de
Hello arvedes |
My simulations worked well with this fix. What error message do you get? |
Dear
I hope this message finds you well. I wanted to express my gratitude for
your prompt response to my previous inquiry. I am currently engaged in a
simulation project involving a modified version of the perpendicular flap
tutorial, employing the coupling of OpenFOAM and deal.II through the
preCICE library.
In my initial tests using the 2D case, I encountered no issues and was able
to successfully run the simulation. However, when I transitioned to a 2D
axisymmetric configuration, I began encountering errors. Interestingly, I
managed to resolve the openFOAM fluid part's issues last night.
However, my current challenge lies in the deal.II solid part, which is
producing an inconsistent geometry error. The error message is as follows:
" An error occurred in line <227> of file
</home/habib/build/dealii-adapter/include/adapter/adapter.h> in function
void Adapter::Adapter<dim, VectorType,
ParameterClass>::initialize(const dealii::DoFHandler<dim, dim>&, const
VectorType&, VectorType&) [with int dim = 2; VectorType =
dealii::Vector<double>; ParameterClass = Parameters::AllParameters]
The violated condition was:
dim == precice.getDimensions()
Additional information:
The dimension of your solver needs to be consistent with the dimension
specified in your precice-config file. In case you run one of the
tutorials, the dimension can be specified via cmake -D DIM=dim . "
I am reaching out to inquire if you have previously encountered this
particular error and if you might have insights into potential solutions.
Your experience and guidance would be greatly appreciated.
Additionally, if you have any recommendations beyond the use of deal.II for
addressing such challenges, I would be grateful to hear your suggestions.
Once again, I thank you for your valuable time and assistance. I look
forward to your response.
Best regards,
Habib
…On Tue, Aug 22, 2023 at 9:37 AM Arved Wintzer ***@***.***> wrote:
My simulations worked well with this fix. What error message do you get?
Did you try to run without coupling?
—
Reply to this email directly, view it on GitHub
<#228 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AYQVNQJH6RBF73VRY5KGZLTXWSY3BANCNFSM5UVJYHWQ>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Dear Habib, |
Dear arvedes, |
For 2d cases with a wedge for axisymmetric simulation this causes an error. I'd suggest to change that to a warning.
openfoam-adapter/Interface.C
Line 156 in a95da52
The text was updated successfully, but these errors were encountered: