Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Section
Column
width40%

Filling up a  cup or glass using fluid dynamics can be time-consuming and sometimes unstable. This tutorial will guide you in creating an initial fill state for any type of container.

UI Text Box
sizemedium
typeinfo

This is an Entry Level tutorial which requires no previous knowledge of Phoenix FD. A basic understanding of 3ds Max would be helpful but is not a prerequisite for being able to follow along.

Column
width5%

 

Column
width55%

 Image Modified

 

...

Scene Setup

...

Create the Container

...

Section
Column
width40%

This guide covers creating a simple scene from scratch and setting up the simulation.

...

 

Begin with a new scene. To create the glass geometry, we will use the lathe modifier. Start by creating

...

Line

...

 and drawing the profile curve in an orthographic view. Make sure the starting and end vertices are positioned on the revolving axis.

Column

...

width60%

Image Modified

 

...

 

Section
Column
width40%

Next, add

...

the Lathe

...

 modifier by selecting it from

...

the Modifier List. This will create the cup geometry.

...

Section
Column
width10%

 

Column
width200px
60%

Image Modified

 

...

 

width
Section
 
400px

Image Removed 

Column
width10%
40%

 

Add

...

the STL Check

...

 from the Modifier List. Enable

...

the Check

...

 option and view

...

the Status

...

 to ensure the model is watertight and free from errors.

...

Column
width60%

Image Modified

 

...

 

Section
Column
width40%

Finally, smooth out the glass geometry using

...

the TurboSmooth

...

 modifier.

Column

...

width60%

Image Modified

 

Create the Liquid Geometry

...

Section
Column
width40%

Create a simple Box

...

 with its Length, Width

...

 and Height Segs

...

 set to 1.0. Adjust the box size to cover where you want the liquid to be. It should extend beyond the bowl bottom and into the stem for complete coverage.

Column

...

width60%

Image Modified


...

  

Section
Column
width40%

With the box selected, go to the Geometry category of the Create panel and

...

select Compound Objects

...

ProBoolean.

Column

...

width60%

Image Modified

 

...

 

Section
Column
width40%

In the Parameters rollout,

...

set Operation

...

 to Intersection. In the Pick Boolean rollout, set the type

...

to Copy, then click

...

the Start Picking

...

 button and select the glass cup geometry.

Column
width

...

60%

Image Modified

 

...

 

Section
Column
width40%

In the Modify panel, right click

...

the ProBoolean

...

 modifier and convert it to

...

an Editable Poly.

...

Column
width60%

Image Modified

 

...

 Switch the Selection to

Section
Column
width40%

Switch the Selection to Element. Select the part of the box outside the glass

...

and delete

...

Section

 it.

 

Column
width10%

 

Column
width190px
60%

Image Modified

 

...

 

Section
width360px

Image Removed

 

Column
width10%

 

 

...

40%

You will be left with this solid geometry which can be used for liquid in the glass. Rename it to "filled geometry".

Column
width60%

Image Added

 

...

 

Section
Column
width40%

If the boolean operation did not perform as shown below, you may need

...

to Flip Normals

...

 for the glass. The purpose is to have the Glass geometry normals pointing towards the liquid volume, and the filled geometry normals should point outwards towards the glass. If you need any additional helper geometries for

...

the process, make sure they are excluded from the simulation from

...

the Scene Interaction

...

 rollout.

...

 

section

Column
width10%

 

Column
width260px60%

Image Modified

 

...

 

Section
width420px

Image Removed

 

Column
width10%40%

 

 

Adjust the filled geometry by adding

...

Push

...

 modifier with

...

Push Value

...

 of about -0.9 cm. This will add a small amount of space between the meshes so they do not intersect.

...

Column
width60%

Image Modified

 

...

Container Properties

...

Section
Column
width40%

With filled geometry selected, right click and select Object Properties. In the Display Properties,

...

enable Display as Box. In the Rendering Control section,

...

disable Renderable, then

...

select OK.

...

 

section

Column
width10%30%

 Image Added

Column
width355px30%
Image Modified

 

...

 

Section
Column
width410px

Image Removed

 

 
Column
width10%
40%

 

With the filled geometry object selected, right click and

...

select Phoenix FD Properties.

...

Section

Enable Initial Liquid Fill. This will fill the geometry with liquid at the very beginning of the simulation.

 

Column
width10%30%

 Image Added

Column
width440px30%

Image Modified

 

...

 

Section
width280px

Image Removed

 

Column
width10%40%

 

 

Now, create a

...

Phoenix Liquid Simulator | LiquidSim

...

 in the scene. Adjust its size and resolution in

...

Section

the Grid rollout to encompass the filled geometry and glass.

 

Column
width10%30%

 Image Added

column
Column
width310px30%

Image Modified

 

...

 

180px
Section
 

Image Removed

 

Column
width10%
40%

 

Start

...

 the simulation. The liquid will fill the glass from the start and then may settle.

Column
width60%

Image Added

 

...


Section
Column
width40%

To view the simulation as a mesh, navigate to

...

the Preview

...

 rollout,

...

enable View as Mesh

...

 and disable Particles.

...

Section
Column
width10%

 

Column
width360px
60%

Image Modified

 

...


Section
Column
width180px

Image Removed

 

 

40%

If the simulation did not fill the glass and only appeared along the edges, check that the geometry normals are correct. You may need to use

...

Normal

...

 modifier to Flip Normals

...

Section

 for the glass.

 

Column
width10%30%

 Image Added

Column
width400px30%

Image Modified

 

...

 

Section
width190px

Image Removed

 

Column
width10%40%

 

 

Using a boolean for creating the liquid geometry is especially handy when you have a tilted container cup and you want the liquid filled and stabilized at the very beginning. This method can save a lot of time because you don't need to pre-run the simulation.

...

 

section

Column
width10%

 

Column
width360px

Image Removed

 

Column
width350px

Image Removed

 

Column
width10%

 

 

...

60%

Image Added