Help How to set diffuse of liquid correctly? - Printable Version +- Obi Official Forum (https://obi.virtualmethodstudio.com/forum) +-- Forum: Obi Users Category (https://obi.virtualmethodstudio.com/forum/forum-1.html) +--- Forum: Obi Fluid (https://obi.virtualmethodstudio.com/forum/forum-3.html) +--- Thread: Help How to set diffuse of liquid correctly? (/thread-3187.html) |
How to set diffuse of liquid correctly? - Chua Polar - 18-11-2021 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. RE: How to set diffuse of liquid correctly? - josemendez - 18-11-2021 (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? 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 :/ RE: How to set diffuse of liquid correctly? - Chua Polar - 24-11-2021 the video was too big. It seems I can't post the image? The video: https://drive.google.com/file/d/1aC2vYqiWA9p81fHbVvdoSkI-dnePbein/view?usp=sharing RE: How to set diffuse of liquid correctly? - josemendez - 24-11-2021 (24-11-2021, 06:07 AM)Chua Polar Wrote: the video was too big. 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 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 . Maybe you mixed up the links? cheers, RE: How to set diffuse of liquid correctly? - Chua Polar - 24-11-2021 (24-11-2021, 08:36 AM)josemendez Wrote: Hi! It was the wrong link LOL. https://drive.google.com/file/d/1qw6OaQ8o3qXnNxtGaRZdeuTOFX8mHCmx/view?usp=sharing RE: How to set diffuse of liquid correctly? - josemendez - 24-11-2021 (24-11-2021, 09:58 AM)Chua Polar Wrote: It was the wrong link LOL. 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. RE: How to set diffuse of liquid correctly? - Chua Polar - 25-11-2021 (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. Got it! |