best practice for CFD simulation rendering

Hello, what are you advice regarding this type of simulation rendering:

I can get the simulation done from CFD specialist that used CFD software (like Ansys Fluid…).
But then, will it be possible to reuse this simulation to render it with vray?

Or should I start from scratch and make the simulation inside max? Of course it won’t be as accurate as the one from CFD software I guess.

Thanks

That’s a good question. It could be possible if Ansys can export vdb files and then render them with the V-Ray Volume Grid. We could check if that’s possible.
Or you could give it a try with PhoenixFD :slight_smile:

Thanks, but PhoenixFD demo version won’t let me handle such complex simulation I guess.

I will look for the answer regarding VDB file format export from CFD software.

Thanks

As far as we could understand from the Ansys documentation, it doesn’t support export to vdb. But you can ask your artist what type of formats it supports.
As for the PhoenixFD Demo - yes, it has limitations, but you could ask for a full evaluation copy by dropping a line to sales@chaosgroup.com

What kind of CFD software can export vdb format? Will be better to approach the problem this way, then after only, look for the freelancer with such software to make the CFD.
Thanks.

That should be up to the Software being used to be capable of exporting to such formats.
In my last post it was just the conclusion that I might have wrongfully made that you already had someone working with such software and knowing its capabilities. Sorry if I have mislead you in any way.

Thanks, I tried on google buth CFD + VDB export lead to zero result. Matlab, Ansys… none of this CFD software support the Open VDB or F3D format. That’s weird!

I got a feedback from https://www.simscale.com/ support. According to them they are able to get their simulation out to http://www.paraview.org/, then from Paraview to blender for the rendering.
If blender can do it I believed that Vray and max can do it!

here are the list of CFD code (i guess it correspond to imported code, not the exported one)

As for export, thereafter are the paragraph about it:
“8.2.2 Exporting scenes
When available, you can export a visualization in a view in several of the supported formats using the File Export View
menu option in paraview. For a Render View (or similar), the available formats include EPS, PDF, PS, SVG, POV,
VRML, WebGL, X3D, and X3DB. On selecting a file as which to export, paraview may pop up an Export Options
dialog that allows you to set up parameters for the exporter, similar to saving datasets (Section 8.1).
In addition, from paraview, exporting takes the following form (again, just use Python trace to figure out the proper form
– that’s the easiest way).
1 >>> myview = GetActiveView ()
2 >>> ExportView(’/tmp/sample.svg’, view=myview ,
3 Plottitle=’ParaView GL2PS Export ’,
4 Compressoutputfile =1)
5 # the arguments after ’view’ depend on the exporter selected.”

Thanks

Yup, I guess at least some of these formats could be easy to implement import from.

However, it seems like a pretty low-res simulation that you should be able to do even with a Phoenix demo. If you have any questions or issues on the Phoenix side, please drop some lines in the Phoenix forums and we’ll be happy to help.

Cheers,

wait, I’m confused know. PhonixHD is just a graphic simulation it can’t be used as a solver? There is plenty of parameters I guess, like friction, load loss…such parameters can’t be implemented into phoenix, so the solution will be wrong.

By low res simulation, what do you mean exactly? It is inaccurate?

Well, Phoenix is a fluid dynamics solver and shader. It’s oriented towards VFX, but that doesn’t mean it entirely fakes its results and is inaccurate - like all CFD solvers you can choose how precise the results are, which is a tradeoff between simulation time and quality. The current state of scientific progress on CFD is pretty low in my personal opinion and the same numerical approximations are used in both Phoenix and the responsible industrial CFD solvers. Of course, you should not use Phoenix for solutions that would decide people’s lives, or for supersonic fluids which go by different laws, but the reference video is something that is easily achievable with Phoenix - all the visible aspects of it at least. If you need it for visualization purposes, I think you should give it a shot :slight_smile:

I did a quick test of a 1.6 mil cell grid. If I remember correctly the demo can go up to 2 million.
Works pretty well I would say.
Overflow.zip (3.68 MB)

Thanks Raven for the test.
I will give it a try, thanks Raven.
Svetlin, the version 3 is only for max 2017 in the download section but I’m staked to 2016.
Seems that the v3 is easier to work with. Is there a v3 in the nighties build in demo mode?

Thanks

Can you limit/measure with phoenixFD the quantity of water dropping into the sink? let say 0,2l per second…

Ah, dang, there was some maintenance on the download section of the website and seems like the builds for 2016 are not visible now. They are there, but we have to wait for the admins to come back tomorrow…

Here’s the Max 2016 demo for 3.00.02 on Google Drive: https://drive.google.com/open?id=0B6TpNWaojQO\_LTYxQ3JocTVvQnM

There are nightly builds too, which contain all the latest additions and bug fixes, which are available for anyone with a license.

Hope this helps, cheers :slight_smile:

Thanks, I don’t need the nightly for this test anyway.

What is the parameters to change to limit the flow into a value of X Liter per second?
Is the water viscosity included by default?

So I give it a try, but I didn’t notice anything related to the incoming flow (except using the surface of the emitter to find out the volume, but it doesn’t take into account the pressure to quantify the quantity per second).
As well for some reason whatever the timeframe, the sink never get filled up!
I also face a problem with particule poring trough my model. Does it have something to do with my model having 1.5mm thickness?

Thanks

Hey,

You can start off wither with Raven’s scene, or you can check the liquid settings with the TapWater preset on the toolbar as well - it will automatically adjust the dynamics of the simulator to that of water. You can adjust the viscosity from the Dynamics rollout.

For the emitter flow, you need to set the Source into Surface Force mode and you can regulate the Outgoing Velocity parameter - it’s in voxels/second in order to decouple its meaning from the shape and surface area of the emitter geometry. You can also use the Polygon ID param in the source to make just one set of polygons emit, instead of the entire emitter surface.

You must make sure your model is a watertight geometry - it must be shelled, must not have holes, inverted normals or any other kinds of broken topology. If this is okay, another possible reason is indeed that the grid resolution of the simulator is too low compared to the thickness of the geometry. Can you share a screenshot of how the leak looks? If there are leaking particles, this would be a reason why it never get filled. You also need to watch out for the unit scale of the scene - Phoenix takes into account the scene scale and you can check in the Grid or the Simulation panel how big the sim container is in world units - these must be accurate or at least in no less than half and no more than twice the scale of the real-world effect you simulate.

Cheers,

Can we convert voxels/second to Liter/second to be in a physical scale instead of a graphic scale?

My settings where all pretty much default. All I changed was steps per Frame to 3.
Didn’t attach the scene last time, just the video, but here it is now. If it is any help
Overflow.zip (56.9 KB)

If I’m right just create a 10cm x 10cm x 10cm grid at the same cell setting. That should tell you how many voxels to a liter you have.