| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
There was a problem hiding this comment.
Besides the fact that solver and config are in the same directory, it looks good overall. I have not yet tried to run it.
Sorry, something went wrong.
|
@fsimonis this seems to be close to merging. Does this need more work from your side, or just a new review iteration? edit: Actually, no. There is still a blocking modeling issue. |
Sorry, something went wrong.
|
Just finished a co-working session with @fsimonis. I pushed some new commits, which make the custom solver work with dynamic meshes and adjusts the case to apply dynamic mesh refinement with dynamicRefineFvMesh, based on the magnitude of the gradient of the transported value. The settings are in constant/dynamicMeshDict and are currently rather arbitrary. Next step would be to refine these. We worked with an uncoupled scalar transport case based on the pitzDaily tutorial. Here is the draft (also with arbitrary settings): Run with: rm -rf 0.* && blockMesh && dynamicScalarTransportFoam. The next step would be to further understand and adjust the mesh refinement settings. The coupled case currently fails, but this is expected since the adapter does not yet support remeshing (precice/openfoam-adapter#382). I can start an implementation of that. The accumulation of T at the outlet remains. Making the channel longer and refining the mesh showed that the accumulation is really on the last 2-3 layers of the mesh. Changing the system/fvSchemes strongly affected the behavior (to the worse): divSchemes
{
default none;
- div(phi,T) Gauss linearUpwind grad(T);
+ div(phi,T) Gauss linear grad(T);
}However, the numerics and the boundary conditions are the same as in the pitzDaily case, so this might be unrelated. I would look next if the changes from the standard scalarTransportFoam have any effect (but I would expect not). Some URLs for reference: |
Sorry, something went wrong.
|
I got the non-AMR version running. I moved the AMR specific changes to #689 and will revert this PR to the non-AMR version. |
Sorry, something went wrong.
|
@MakisH I think I implemented all suggestions. Could you review again? |
Sorry, something went wrong.
There was a problem hiding this comment.
I applied a few more changes directly, and in terms of usability and integration to the rest of the tutorials, the case is ready. It still needs reference results for the system tests (I can add them).
I still have doubts about the outlet conditions and the space integration of T. But I am also still confused.
Sorry, something went wrong.
|
I tried setting div(phi,T) bounded Gauss upwind; in fvSchemes and it can remove the false accumulation of the scalar at the outlet both with BC advective or zeroGradient for outlet. |
Sorry, something went wrong.
|
Thank you, @Fujikawas! I can confirm that this scheme works just fine. Here is what I get with the coarse mesh and zeroGradient: channel-transport-openfoam-bounded-gauss-upwind.mp4I will then use this scheme, the coarse mesh, the simpler zeroGradient condition, I will remove the custom meshing script. |
Sorry, something went wrong.
co-authored-by: June <94080048+Fujikawas@users.noreply.github.com>
There was a problem hiding this comment.
This looks good to me now. Since I changed the mesh, @fsimonis could you please confirm that this is fine for you?
Since this is coming from a fork, I will add the reference results directly on develop.
Sorry, something went wrong.
|
Such a simple solution and we spent hours debugging this 😂 Having the simpler mesh is actually better as it makes the base of the AMR version more realistic. @MakisH feel free to merge |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
This PR adds an OpenFOAM variant of the transport participant of the channel-transport tutorial.
The case uses a modified version of the scalarTransportFoam application. Main difference is that we assume U to change every timestep. Therefore we need to recompute $\phi$ every timestep.
@MakisH Can you give this PR a thorough review to make it as easy to use as possible?
Result:
Screencast_20251210_145936.webmChecklist:
edit: updated to the working state