Wolfram Language

Transient NavierStokes

Compute the time-dependent flow around a cylinder with the transient NavierStokes equation:

Here is the vector-valued velocity field, is the pressure and the identity matrix. and are the density and viscosity, respectively.

Set up parameters and a region.

In[1]:=1

Visualize the region and the inflow profile.

show complete Wolfram Language input
In[2]:=2
Out[2]=2

Specify the transient viscous NavierStokes equation with viscosity and density .

In[3]:=3

Specify a function that ramps up the inflow velocity.

In[4]:=4

Specify an inflow boundary condition on the left.

In[5]:=5

Specify an outflow boundary condition on the right.

In[6]:=6

Specify no-slip boundary conditions on the remaining walls.

In[7]:=7

Replace parameters in the boundary conditions.

In[8]:=8

Set up initial conditions such that the system is at rest.

In[9]:=9

Time-integrate the NavierStokes equation on a mesh with specified spacing while interpolating the velocities with second order and the pressure with first order.

In[10]:=10
Out[10]=10

Compute the vorticity of the flow field.

In[11]:=11

Set up the color scheme to be used for the visualization.

In[12]:=12

Visualize the vorticity.

In[13]:=13
Out[13]=13

Generate the frames for an animation.

show complete Wolfram Language input
In[14]:=14

More details about this model can be found in the documentation.

Related Examples

Find out if you already have access to Wolfram tech through your organization
×