Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  How to set diffuse of liquid correctly?
#1
What is the correct range of liquid diffuse? And is it relative to the diffusion data size?
When I set the diffuse of the 2 chemical liquids in LiquidMixing sample, I got these visual and log errors in the video.
Reply
#2
(18-11-2021, 05:39 AM)Chua Polar Wrote: What is the correct range of liquid diffuse? And is it relative to the diffusion data size?
When I set the diffuse of the 2 chemical liquids in LiquidMixing sample, I got these visual and log errors in the video.

Hi!

Diffusion is specified as % of diffusion per second. Not relative to the size/range of the diffusion data.
Can't see ay log errors attached to your post :/
Reply
#3
Guiño 
the video was too big.
It seems I can't post the image?

The video:
https://drive.google.com/file/d/1aC2vYqi...sp=sharing
Reply
#4
(24-11-2021, 06:07 AM)Chua Polar Wrote: the video was too big.
It seems I can't post the image?

The video:
https://drive.google.com/file/d/1aC2vYqi...sp=sharing

Hi!

Unfortunately it's not possible to upload videos to the forum directly, as that would skyrocket my hosting costs. Any video or large file uploaded, I have to pay to host it! hope you understand  Sonrojado Hosting on youtube, drive, etc and posting a link is the way to go.

The video you linked to is fun, but unrelated to Obi Guiño. Maybe you mixed up the links?

cheers,
Reply
#5
(24-11-2021, 08:36 AM)josemendez Wrote: Hi!

Unfortunately it's not possible to upload videos to the forum directly, as that would skyrocket my hosting costs. Any video or large file uploaded, I have to pay to host it! hope you understand  Sonrojado Hosting on youtube, drive, etc and posting a link is the way to go.

The video you linked to is fun, but unrelated to Obi Guiño. Maybe you mixed up the links?

cheers,

It was the wrong link LOL.


https://drive.google.com/file/d/1qw6OaQ8...sp=sharing
Reply
#6
(24-11-2021, 09:58 AM)Chua Polar Wrote: It was the wrong link LOL.


https://drive.google.com/file/d/1qw6OaQ8...sp=sharing

The sample script being used (ObiPropertyColorizer) makes use of unity's animation curves, whose Evaluate() method only takes values between 0 and 1.

A value of 1 for diffusion is extremely large, so it will cause diffusion to overshoot (keep in mind that diffusion is time-dependent, and so subject to cfl stability conditions). The overshot diffused values will then go way beyond the 0-1 range, and since the sample script does not check for this----> error.

Just use a much smaller diffusion value, for instance 0.005. If you need very high diffusion values, you'll need to reduce your simulation's timestep size.

Checking for a valid 0-1 range in the sample script would make the error in the console go away, but still the fluid colors would vary wildly due to the high diffusion.
Reply
#7
(24-11-2021, 10:48 AM)josemendez Wrote: The sample script being used (ObiPropertyColorizer) makes use of unity's animation curves, whose Evaluate() method only takes values between 0 and 1.

A value of 1 for diffusion is extremely large, so it will cause diffusion to overshoot (keep in mind that diffusion is time-dependent, and so subject to cfl stability conditions). The overshot diffused values will then go way beyond the 0-1 range, and since the sample script does not check for this----> error.

Just use a much smaller diffusion value, for instance 0.005. If you need very high diffusion values, you'll need to reduce your simulation's timestep size.

Checking for a valid 0-1 range in the sample script would make the error in the console go away, but still the fluid colors would vary wildly due to the high diffusion.

Got it!
Reply