https://linen.dev logo
Join Discord
Powered by
# meshing
  • y

    Yann

    05/05/2025, 12:51 PM
    You will need to add this line into all your files in 0 directory:
    Copy code
    #includeEtc "caseDicts/setConstraintTypes"
  • m

    muehhlllerr

    05/05/2025, 12:55 PM
    Thanks I will give it a shot
  • m

    muehhlllerr

    05/05/2025, 1:04 PM
    Now I run into issues since the processor BCs are missing which makes sense and I guess the include is supposed to fix that
  • m

    muehhlllerr

    05/05/2025, 1:04 PM
    https://cdn.discordapp.com/attachments/796072568385568808/1368936376829218888/image.png?ex=681a08d9&is=6818b759&hm=18b4228f2b347ddd0d8a85735283f5640f2c513b4b1b41f4a1e5fcc46025bb57&
  • m

    muehhlllerr

    05/05/2025, 1:04 PM
    is that the right way?
  • y

    Yann

    05/05/2025, 1:05 PM
    no, the include has to be inside the ``boundaryField`` dict
  • y

    Yann

    05/05/2025, 1:06 PM
    for instance in the motorbike tutorial: https://develop.openfoam.com/Development/openfoam/-/blob/master/tutorials/incompressible/simpleFoam/motorBike/0.orig/U
  • y

    Yann

    05/05/2025, 1:08 PM
    And yes you're right: when using the ``-copyZero`` option ``decomposePar`` does not decompose the fields, so it preserves the BC for patches which will be created later by snappy, but it also does not create the processor BCs
  • y

    Yann

    05/05/2025, 1:09 PM
    Another way is to add an additional BC in your O dir files such as:
    Copy code
    "procBoundary.*"
    {
      type processor;
    }
  • m

    muehhlllerr

    05/05/2025, 1:14 PM
    Perfect it worked 😄 Thank you a lot you saved me tons of time
  • m

    muehhlllerr

    05/07/2025, 11:24 AM
    Hey I have stumbled upon a weird snappyHexMesh behaviour. During the snapping step it shrinkes one of my "outer layers" of my background mesh
  • m

    muehhlllerr

    05/07/2025, 11:24 AM
    https://cdn.discordapp.com/attachments/796072568385568808/1369636120156962877/image.png?ex=681c9489&is=681b4309&hm=289f9f85f6f33fc5c556252c138e110fd02fd6334d25f7d0488e8a35f301ddc1& https://cdn.discordapp.com/attachments/796072568385568808/1369636120555688046/image.png?ex=681c9489&is=681b4309&hm=daece017173ab019880db899880eecc181ad25c754c2b40af5e8c8eb5e66e20d&
  • m

    muehhlllerr

    05/07/2025, 11:26 AM
    Im working on simulating a pipe with something in it so the object inside is snapped, which works quite well, however it uniformly offsets the outer layer in this weird way and I ahve no clue why. Feels like some kind of weird smoothing. Anybody having similar experiences/and idea how to fix this? Version is v2406
  • m

    muehhlllerr

    05/07/2025, 11:28 AM
    One workaround could be adding an stl that represents the pipe, however that feels like an unnecessary step
  • o

    otaolafr

    05/07/2025, 1:46 PM
    have you defined the patches during the background mesh creation? or not?
  • t

    tkeskita

    05/07/2025, 2:18 PM
    Snappy does not snap without a reason. You are most likely specifying a surface which does not exactly coincide with the cylinder walls of your background mesh.
  • o

    otaolafr

    05/07/2025, 2:34 PM
    sometimes when having the external boundaries using the background mesh, snappy can have some extrange behavior. it is not the same but also an example... https://discord.com/channels/397772779870486529/796072568385568808/1033004962541736026
  • o

    otaolafr

    05/07/2025, 2:40 PM
    and somewhere when i was doing that case, I had issues that when using default patches on the blockmesh snappy was moving it, but if changed to defined one during the blockmesh then snappy would not change it.... I was looking for the exact message but did not find it right now
  • m

    muehhlllerr

    05/07/2025, 3:59 PM
    So thanks for your tips 😄
  • m

    muehhlllerr

    05/07/2025, 4:00 PM
    the "outside" of the cylinder is a wall that I have specified during background mesh creation
  • m

    muehhlllerr

    05/07/2025, 4:01 PM
    so the only surface there is to snap is an object inside the cylynder with about 1/10 of the diameter located in its center so the outside shouldnt be attrackted to it
  • m

    muehhlllerr

    05/07/2025, 4:01 PM
    I have now added a new stl that coincides with the original outside, that stops the shrinking but results in a "change" in the thicknes of the outer layers, but I can live with that
  • o

    otaolafr

    05/07/2025, 4:03 PM
    test the contrary, i mean not definding it. from memory i had issues when it was not defined but i remember clearly that one or the other gave me a headhech so, worth testing.
  • m

    muehhlllerr

    05/07/2025, 4:04 PM
    okay I will try that tomorrow, but how did you then define it afterwards to apply a boundary condition to it?
  • o

    otaolafr

    05/07/2025, 4:06 PM
    createPatch
  • t

    tkeskita

    05/07/2025, 5:07 PM
    I always define all surfaces for all patches for Snappy. Maybe it does misbehave if not all surfaces are defined 🤔
  • m

    muehhlllerr

    05/08/2025, 7:43 AM
    I couldnt find anything in the docs and also by just trial and error. Is there any way to run mergeMeshes on decomposed parallel cases?
  • y

    Yann

    05/08/2025, 8:35 AM
    What kind of merging do you need to do? I don't have access to my cases right now but I'm pretty sure this is what I do to merge overset meshes (decomposed on the same number of processors)
  • m

    muehhlllerr

    05/08/2025, 8:38 AM
    I have a mesh section that I create with snappy which is followed by a pure blockMesh section (so I can have a non uniform mesh there). And basically i have to merge them before starting the simulation. They dont overlap, but their boundaries coincide at one location. In terms of running in parallel it feels like it should redistribute the cells after the merging
  • y

    Yann

    05/08/2025, 9:23 AM
    I'm not sure it redistributes the cells during the merging, but you might give a try to redistributePar afterward