https://linen.dev logo
FSI pipe
# meshing
k
you get to this mesh easily
outer_cylinder = cb.Cylinder.chain(cylinder, length, start_face=True)
b
message has been deleted
this is useless yeah
k
outer_ring = cb.ExtrudedRing.chain(ring, length, start_face=True)
so you get two sets of ring+cylinders and one square
except if you need a simple block and an interface that acts as wall when free and connected when coupled with the pipe
in that case you just make a simple block and use ACMI
b
its going to be connected regardless, its just a extended fluid domain to see effects of the pipe
uhh ill go back and read up a bit more!
k
what is this thing supposed to represent? like, the left surface of the block?
b
The green block on the left? The domain itself... okay I see why it's stupid now,think I'llll just go with afull-blownn block like my original setup, and have blocks extend to the right without the cylinder or ring so iIcan see the effects/
k
so there's flow in the solid pipe discharging int othe block and you want to see how it moves while doing that?
b
not really flow, im gonnna trigger some explosion in the left side of the pipe, whihc will vibrate(flexible pipe) and ill get some cool vortiical actions
it's all quiescnet
k
just watch something else doesn't explode
b
brain before cpu
k
then you already have the mesh - if you want to extend it axially, just copy and .translate() each shape; then put only the middle pipe in its own cellZone
b
wait so i just have to axially extend the inner pipe fluid domain into a bigger section and call it a day?
b
now its time for the FSI to complain :D
@kandelabr can i ask a bit of help for the airfoil?
k
oui
b
lemmme share a quick paint drawing
heres hte blocking logic
and im unabel to get the same curve thingy going on, lets say fro a sharp trailing edge airofil with dat file
jus a simple 3d extrusion from sketch
for some reaosn im not able to get it wokring ;-;
k
you've chosen the trickiest of polygons
but the idea is the same as in the 'outer' airfoil - make points and smooth/optimize them into shape
b
Is there a better set
Ill try again with a different mindset, cause thats what i tried
somehow the pipe inlet and outlet combine?
Copy code
fluid_mesh = cb.Mesh()

# --------- Inner pipe fluid (bore fluid) -----------
axis_point_fluid_in_1 = [0.0, 0.0, pipe_z1]
axis_point_fluid_in_2 = [0.0, 0.0, pipe_z2]
radius_point_fluid_in = [
    cylinder_radius / math.sqrt(2.0),
    cylinder_radius / math.sqrt(2.0),
    pipe_z1,
]

inner_pipe_fluid = OneCoreCylinder(
    axis_point_fluid_in_1,
    axis_point_fluid_in_2,
    radius_point_fluid_in,
)

# Chop bore fluid
inner_pipe_fluid.chop_radial(count=n_r_inner)
inner_pipe_fluid.chop_tangential(count=n_theta)
inner_pipe_fluid.chop_axial(count=n_z_pipe)


inner_pipe_fluid.set_start_patch("core_inlet")
inner_pipe_fluid.set_end_patch("core_outlet")
inner_pipe_fluid.set_outer_patch("core_wall")  # this will pair with solid_innerWall
i have uncommented the code here with regards ot the fluid core inlet and outlet
k
huh, this is a lot of lines... what are you trying to achieve here? can you doodle a quick sketch of your blocking?
yes ofc i want to make it as easy as it can be for you
the fluid core inlet and outlet have weird duplicate blocks?
in the middle, cylinder, then ring, then a square (a.k.a. wrapped disk without the inner cylinder)
left and right is the same - copied/chained, then you assign each to its own cellZone and so splitMeshRegions
b
okayy that makes more sence
ill get to it!
k
your inner cylinder is the same radius as the ring, i guess?
b
nah, i clearly see a gap when i slice it
k
well, you then need a more correcter radius
or if you just do
ring = cb.ExtrudedRing.expand(cylinder, thickness)
it will handle that for you
b
so weird, theres a complete duplicate of the inner core
head scratcher i tell ya
k
because WrappedDisk already contains the core which you don't need
b
so what else can i do?
i still want a fluid core to simulat the fluid passing in?
yeah i think youre right
ooh
i dont think theres anthing wrong? since i have a solid region and a fluid region the solid reigon has been meshsd to fill in the space that was made for it in the fluid mesh so ig the boundary of that cavity is showing up?
IT WAS CORRECT SINCE THE BEGINNING
🫥
b
im such a dummy, when i saw the mesh, the fluid cutout and the solid patch were merging, WHICH IS TO BE EXPECTED SINCE THEYRE COINCIDENT