3D Wind Tunnel Horizontal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I was looking for some way to simulate a Wind Tunnel and found a very old video teaching how.
https://www.youtube.com/watch?v=uYMY1InQY1A
I followed it step by step, but as the video is very old something didn't work out.
I made some changes to the code and it worked a little, but I still can't edit the variables (like wind speed and the amount of tracers). I don't understand anything about programming.
With the changes I made, it looked like this:
float $vel = fluidEmitter1.windSpeed;
int $tracers = fluidEmitter1.tracers;
int $yres = fluidShape1.resolutionH;
int $zres = fluidShape1.resolutionD;
float $density = 3;
setFluidAttr -at velocity -xi 0 -vv $vel 0 0 fluidShape1;
int $i;
for($i=0; $i<$tracers; $i++ )
{
int $yIndex = $yres * (($i + 0.5)/$tracers);
int $zIndex = $zres * (($i + 0.5)/$tracers);
setFluidAttr -at density -xi 0 -yi $yIndex -zi 15 -fv $density fluidShape1;
}
If anyone can help me...