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

    ⵣAryazⵣ

    06/26/2025, 2:20 PM
    and show the full error message.
  • c

    Cult obliterator 4000

    06/26/2025, 3:15 PM
    https://cdn.discordapp.com/attachments/400697259819270145/1387813530446856454/createPatchDict?ex=685eb591&is=685d6411&hm=853e9842345aac42ce415095860a068618f6fbb73d74bb31dd8572f3e10d9077& https://cdn.discordapp.com/attachments/400697259819270145/1387813530778079242/snappyHexMeshDict?ex=685eb592&is=685d6412&hm=43d4dfd4673f456b285e154cd7c8fab94ea7c46ff5605b3039f4dac6ac65445f&
  • c

    Cult obliterator 4000

    06/26/2025, 3:15 PM
    i want "edge" to be a cyclicAMI boundary condition
  • y

    Yann

    06/26/2025, 3:21 PM
    After a quick look:
    Copy code
    {
            name edge1;
            patchInfo
            {
                type                   cyclicAMI;
                method                 faceAreaWeightAMI;
                neighbourPatch         edge_slave;
                transformType          none;
                matchTolerance         0.001;
            }
            constructFrom patches;
            patches (edge);
    
        }
        
        {
            name edge2;
            patchInfo
            {
                type                   cyclicAMi;
                neighbourPatch         edge;
                transformType          none;
                matchTolerance         0.001;
                method                 faceAreaWeightAMI;
            }
            constructFrom patches;
            patches (edge_slave);
        }
    - ``neighbourPatch`` should be ``edge2`` and ``edge1``, respectively. - there is a typo on the edge2 type => `` cyclicAMi;``
  • c

    Cult obliterator 4000

    06/26/2025, 5:24 PM
    alright your solution worked, thanks
  • t

    the Food

    06/27/2025, 7:20 PM
    Does anyone know why my residuals wont go any lower than this the first sim is with 4 cores second with 6 and the mesh is attached aswell as the freecad OF file https://cdn.discordapp.com/attachments/400697259819270145/1388237544113705112/Screenshot_20250627_151703.png?ex=68604076&is=685eeef6&hm=c475034808bf3bb4e58ae5d470bd4252e82211182b6a564f33d4c1418192a241& https://cdn.discordapp.com/attachments/400697259819270145/1388237545531375707/Screenshot_20250627_151722.png?ex=68604077&is=685eeef7&hm=560a51b081da2e1c2d9bdc913587e94097284898adfff1ae96bb5e4f5fb419d2& https://cdn.discordapp.com/attachments/400697259819270145/1388237546214920344/we.png?ex=68604077&is=685eeef7&hm=6829e6fe0d2f0e804114494b8f1aa6ade52de2a3c97fe79bbe86f8e82c67bac8& https://cdn.discordapp.com/attachments/400697259819270145/1388237546718498816/image.png?ex=68604077&is=685eeef7&hm=0888df857d318857e687fcf10a74fc91f8356dacd383b2bcc3bc241fe6efb965&
  • t

    the Food

    06/27/2025, 7:20 PM
    https://cdn.discordapp.com/attachments/400697259819270145/1388237660069560370/rOCKET_cfd.20250627-133714.FCBak?ex=68604092&is=685eef12&hm=ab05639568128fe16f8a448873fb3cb2b51f780095e89d2bbaf1dacf8da69efa&
  • t

    the Food

    06/27/2025, 7:21 PM
    I am new to CFD and this is the first sim that has done this
  • t

    the Food

    06/27/2025, 9:25 PM
    Please let me know if you need any details as well!
  • c

    Cult obliterator 4000

    06/29/2025, 11:36 PM
    Is this a steady-state case?
  • t

    the Food

    07/02/2025, 1:28 AM
    Yes
  • t

    the Food

    07/02/2025, 1:28 AM
    sorry for taking so long
  • t

    the Food

    07/02/2025, 1:29 AM
    https://cdn.discordapp.com/attachments/400697259819270145/1389779933374582844/image.png?ex=6865dcec&is=68648b6c&hm=dddc3fd29eb3130394b9f2bba506db87d5b7d8b0199a8f61d4be8de551b8be6f&
  • o

    otaolafr

    07/02/2025, 7:54 AM
    OpenFOAM related, i have being using a script in bash that have worked flawlessly until now, but I could not get to understand the issue if anyone has an insight. here is the script section that is problematic:
    Copy code
    for (( i=2; i<$leni_i; i++ )); do
        (
            caseName="run_i_$i"
            if [ -d "$caseName" ]; then
                cd "$caseName" || exit 1
                if [ -f "log.foamRun" ]; then
                    if ! tail log.foamRun | grep -q "Finalising parallel run"; then
                        prepare_allrun_i "$i"
                        ./Allrun
                    fi
                else
                    prepare_allrun_i "$i"
                    ./Allrun
                fi
            else
                cp -r "../../$originalCase" "$caseName"
                cd "$caseName" || exit 1
                prepare_allrun_i "$i"
                ./Allrun
            fi
            cd ../../..
        ) &
        # allow to execute up to $N jobs in parallel
        if [[ $(jobs -r -p | wc -l) -ge $N ]]; then
            # now there are $N jobs already running, so wait here for any job
            # to be finished so there is a place to start next one.
            wait -n
        fi
    done
  • o

    otaolafr

    07/02/2025, 7:54 AM
    when i run the case this way (when the ./Allrun is runned) the solver begings as expected and everything but i get this error:
    Copy code
    Starting time loop
    
    [calcul2-Precision-7960-Tower:2065564] *** An error occurred in MPI_Recv
    [calcul2-Precision-7960-Tower:2065564] *** reported by process [1712390145,32]
    [calcul2-Precision-7960-Tower:2065564] *** on communicator MPI COMMUNICATOR 3 SPLIT FROM 0
    [calcul2-Precision-7960-Tower:2065564] *** MPI_ERR_TRUNCATE: message truncated
    [calcul2-Precision-7960-Tower:2065564] *** MPI_ERRORS_ARE_FATAL (processes in this communicator will now abort,
    [calcul2-Precision-7960-Tower:2065564] ***    and potentially your MPI job)
    [calcul2-Precision-7960-Tower:2065505] 5 more processes have sent help message help-mpi-errors.txt / mpi_errors_are_fatal
    [calcul2-Precision-7960-Tower:2065505] Set MCA parameter "orte_base_help_aggregate" to 0 to see all help / error messages
    so it goes normally until the ./Allrun where it fails. on the other side, if I simply after cd into the folder and run ./Allrun this runs without issues
  • t

    tkeskita

    07/02/2025, 3:43 PM
    Maybe.. wrong mpirun being invoked?
  • o

    otaolafr

    07/02/2025, 4:32 PM
    What I don't understand is that I am doing the two in same pc. So it should invoke the same mpi no?
  • t

    tkeskita

    07/02/2025, 5:20 PM
    Depends. Environment variables can be a mess when running with scripts. At least check? Another idea is that something crazy happens in your script which starts several runs in parallel. I recommend Slurm for handling parallel runs.
  • o

    otaolafr

    07/02/2025, 8:29 PM
    Of course (not sure how 😅, will investigate !) the thing is it was working like 2 days ago... And did not updated the system so it is not logical... 😭
  • p

    Partypaul

    07/06/2025, 3:12 PM
    Hi there, im new to CFD currently studying HVAC-Engeneering. Im wondering if someone could help me out unterstanding the general difference between RANS, LES and DNS as in how are the Navier-Stokes simplyfied for each case. I´ve watched a couple of youtube Vids from Steve Brunton but im having a hard time with it. Thanks in advance
  • k

    kid with polio

    07/06/2025, 8:24 PM
    I recommend Fluid Mechanics 101 on YT, here's a vid series on some RANS concepts https://youtube.com/playlist?list=PLnJ8lIgfDbkrNyps1_36tNRRQ7hLzPFhV&si=kcjXjR9cC6Ag-U3R
  • p

    Partypaul

    07/07/2025, 2:25 PM
    thank you very much!
  • m

    Mateo

    07/08/2025, 2:39 AM
    Hey yall, I am currently trying to move an older library (native on OpenFOAMv1706) to OpenFOAMv2406 I was wondering if anyone had any good source material (for general programming and setup) for either version. Or if anyone has done this before and has any tips for troubleshooting. Thanks!
  • q

    qr

    07/08/2025, 6:17 AM
    1706 to 2406 would not be too much trouble, I anticipate. That line of forks does not radically change things in terms of logic. Debugging the compile errors should more or less get you to a working solution.
  • m

    Mateo

    07/08/2025, 4:08 PM
    I was able to get the library to compile, but for that to happen I had to do alot of rewriting of several functions ie fvMeshConstructorTable and dictionaryConstructorTables. Would you have any tips for debugging after compilation? I apologize I am new to C++ and this is my first time with the OF backend.
  • q

    qr

    07/08/2025, 4:21 PM
    Yeah that's what I would have had to do, if I were in your place 😅 . As a test, you should confirm between old and new behaviour for your own specific cases, at the very least.. (if the coding logic and rewriting had somehow missed some nuance of old vs new code, it will show up as garbage behaviour in new one) Maybe someone else here has a better more efficient approach to porting.
  • c

    Cult obliterator 4000

    07/08/2025, 11:08 PM
    so uh
  • c

    Cult obliterator 4000

    07/08/2025, 11:09 PM
    openfoam is installable on arch linux and arch linux is the GOAT operating system.
  • c

    Cult obliterator 4000

    07/08/2025, 11:09 PM
    openfoam.org version https://aur.archlinux.org/packages/openfoam-org
  • c

    Cult obliterator 4000

    07/08/2025, 11:10 PM
    openfoam.com version is available on the website when installed in an apptainer