|
[Sponsors] | |||||
[Other] sedFoam: two-phase flow sediment transport model |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|
|
#81 |
|
New Member
Eduard Puig Montella
Join Date: Sep 2021
Posts: 13
Rep Power: 6 ![]() |
Hi Legacy,
Have you started your case from scratch? It is difficult to answer your question without more details on your case. I suggest you start with the tutorial available in sedFoam called 2DPipelineScour. It has a similar geometry, and you should be able to adjust it to match the boundary conditions of your case. I have adjusted the 2DPipelineScour tutorial (tar.gz file attached) to reproduce an oscillatory flow similar to the one in the article you are referring to. The case runs smoothly, and you can observe the flow reversing in the following picture: ![]() Maybe setting zeroGradient velocity at the outlet will help get rid of the instabilities at the outlet. You should also adjust the geometry to fit your case and make sure the boundary conditions are the same as in the article. For instance, I haven't modified the omega and k inlet conditions to be sinusoidal as in the article. I hope this setup helps you model the scour as in the article. 2DPipelineScourOscil.tar.gz |
|
|
|
|
|
|
|
|
#82 |
|
New Member
Join Date: Jul 2021
Posts: 16
Rep Power: 6 ![]() |
Dear Eduard Puig Montella,
Thanks for quick response. I tried your case and adjusted my the simulation setup similar to the article. I tried different ramp up times but after 9-10 seconds simulation starts to diverge. Here is test case for the article. Could you please have a look at it? Thanks. |
|
|
|
|
|
|
|
|
#83 |
|
New Member
Eduard Puig Montella
Join Date: Sep 2021
Posts: 13
Rep Power: 6 ![]() |
Hi,
I tested your case with a lower Courant number (set to 0.1) and the simulations ran without problems. See the following video: ![]() What version of SedFoam are you using? I am using the latest version, SedFoam2312. If the problem persists, can you tell us where the instabilities are appearing? Is it at the boundary conditions, near the cylinder, at the interface, etc.? |
|
|
|
|
|
|
|
|
#84 |
|
New Member
Join Date: Jul 2021
Posts: 16
Rep Power: 6 ![]() |
Thank you for spending time on this. The instabilities appear near the cylinder. My run crashes around t=9.5 seconds. Suspended sediments gets "stuck" to cylinder and it causes sharp gradients in the U.a field.
I am using version 2212. I think it has something to do with my installation. I will give it a try with the docker image of sedFoam. Thanks again! |
|
|
|
|
|
|
|
|
#85 |
|
New Member
Join Date: Jul 2021
Posts: 16
Rep Power: 6 ![]() |
Hi,
I compiled the sedFoam (latest version) with OpenFOAM v2312. I still have the same problem. Attached, please see the instabilities around the cylinder. The suspended sediment "attaches" to the cylinder and leads to instabilities. You can see on the top left of the cylinder where U.a (vertical component) = -2 m/s. |
|
|
|
|
|
|
|
|
#86 |
|
New Member
Eduard Puig Montella
Join Date: Sep 2021
Posts: 13
Rep Power: 6 ![]() |
I am really surprised you are encountering such instabilities because I do not observe them, at least not for the first 15 seconds. Please run the following case without any modifications.
testCase_eduard.tar.gz |
|
|
|
|
|
|
|
|
#87 |
|
New Member
daiminglang
Join Date: Apr 2024
Posts: 3
Rep Power: 3 ![]() |
Hi,
I'm learning the tutorial cases and I meet a problem. In the 1D precursor case of 3DScour, how can I control the fully developed velocity using gradPMEAN? What is the corresponding relationship between them? If I want a flow velocity of 0.326 m/s, how should I determine the value of gradPMEAN? I'm looking forward to your reply. |
|
|
|
|
|
|
|
|
#88 |
|
New Member
Eduard Puig Montella
Join Date: Sep 2021
Posts: 13
Rep Power: 6 ![]() |
hey daiml95,
the easiest and most practical way is to use meanVelocityForce in fvOptions. Just add this into your constant/fvOptions: Code:
meanVelocityForce
{
type meanVelocityForce;
active true;
selectionMode all;
fields (U.b);
Ubar (0.326 0 0); // Target mean velocity in x-direction
alternatively, if you really need to use gradPMEAN , then, unless you have a Poiseuille flow i think the better approach is to play with different gradPMEAN values in a 1D case until you get 0.326 m/s |
|
|
|
|
|
|
|
|
#89 |
|
New Member
Clemente Gotelli
Join Date: Mar 2025
Posts: 2
Rep Power: 0 ![]() |
Hello,
I would like to use SedFOAM to model sediment transport in a curved open channel and include turbines represented using the turbinesFoam package. Since turbinesFoam applies actuator-line forces through fvOptions, I would like to confirm whether SedFOAM is fully compatible with fvOptions. • Does SedFOAM support fvOptions in its current implementation? • If yes, are there any recommendations or caveats when applying actuator-line forces, especially regarding which velocity field or phase should be targeted? • If not fully compatible, are there known workarounds or patches to enable fvOptions in SedFOAM? Any guidance or references would be greatly appreciated. Thank you! |
|
|
|
|
|
|
|
|
#90 |
|
New Member
Eduard Puig Montella
Join Date: Sep 2021
Posts: 13
Rep Power: 6 ![]() |
Hi Clemente,
Short answer: yes, sedFoam is fully compatible with OpenFOAM’s fvOptions in its current implementation. That means you can introduce source terms like actuator-line forces. In fact, sedFoam applies fvOptions.correct() to the momentum equations of both phases. I have never worked with turbinesFoam or actuator-line forces, but sometimes I use fvOptions to control the mean water velocity, for example in constant/fvOptions with a block such as: Code:
meanVelocity1
{
type meanVelocityForce;
selectionMode all;
fields (U.b);
Ubar (1 0 0);
}
In general, I don’t think a workaround is required if you’re using a recent sedFoam version that already supports fvOptions. Just make sure to compile sedFoam and turbinesFoam with the same OpenFOAM version, load the turbinesFoam library so that the custom actuator-line fvOption is recognized, and you should be good to go. I hope this helps, and good luck with your simulation! Eduard |
|
|
|
|
|
|
|
|
#91 | |
|
New Member
Clemente Gotelli
Join Date: Mar 2025
Posts: 2
Rep Power: 0 ![]() |
Hi Eduard,
Thanks a lot for the clarification regarding fvOptions in sedFoam; that was very helpful I would also like to ask for your personal opinion about the new solver, sedExnerFoam. In the recent preprint the authors mention: Quote:
In short, is it worthwhile to combine both solvers, or is it better to focus only on a single model? Thank you again for your time! Best, Clemente |
||
|
|
|
||
|
|
|
#92 | |
|
New Member
Join Date: Jun 2022
Posts: 5
Rep Power: 5 ![]() |
Quote:
I am using OpenFOAM version 2412 and the latest version of sedfoam. I have attached the relevant log file for your reference. Please review the log file and provide any further suggestions or possible causes to help resolve this issue. I appreciate your help! Best Regards!38498af8-f7af-4d6f-82f2-aa8512b7f28c.jpg |
||
|
|
|
||
|
|
|
#93 |
|
New Member
Eduard Puig Montella
Join Date: Sep 2021
Posts: 13
Rep Power: 6 ![]() |
Thanks for reporting this issue. The instability comes from the shear-induced pressure term. We will check it in detail. If your case can neglect this effect, you can disable it in constant/granularRheologyProperties by setting PPressureModel none;. This should avoid the divergence, though results will change, especially in strongly sheared, collisional regimes. We will update the case as soon as possible.
|
|
|
|
|
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Issues on the simulation of high-speed compressible flow within turbomachinery | dowlee | OpenFOAM Running, Solving & CFD | 11 | August 6, 2021 07:40 |
| use mixture model to simulate two-phase flow with phase change | dxm2008 | Fluent Multiphase | 5 | September 7, 2016 15:15 |
| Free Surface Flow with Sediment Transport | M. Riffai | CFX | 3 | September 5, 2013 10:45 |
| How do model two phase granular flow in Porous media? | bahman | FLUENT | 1 | December 6, 2012 05:39 |
| Transitional Flow Shear Stress Transport (SST) k-omega Turbulence Model | josechen | FLUENT | 0 | July 20, 2011 17:06 |