https://linen.dev logo
Join Discord
Powered by
# general-help
  • o

    otaolafr

    07/11/2025, 2:24 PM
    so I finally found the culprit. so I had 3 functions in system/functions file. I carried back from previous versions where it was working correctly. two of the three functions are coded. when I run in a new terminal, with V12 no problem it runs. I run in a new terminal, with v13 it crashes, and if i re run foamRun it runs. IF i comment one of the coded functions, whichever one, no matter and I run in a new terminal, with V13 it does not crashes.
  • o

    otaolafr

    07/11/2025, 2:24 PM
    here are the functions
  • o

    otaolafr

    07/11/2025, 2:25 PM
    https://cdn.discordapp.com/attachments/400697259819270145/1393236795667251250/functions.txt?ex=68727061&is=68711ee1&hm=b737fd90ab28ef4aa41d4fe26c39c63b537fc7e4366ad2644af9d19dd709c628&
  • y

    Yann

    07/11/2025, 2:30 PM
    even black magic makes sense once you've found the source of the issue 😃
  • o

    otaolafr

    07/11/2025, 2:38 PM
    well not so much, same functions in v12 were okey together....
  • y

    Yann

    07/11/2025, 2:40 PM
    yeah but it's not crazy to have a coded FO breaking when switching versions especially on .org
  • t

    tkeskita

    07/11/2025, 5:11 PM
    Now I wonder, when it compiles these during first run, does it give any warnings/errors?
  • t

    tkeskita

    07/11/2025, 5:17 PM
    Why use const_cast here?
  • g

    girly guppy

    07/11/2025, 5:19 PM
    TRYING to follow this tutorial

    https://www.youtube.com/watch?v=wus_xaBI6zM▾

    https://cdn.discordapp.com/attachments/400697259819270145/1393280552890531941/image.png?ex=68729921&is=687147a1&hm=74e329031f23cc741548da91397d39df0f0d8b6e6fcaf9fa708bbaa34fc2c8bc&
  • g

    girly guppy

    07/11/2025, 5:19 PM
    but got this error
  • g

    girly guppy

    07/11/2025, 5:55 PM
    can it also be used to test pressure vessels or can the meshes themselves not actually react to the fluid
  • o

    otaolafr

    07/11/2025, 9:14 PM
    Sincerently I can not remember, I got it work a time ago, it did what it needed to do and worked so I keeped.... Never had the time to learn c++ so I do what I can 😅
  • o

    otaolafr

    07/11/2025, 9:16 PM
    here you have more info https://bugs.openfoam.org/view.php?id=4255#c13613
  • o

    otaolafr

    07/11/2025, 9:18 PM
    next week when i have acces i will post the complete thing they asked me
  • q

    qr

    07/15/2025, 9:35 AM
    Const_cast is basically brute forcing to get modifiable access to const reference (some classes do not provide non const access functions for safety, like turbulence...and the only way is this or add a function and recompile the class).. const_cast isnt exactly good practice but useful in a crunch :p But here you could have also used lookupObjectRef() I think 🤔
  • o

    otaolafr

    07/16/2025, 6:42 AM
    well it is confirmed that it was a bug and it got fixed on dev https://bugs.openfoam.org/view.php?id=4255#c13628
  • o

    otaolafr

    07/16/2025, 7:58 AM
    also, merging the two functions to one made it work without any problem.
  • y

    Yann

    07/16/2025, 12:47 PM
    1- What OpenFOAM version did you install? 2- Did you load the OpenFOAM environment before typing these commands?
  • g

    girly guppy

    07/16/2025, 2:33 PM
    The newest non-dev release I guess And I think so. I don't know, I don't use linux
  • y

    Yann

    07/16/2025, 3:29 PM
    OpenFOAM-13?
  • g

    girly guppy

    07/16/2025, 3:30 PM
    I believe so yes
  • y

    Yann

    07/16/2025, 3:31 PM
    The tutorial you want to follow use another development branch (OpenCFD: openfoam.com)
  • y

    Yann

    07/16/2025, 3:32 PM
    OpenFOAM-13 is from the OpenFOAM foundation branch (openfoam.org)
  • y

    Yann

    07/16/2025, 3:33 PM
    Things work slightly differently in these 2 branches. For instance, the tutorial path you try to copy does not exist in the foundation branch
  • y

    Yann

    07/16/2025, 3:34 PM
    I suggest to install the OpenFOAM version matching the tutorial you want to follow. (or the other way around: find tutorials corresponding to the version you installed)
  • p

    Pflegeverantwortungsöl

    07/17/2025, 1:39 PM
    Hey, was characteristic length of a jet the width or width/2 ? I forgot
  • q

    qr

    07/17/2025, 1:43 PM
    If I gave you a jet and a pair of callipers or a ruler, which one would you be able to measure?
  • p

    Pflegeverantwortungsöl

    07/17/2025, 2:39 PM
    I suppose its the entire width 😄 The half width was used to normalize the values I remember haha thank you
  • p

    Pflegeverantwortungsöl

    07/18/2025, 1:42 PM
    GUYS 🥲 I cannot find my sets from topoSet in paraview 😦 does anyone know where I can find them?
  • t

    tkeskita

    07/18/2025, 5:19 PM
    setsToZones -noFlipMap