best practice for CFD simulation rendering

Hello,
Here is a screenshot in max as well as the one in SW.
The sink get fill-up but no water are dropping from the overflow.

I will tried again with a basic box and see if it works better.
In anycase, if I can’t regulate in Liter/second the incoming flow from the emmiter, the simulation will have no sense.


Thanks for trying to help.
If the doc is right, voxel = cell. Chaos Docs

So, a 10x10x10cm grid with a cell size of 0.1mm give 1 000 000 (1M) voxels, that’s a beginning.
Considering that the quick water setup give a value of velocity of 14.346 cell/second, we can conclude that this value correspond to 0.000014346 liter/second.
0.2 liter/second is then equal to a velocity of 20 0000 cell per second.
But None of the value change when the size of the emitter change, so this shortcut won’t give the right result I guess.

Looking at the simulation with 20 000 Cell per second, it’s definitively not the right approach!

:smile: Yup, you need to take into account the surface of the emitter geometry to get L/s.

Sure, but I can’t guess the relation between surface emitter and velocity. The default value of 14.346 cell/s correspond to what surface? Without this info I’m stacked.

Sorry to insist, but without your help, the conversion into L/s can’t be done.

sound like you don’t have the matht o convert cell into physical scale

Not sure why you need this in real world units though, can you explain more about the purpose of your setup? If you are going to use it simply for visualization purposes, the discharge doesn’t really matter - you can just set any value that makes it look good. The only thing you need is just the surface of your emitter - A * (voxels/sec) * voxel_size will give you the volume of emitted liquid which you can easily convert into liters…

Svetlin, I just follow your advice.
If Phoenix is as good as a CFD, why should I make 2 simulation, one as a proof of concept and one as a marketing purpose when both can be done in one shot?
The proof of concept inside phoenix will be valid only if the incoming flow respect the requierement of 0.2l/s.
That’s the purpose of the Velocity, but in cell/s it doesn’t allow me to connect with the real world unit. Proof of concept can be made in voxel because there is no vexel in the physical world.

Thanks.

World unit are necessary to make sure that the overflow is sized properly to drain out as much water as the incoming water.

Indeed, keep us posted :slight_smile:

Still trying to make some progress on this matter and to find a way to get 0.2l/s incoming water:

To be able to used this approach to define the discharge in l/s I will need to check how many liters I got in one minute. But Again, It seems that the digital wall vs real word arise… timeframe depends on the number of frame per second the animation will be played, so the link with real word is impossible.

Another approach if to find out why the default value of water velocity is 14.346 cell/s. Is this value a reflect of the real water flow, under with properties (pressure…)
I can’t imagine that the default value are just based on visual approach, Chaos Group must have base the value from a scientific approach somehow, and scientist don’t use cell or voxel!

Thanks

Nope, you don’t need the FPS - the voxels/sec value accounts for that, so don’t worry about it. The only thing you are missing at this point is the surface of the emitter you use in your setup.

Not sure what you mean by default value of 14.3 vox/sec - maybe you used some of the toolbar presets where the discharge is automatically adjusted depending on the emitter size.

If there is anything else I can help with and you can’t find it in the docs, please do ask :slight_smile:

1 cell = 0.000001 liter = 0.001 cm3
Emitter Diam 20mm = surface 3.14x1?=3,14cm?
Default Velocity from water preset = 14.346 cell/s = 0.014346 cm3
Voxel size = 0.1mm

3,14x(0.014346)*0.1 = 0.004504644 cm3/s (4,504644e-6 liter/s)

For 200cm3 (0.2l/s), the velocity need to be 44398.62506337904 time bigger!!! (200/0.004504644)
Velocity = 14.346*44398 = 636942 cell/s, that even worst that my initial test with a velocity of 200 000 Cell/s.
Either I make an error somewhere during the conversion, or this approach is not the good one.

Thanks
Thanks

Try in CFD and then match with phx. Import mesh and just make phx sim the same :slight_smile: Then, u’ll have some math.

I do it in Cell/s instead of cm3/s
1 cell = 0.000001 liter = 0.001 cm3
Emitter Diam 20mm = surface 3.14x1?=3,14cm?
Default Velocity from water preset = 14.346 cell/s = 0.014346 cm3
Voxel size = 0.1mm = 0.01cm
3.14*14.346*0.01=0.4504644 cell cubic/s

200 cm3 = 200/0.001=200 000 cell.
So I probably make a mistake on the conversion in the previous post.
But anyway, that’s exactly what I tried 2 weeks ago (one of the first post), but this doesn’t looks right as the water if looking like a laser.

Right, I use the preset Tape Water, and the value change with the object emitter size, so it is not a default value.

Not using the maths Svetlin suggested to calculate it, but do what I just did.
Create a box 10 x 10 x 10 cm. Create emitter, radius 1 cm (20 mm diameter).
Played with settings on outgoing velocity, 70 fills the box over 5 seconds. ie 0.2 l/s.
It wont be 0.2 exactly, but visually it is pretty close, and it does vary slightly depending on your cell size. I found between 65 and 70 worked most times.

Attached my scene to demonstrate.

So if you just recreate that setup in your scene you should be able to calculate the rate you need pretty quickly.
0.2 litre per second test.zip (62.5 KB)
0.2 l per s.zip (1.12 MB)

Thanks Raven,
That’s very nice to help on a Sunday.
I still don’t get the idea behind this approach.
The bucket is overflowed around frame 120. The more FPS your video card is capable of, the shorter the animation playback will be. Same with the rendering, a codec with 10 frame/s won’t give the same result than 30 frame/s.

For sure I’m not into math, but I try to be logical.

Thanks

Video card playback should have nothing to do with it.
Phoenix is tied to your scenes frame rate.
In SA we are on PAL. So that is why my animation was set to 25 frames per second rate.
I have tested it on 30 fps as well.
I did have to adjust the velocity to 80, but I think it is because it basically becomes more accurate, as it has more frames and with it being 18 steps per frame we now have 2700 steps as apposed to 2250 in the pal version.
So if you have less steps per frame it may fill up quicker.

Hey,

Just dropping in on the math…

Your emitter area should be more like 12.57 cm^2.

If you are using the preset, you need to go to your Dynamics rollout and reset your unit scale to 1.0, because this gets automatically adjusted with the Tap Water preset.

So, with a discharge of 1600 (only if you are using Surface Force in your source) you should get 0.2L/s = 200cm^3/sec with an emitter that has an area of pi*2cm*2cm.

Hope this helps :slight_smile: