Simulate injection

Hi community!

I’m trying to create an expanding volume B inside an existing volume A. Could you please point me to some strategies? (I’m thinking kangaroo, but don’t know the constraints to use, or the proper names to describe this process–‘injection’ and ‘dual mold’ didn’t help in Googling)

B is like a liquid. It’s injected from some point on (or inside) A. The more we inject, the more the volume grows, but stays within (and thus a subset of) A. In particular, I want B to be ‘viscous,’ so it’s only one volume that adapts to the shape of A, not something that breaks into pieces.

This is an effect I saw in colored beads many years ago–blue fluids injected into transparent glass beads, for example. I struggle to find a picture on Google–the beads nowadays are a lot, lot more fancy and different from what I’m looking for.

Another analogy: we have a big pool of resin A, we choose a point (on the surface or submerged inside), stick a syringe in, and inject resin B. I’m trying to get B

i think other software packages are way ahead in terms of fluid simulation. Try blender, it’s free. Search youtube for blender honey simulation, maybe that’s what you’re after.

if you want to stay in GH, try FlexHopper.

this is not usually a realistic constraint for fluids, but i guess it depends on your scenario

i thought viscosity is the only constraint for fluids there really is besides the geometric boundaries, i would be curious how else you would define that, but i am also not a specialist.

i dont think that blender offers anything physically accurate enough to call it simulation, maybe for visual aspects that may be good enough and i read that here it does a real good job now. but ok that really depends on what is needed.

maybe @DanielPiker has some idea

there is also flow, pressure, surface tension, friction with the surface of the container, possible non-newtonian behaviour, and so on. it gets complicated really fast, but not sure op is interested in all those aspects… or maybe he is?

in most cases, you’re right. but this toy situation shouldn’t require much more physically accurate, since op is seemingly not concerned with fluid dynamics, just the static shape of an idealized fluid with no internal flow, turbulence or surface tension.

so… less viscous?

so, geometry?

so, more viscous?

so more viscous?

maybe i am just oversimplifying :wink:

no idea what mr @Gears_Gears is up to, but a very simple approach would be to have a few decently sized spheres which are slightly atracted to each other fill in, that should be easily possible with kangaroo? for visual attractiveness shrinkwrap the stuff and done.

Yes, you are :rofl: