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

    slopezcastano

    10/03/2025, 11:24 AM
    see the equations
  • s

    slopezcastano

    10/03/2025, 11:25 AM
    if anything grad(k) should be the "limiter" in this case
  • s

    slopezcastano

    10/03/2025, 11:29 AM
    I want to see the link where they justify this choice
  • s

    slopezcastano

    10/03/2025, 11:35 AM
    Most likely is a typo. I dont find a reason why it should be that way, except when you have an explicit treatment of the divergence of one variable as a term in the equation of another variable
  • z

    Zino

    10/03/2025, 11:38 AM
    Yeah that's my impression too - I wonder why it forces you to specify the gradient field though, if in the overwhelming majority of cases you're just going to be feeding it the gradient of that field...
  • s

    slopezcastano

    10/03/2025, 11:39 AM
    There are valid reasons to use different gradients
  • 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