https://linen.dev logo
Join Discord
Powered by
# incompressible
  • m

    Moose

    05/06/2025, 4:34 PM
    Are you using turbulence scheme ?
  • m

    Moose

    05/06/2025, 4:35 PM
    hey btw
  • m

    Moose

    05/06/2025, 4:36 PM
    If I recal for LES I think I saw somewhere in tutorials from Jozsef Nagy (or someone else) that usually you don't want to have Co > 0.7
  • m

    Moose

    05/06/2025, 4:36 PM
    Either way for turbulence I think it was around 1 and 2 max for some simulation. I am outta work now but I can have a look at it tomorrow morning if you are interested
  • q

    qr

    05/06/2025, 4:41 PM
    Its RANS, k epsilon standard...
  • q

    qr

    05/06/2025, 4:42 PM
    Yeah okay. I'll stay conservative at 0.8 for now, coz this is a lonnng sim and the only priority above speed is that the solution shouldn't turn out totally crap.
  • m

    Moose

    05/07/2025, 1:12 PM
    So after asking my seniors, ideal is 0.5 for RANS and never above 1
  • m

    Moose

    05/07/2025, 1:13 PM
    (my group works in thermodynamics applied in water boiling)
  • t

    tkeskita

    05/07/2025, 2:21 PM
    I'm now at Co=0.3 😬 although a completely different case
  • m

    muehhlllerr

    05/07/2025, 4:07 PM
    So just my 50cts that I would not trust at all. Basically each time we solve an equation in OpenFOAM we implicitly solve a linearised version of that equation. This means that to deal with the nonlinearity of the equation we must repeat this process multiply times, and with each repitition the temporal "solution" behaviour of our solver gets closer to a "truly non linear euler implicit" solver. Which is unconditionaly stable.
  • m

    muehhlllerr

    05/07/2025, 4:09 PM
    Now stable is very far away from accurate. Euler implicit is only accurate for processes that are "slow" with regards to its timestep. Thats why to get accurate results you must have a low Courant Number, whereas when just stability is a concern you can crank up the corrector steps, and take advantage of the high stability.
  • m

    muehhlllerr

    05/07/2025, 4:12 PM
    Since you mentioned being afraid of creating an unphysical solution by running with a high co number at first, from which you cant recover afterwards even if you lower the co number I would argue, that this risk allways exists. Since your initial guess is most likley a unphysical one. We most allways assume that the solver will converge to a physical solution even when starting with a unphysical one therefore Id say starting with a large timestep, even though that will lead to fast processes being way to strongly dampened is not a problem.
  • q

    qr

    05/07/2025, 4:22 PM
    Yeah I just need to get past the initial transient phase even it is not very physical in that period. But I'm not sure if I should do a Co>1 in multiphase as the interface may begin to fly off into oblivion.
  • m

    muehhlllerr

    05/08/2025, 7:46 AM
    I fear that is case dependent but of cause with keeping it low your on the safe side
  • y

    Yann

    05/08/2025, 8:15 AM
    not a multiphase expert, but could it help to use local time stepping?

    https://www.youtube.com/watch?v=eLWt7HGpD9gâ–¾

  • q

    qr

    05/08/2025, 8:16 AM
    No unfortunately I don't think this aligns with my use case.
  • t

    tkeskita

    05/08/2025, 3:37 PM
    First simulate with a coarse mesh, and then map the solution to fine mesh and continue
  • q

    qr

    05/08/2025, 3:44 PM
    I really appreciate the suggestion 🙂 I wish I could do that - its an annular pipe with core of one phase and annulus of another, so I cannot do without a certain resolution - I do have super-coarse mesh everywhere that I could afford (everywhere away from the region of interest - after having convinced myself that solution remains largely unaffected by super coarse away mesh) I did think of breaking it down into AMI type two domains, generating one part the problematic annulus by itself to steadiness and then using its surface as an interface with downstream part to develop it separately. But unfortunately I don't have so much time to experiment with these tools at the moment so I'm just brute forcing through the whole domain. Unfortunately it comes with the cost of time, as may be expected.
  • t

    timbuk2

    05/17/2025, 2:06 PM
    @qr I agree with this if I’m interpreting it right. In my experience I use high courant to get quicker convergence and then run final , solution with lower courant or different schemes and turbulence models and then the final solution matches physical modeling very well. This is in models with pretty high Reynolds # though where inertial forces dominate
  • f

    Favalli

    06/06/2025, 1:30 PM
    I got a case with fixed pressure values on both the inlet and outlet, what bondary condition should i use for the U field in the inlet? The idea is to get the flow rate as a result. The volume is nothing crazy, a straight pipe basically
  • f

    Favalli

    06/06/2025, 1:31 PM
    For some reason nothing i found online seems to converge
  • q

    qr

    06/06/2025, 1:33 PM
    I'd imagine that fixing pressure gradient automatically result in flow? Something like Bernoulli at least as a lump sum non turbulent mean flow?
  • q

    qr

    06/06/2025, 1:35 PM
    Does it converge for small difference but not for larger ones? (That maybe caused due to flow instabilities)
  • m

    muehhlllerr

    06/06/2025, 4:09 PM
    Imo the main problem ist that this combination of bcs results in a very bad initial guess if you use a uniform internal pressure field
  • m

    muehhlllerr

    06/06/2025, 4:10 PM
    Basically what you are starting out with is a shock tube due to the local jump in pressure you have at either inlet or outlet
  • m

    muehhlllerr

    06/06/2025, 4:12 PM
    Resulting either in a shock traveling down stream or a „dilution wave?“ (germans call it a verdünnungsfächer) traveling upstream
  • m

    muehhlllerr

    06/06/2025, 4:13 PM
    Both lead to large local gradients which you will not be resolving (would make no sense for the steady state result) resulting in well problems due to the unresolved non linearity
  • m

    muehhlllerr

    06/06/2025, 4:15 PM
    Furthermore even if you get the thing stabil enough (lots of artificially dissipation id guess) to get the right result you will have to iterate till those shocks decay because they get reflected at your domain boundaries
  • m

    muehhlllerr

    06/06/2025, 4:16 PM
    What id try is starting of the simulation with a linearly decaying flow field, or try the standard setup where you fix velocity at the inlet instead of pressure and use a programmed boundary condition that samples the inlet pressure and calibrates the velocity till you reach your wanted pressure drop
  • p

    Paketbote

    06/07/2025, 8:45 AM
    You could try [totelPressure ](https://doc.openfoam.com/2306/tools/processing/boundary-conditions/rtm/derived/inletOutlet/totalPressure/) for p and [pressureInletOutletVelocity](https://doc.openfoam.com/2312/tools/processing/boundary-conditions/rtm/derived/inletOutlet/pressureInletOutletVelocity/) for U on inlet and outlet. I had success with this in a similar case.