Closed RandomInternetPreson closed 2 weeks ago
Hi @RandomInternetPreson,
you can use
lbm.flags.read_from_device();
float3 bubble_position = calculate_object_center_of_mass(TYPE_G);
to track th bubble position, with the FORCE_FIELD
extension enabled.
But this setup won't work, for two reasons:
c=1/sqrt(3)
and the simulation blows up.Kind regards, Moritz
Oh thank you for the informative response, much appreciated 😁
Hello, I have been pulling my hair out trying different things but I can't seem to be able to pull out all the xyz coordinates of the gas elements from my model here:
It is a model of a bubble of air rising in a column of water, I can get things to render (yay!) but when I try to capture the xyz coordinates of all the gas elements at different points in the model I am always left with the the initial spherical state. I've captured all the gas elements and plotted them in python and at every "state" in the model the gas elements always form a perfect sphere. I can see in the model the bubble distorting while it renders.
Any help or guidance would be greatly appreciated :3 I checked the examples and it seems like the lmb.coordinates should be updating but idk, is this not what I should expect?
Thanks for the great software regardless, this thing rocks!