https://linen.dev logo
Join Discord
Powered by
# les-ras
  • z

    Zino

    10/03/2025, 11:39 AM
    Exception I guess is if you're using linearUpwind limited
  • s

    slopezcastano

    10/03/2025, 11:40 AM
    linearUpwind limited is as short way to say:
  • s

    slopezcastano

    10/03/2025, 11:41 AM
    Copy code
    linearUpwind grad(<theVariable>);
    (...)
    snGrad(<theVariable>) limited;
  • s

    slopezcastano

    10/03/2025, 11:41 AM
    you can also say: linearUpwind corrected;
  • s

    slopezcastano

    10/03/2025, 11:42 AM
    for the vectorized versions linearUpwind (linearUpwindV) you want to use grad(U) for example
  • s

    slopezcastano

    10/03/2025, 11:42 AM
    finally, linearUpwind inherits from the NVD classes in FOAM
  • z

    Zino

    10/03/2025, 11:42 AM
    Oh true, forgot about those
  • s

    slopezcastano

    10/03/2025, 11:43 AM
    which need the definition of the gradient
  • z

    Zino

    10/03/2025, 11:44 AM
    Yeah just seems like it wouldn't hurt for it to default to just grad(X) where X is the field you're specifying the scheme for
  • z

    Zino

    10/03/2025, 11:44 AM
    doesn't really matter in the end though
  • z

    Zino

    10/03/2025, 11:45 AM
    Extra specificity doesn't hurt I suppose when bytes are so cheap
  • s

    slopezcastano

    10/03/2025, 11:45 AM
    Well you could avoid these confusions just by using the limited or corrected option
  • s

    slopezcastano

    10/03/2025, 11:46 AM
    Copy code
    div(X,Y) Gauss linearUpwind limited;
    div(Z,W) Gauss linearUpwind corrected;
  • z

    Zino

    10/03/2025, 11:50 AM
    if you do:
    Copy code
    linearUpwind grad(U);
    ...
    snGrad(U) limited;
    then the limiting is also applied right? Or is it not?
  • z

    Zino

    10/03/2025, 11:50 AM
    I assumed that it was
  • z

    Zino

    10/03/2025, 11:50 AM
    But never bothered to check
  • s

    slopezcastano

    10/03/2025, 12:04 PM
    On the gradient, not on the divergence
  • s

    slopezcastano

    10/03/2025, 12:05 PM
    On the divergence it will go to gradientSchemes and pick what you defined for grad(U) and then face interpolate
  • l

    littleB123

    10/05/2025, 8:10 PM
    https://www.wolfdynamics.com/wiki/tipsandtricks.pdf Look at slide 21
  • q

    qr

    10/05/2025, 8:17 PM
    That's not a justification. It could very well be a typo.
  • l

    littleB123

    10/06/2025, 5:17 AM
    Yeah sure - just thought he wanted the link. Well in the beginning the mention "It is based on my personal experience". Otherwise i guess that people seem to agree that it is typo.
  • i

    IDZTPHKKKS

    10/08/2025, 2:46 PM
    Hi I am modelling flow past a sphere in openFoam and would like to simulate the same in steady state...I tried using kw-sst-model but for a reynolds no of 400000 the drag coefficint is coming out to be 0.3 which does not match with the literature at all...which model should I use for such cases?
  • i

    IDZTPHKKKS

    10/08/2025, 2:46 PM
    I am using steady state RANS for now
  • a

    aeroBoi

    10/08/2025, 2:55 PM
    something like reynolds stress model or Spalart-Allmaras might be worth looking into
  • l

    littleB123

    10/20/2025, 6:25 AM
    I would highly assume that Re=4e5 would require a transient simulation with Co<1. The setup it self is unsteady by nature. You will probably have to track the drag-coefficent over a certain time and average.
  • l

    lennygo

    12/11/2025, 4:01 PM
    Hi guys, I've once again thought a little bit more about the turbulence handling in my simulation. I have compared both highRE and lowRE modelling of the wall and wanted to clear something up, because on the forums there is conflicting information and a lot of stuff thrown around. If I want openFOAM to correctly handle the wallfunctions (.com and v2506) how do I defne it correctly?
    Copy code
    Curently for the highRE I have:
    
    k
    kqRWallFunction with the internalfield value of 0.5
    
    nut
    nutkWallFunction with uniform 0
    
    omega
    omegaWallFunction with internal field of 2.7
    
    for the lowRE case:
    
    k
    kqRWallFunction with uniform 1e-10
    
    nut
    nutUSpaldingWallFunction with uniform 0;
    
    omega
    omegaWallFunction with uniform 1e-4;
    Does this go in the right direction? I am just a little confused with all the information on the web that conflicts itself and is from all over the years. Would appreciate it.
  • z

    Zino

    12/11/2025, 9:13 PM
    Kqr wall function is basically just a zero gradient BC
  • z

    Zino

    12/11/2025, 9:13 PM
    That's good for high re, but had for low re
  • z

    Zino

    12/11/2025, 9:13 PM
    I think, I'll double check
  • z

    Zino

    12/11/2025, 9:14 PM
    Both Spalding and omega wall function are fine for low re and high re
1...4849505152Latest