Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  How to stop the Fluid flow?
#1
Please excuse my English!
I want to simulate the sauce
Idea is: generate some fluid, stop the flow of the fluid effect, don't let the liquid out, stop collision physics such as feedback.
How should do?
Reply
#2
(19-05-2020, 04:15 AM)GuanGuan Wrote: Please excuse my English!
I want to simulate the sauce
Idea is: generate some fluid, stop the flow of the fluid effect, don't let the liquid out, stop collision physics such as feedback.
How should do?

Hi GuanGuan,

No worries! To stop the fluid, set the emitter's speed to zero. See:
http://obi.virtualmethodstudio.com/tutor...tters.html

Emitters work like a real work faucet: by opening/closing the faucet, you control both the amount and speed of fluid that comes out.

Quote:stop collision physics such as feedback.

Don't really know what you mean by this?

cheers,
Reply
#3
(19-05-2020, 08:17 AM)josemendez Wrote: Hi GuanGuan,

No worries! To stop the fluid, set the emitter's speed to zero. See:
http://obi.virtualmethodstudio.com/tutor...tters.html

Emitters work like a real work faucet: by opening/closing the faucet, you control both the amount and speed of fluid that comes out.


Don't really know what you mean by this?

cheers,

Stop the flow of existing Fluid
It's like the water in the pipe is frozen and can't flow
Reply
#4
(19-05-2020, 09:51 AM)GuanGuan Wrote: Stop the flow of existing Fluid
It's like the water in the pipe is frozen and can't flow

If you mean turning the liquid into a rigidbody, can't be done. Closest thing you could do is disabling density constraints, and setting all particle inverse masses to zero. That would stop flow, but the resulting fluid would just be frozen in space. Would not react to any external forces. Is this what you're after?
Reply
#5
(19-05-2020, 10:33 AM)josemendez Wrote: If you mean turning the liquid into a rigidbody, can't be done. Closest thing you could do is disabling density constraints, and setting all particle inverse masses to zero. That would stop flow, but the resulting fluid would just be frozen in space. Would not react to any external forces. Is this what you're after?

It may be so.
The parameters of (disabling density constraints ) is (Obi Solver)?
(setting all particle inverse masses to zero)   Where is it?
Reply
#6
(19-05-2020, 11:01 AM)GuanGuan Wrote: It may be so.
The parameters of (disabling density constraints ) is (Obi Solver)?
(setting all particle inverse masses to zero)   Where is it?

You can disable density constraints like this:
Code:
emitter.solver.distanceConstraintParameters.enabled = false;
emitter.solver.UpdateParameters();
To set inverse masses to zero, you need to iterate over particles. See:
http://obi.virtualmethodstudio.com/tutor...icles.html
Reply