https://linen.dev logo
Join Discord
Powered by
# fsi
  • s

    slopezcastano

    07/23/2025, 1:23 PM
    Well, kinda difficult to help you there buddy
  • p

    Parees_7

    07/24/2025, 3:29 PM
    Nah anyways I've figured out that
  • p

    Parees_7

    07/24/2025, 3:29 PM
    Currently I'm working in preCICE ...if anyone knows how to establish a connection can anyone help
  • p

    Parees_7

    07/24/2025, 3:29 PM
    I've written my python code and openfoam case is ready the .XML is also ready but there are some issue
  • p

    Perfy

    07/29/2025, 11:34 AM
    good day eneryone. I need to simulate a rod tumbling in a simple shear flow as a test case. I suppose the best way would be to use a rigidBodyMotion like in floatingObject tutorial, but with pimpleFoam since I'm not interested in multiphase simulation at the moment. The problem is, I can't really get it how to set a cylindrical rod. Does anyone knows about any related tutorials about how to write a dynamicMeshDict for arbitrary rigid bodies? I'm using OF 12.
  • y

    Yann

    07/29/2025, 12:29 PM
    What do you mean by "how to set a cylindrical rod"? Create the mesh?
  • y

    Yann

    07/29/2025, 12:33 PM
    The dynamicMeshDict itself should be pretty similar to the floatingObject tutorial if this is the kind of motion you want to do
  • p

    Perfy

    07/29/2025, 1:10 PM
    I mean, in the floatingObject rigid body consists of a single cuboid. I would like to know how to change it from cuboid to cylindrical rod.
  • y

    Yann

    07/29/2025, 1:26 PM
    yeah, that's the meshing part. You just need to mesh the shape you want. In the tutorial the mesh is created entirely with blockMesh. You can mesh a cylinder with blockMesh even if this isn't the most pleasant experience or you can use snappyHexMesh to create your mesh.
  • p

    Perfy

    07/29/2025, 4:42 PM
    Donโ€™t I need to set an inertia tensor, mass, center of mass in a different way from how it is done in a tutorial?
  • y

    Yann

    07/30/2025, 8:04 AM
    Oh ok, yes of course you need to adjust the values/setup to reflect the properties of your object.
  • y

    Yann

    07/30/2025, 8:07 AM
    if you want to know what other choices you have, instead of the ``cuboid`` type, you can just replace it by ``banana`` in the tutorial, and run it again. You will get an error listing the valid types. This is the good old banana trick (https://openfoamwiki.net/index.php/OpenFOAM_guide/Use_bananas)
  • y

    Yann

    07/30/2025, 8:10 AM
    In the .org branch, if you don't like bananas a more elegant way could be to use the ``foamInfo`` and ``foamToC`` tools to find information about it. For instance : ``foamInfo "cuboid"``
  • p

    Perfy

    07/30/2025, 11:19 AM
    Thank you! I will try to figure it out that way
  • y

    Yann

    07/30/2025, 12:02 PM
    more details about these tools: https://cfd.direct/openfoam/v11-useful-tools/
  • f

    Fractal

    07/30/2025, 7:54 PM
    shouldnt be too hard with curved edges and enough mesh resolution tbh if they have rotational symmetry, could even use a wedge, which would be equivalent in that sense
  • b

    bananaboi

    10/20/2025, 10:57 PM
    quite possibly the dumbest question to be asked but how does one get the solid part of an airfoil? I am interested in simulating an FSI case of a flexible airfoil and creating simple shapes is easy with blockMesh and creating the fluid domain of the airfoil is also simple given a lot of opensource blockMesh codes but what about the solid part? the arifoil? how does one get that? i have seen a lot of people just import ansys meshes, but is there another way? thank you and im using solids4foam
  • o

    otaolafr

    10/21/2025, 4:58 AM
    message has been deleted
  • o

    otaolafr

    10/21/2025, 4:58 AM
    You can do the airfoild in block mesh also ๐Ÿ‘๐Ÿป
  • b

    bananaboi

    10/21/2025, 8:05 AM
    oooooooohhhh
  • b

    bananaboi

    10/21/2025, 8:06 AM
    crazy
  • b

    bananaboi

    10/21/2025, 8:06 AM
    @otaolafr god bless you sir
  • k

    kandelabr

    10/21/2025, 8:18 AM
    Take this example: https://github.com/damogranlabs/classy_blocks/blob/master/examples/complex/airfoil/airfoil.py, change blocking to the above picture and you're done! Here's some context https://damogranlabs.com/2024/11/classy_blocks-tutorial-part-8-custom-sketches/ and if you want better blocking on-the-fly you can check out this https://damogranlabs.com/2023/11/classy_blocks-tutorial-part-7-optimization/ (a bit outdated though but optimization works the same)
  • b

    bananaboi

    10/21/2025, 8:23 AM
    thank you @kandelabr , i will get it done :)
  • k

    kandelabr

    10/21/2025, 8:26 AM
    I would gladly do it myself but really have no time right now so... the fate of the world is in your hands
  • b

    bananaboi

    10/21/2025, 8:34 AM
    https://tenor.com/view/anime-glasses-push-nerd-gif-4899021
  • b

    bananaboi

    10/21/2025, 8:34 AM
    leave it to me
  • o

    otaolafr

    10/21/2025, 10:22 AM
    god bless @kandelabr i am for nothing
  • k

    kandelabr

    10/21/2025, 10:23 AM
    if god blessed anything remotely connected with CFD we'd not be talking about simple meshes right now
  • s

    slopezcastano

    10/21/2025, 3:22 PM
    god abandoned CFD long time ago