-
-
Notifications
You must be signed in to change notification settings - Fork 119
Change U to use custom code for parabolic profile #428
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
Conversation
Change the inlet velocity profile so as not to use the swak4foam external library with the groovyBC inlet conditions.
This is an outstanding contribution. I have and had trouble compiling groovyBC for the latest OpenFOAM 2306. The boundary condition type here is compiled (and potentially reloaded) at runtime and elides the dependency . @Ferraan do you have any idea about the OpenFOAM versions, which support this feature? |
Hi, I have tested it with OpenFOAM.org versions 9, 10, 11 and OpenFOAM.com versions 2206 and 2306 and it works in all of them. By the way I forgot to add that you should also remove the |
That's sufficient.
You can still add it here, if you want. Our |
Hi, I've changed the partitioned-heat-conduction case to remove GroovyBC. By the way, why does the case use this expression: |
There was some confusion, because we had in the tutorials for some reasons |
Actually, I am working now anyway on this case, so let me just resolve the conflict and merge. |
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.
This is very very useful for us, since we remove a required dependency that is not very easy to get or sustainably developed at the moment. Thanks a lot!
We should still add a changelog entry / mention this in the changelog.
Hi, first of all when I was testing the internalField value it did not seem to affect the results, although I have no clue as to why, that's why I removed the line. |
The updated initial condition setup works for me on v2312 and I do get a state close to the final solution after the first time step. I don't know how to export the initial field, so I set I did not compare with previous results. |
Technically, everything works. I ran the partitioned-heat case now using #449 and got an error, which is substantially bigger. For the Dirichlet solver, I get
(to be compared against the metrics reported in #449). I did some experiments, and surprisingly, the difference stem from the boundary condition, whereas the changes in the initial condition/internal field are just fine. Any clue where this could stem from? |
The problem here is the time-dependency of the boundary condition. The boundary condition is only evaluated before the very first time-step and after every time-step. Hence, the absolute time is lagging behind or (if a time window was completed) shows the time of the previous time-step. @MakisH any opinion about this? |
But this means that this is an issue with the implementation of the coded boundary condition in OpenFOAM, correct? Is this really a difference between
Let's not hack using seemingly unneeded elements. We could, of course, document this workaround.
Is there an
Remember that, as we are going through the function objects interface, the time we set the boundary conditions on the coupling interface may also be one step behind. But I think we already checked that at some point, no? Otherwise, this could be a manifestation of this discrepancy. |
@davidscn what is your suggestion on how to proceed here? I think it would be nice to merge and release this in this cycle. |
Considering that the |
I had to resolve the merge conflicts locally, as they were to big. I squashed the commits and committed them to |
Change the inlet velocity profile so as not to use the swak4foam external library with the groovyBC inlet conditions.