Sunteți pe pagina 1din 21

STAR-CCM+ User Guide

Capillary Effects Tutorial 4040

The velocity vector plot shows high air velocities close to the free surface. This is a numerical inaccuracy known as parasitic currents. These currents arise because the surface tension and pressure forces are much larger than all other terms in the momentum equations, and their balance on an irregular grid is difficult to achieve numerically due to the discontinuous variation of pressure across the free surface and a large discretization error associated with it. Parasitic currents become appreciable when the problem size is small and fluid velocity and viscosity are low. For flows where diffusion and convection forces are of a similar magnitude to surface tension forces, these problems are not so pronounced. Since artificial velocities are generated only within the air, their effect on the liquid flow (which is usually what we are trying to predict) is small. Save the simulation.

Changing the Contact Angle


The contours of glycerine volume fraction shown below demonstrate the effect of changing the contact angle. In this case, the contact angle at all wall boundaries was changed from 45o to 135o. All other modeling options and material properties were kept the same and the analysis run for a physical time of 2.0 s, as before.

Summary
This STAR-CCM+ tutorial introduced the following features:

Version 4.04.011

STAR-CCM+ User Guide

4042

Cavitation Tutorial
This tutorial simulates a two-dimensional forced flow of water through a nozzle and into an air-filled chamber at atmospheric pressure. The mesh used (shown below) is the same as in the Gravity-Driven Flow Tutorial except that, in this instance, the problems physical dimensions are scaled down by a factor of 1,000. This gives a nozzle width of about 1 mm. The boundary on the left of the problem geometry has a prescribed pressure of 5 x 107 Pa and the boundary on the right is at atmospheric pressure. The boundary at the bottom is a symmetry plane and all other boundaries are solid walls. Initially, the left chamber is filled with water and the remainder of the solution domain filled with air. Turbulence is modeled using the default K-Epsilon model. The sharp corner at the entrance to the narrow nozzle combined with the flow acceleration produces a low pressure region in which cavitation takes place.

Importing the Mesh and Naming the Simulation


Start up STAR-CCM+ in a manner that is appropriate to your working environment and select the New Simulation option from the menu bar. Continue by importing the mesh and naming the simulation. A one-cell-thick three-dimensional polyhedral cell mesh has been predefined for this analysis. Select File > Import... from the menus. In the Open dialog, navigate to the doc/tutorials/multiphase subdirectory of your STAR-CCM+ installation directory and select file

Version 4.04.011

STAR-CCM+ User Guide

Cavitation Tutorial 4044

The grid must be aligned with the X-Y plane. The grid must have a boundary plane at the Z = 0 location. The mesh imported for this tutorial was built with these requirements in mind. Were the grid not to conform to the above conditions, it would have been necessary to realign the region using the mesh transformation and rotation capabilities in STAR-CCM+. Select Mesh > Convert to 2D... In the Convert Regions to 2D dialog that appears, make sure the checkbox of the Delete 3D regions after conversion option is ticked, and click OK.

Once you click OK, the mesh conversion will take place and the new two-dimensional mesh will be shown, viewed from the z-direction, in the Geometry Scene 1 display. The mouse rotation option is suppressed for two-dimensional scenes. Right-click the Physics 1 continuum node and select Delete. Click Yes in the confirmation dialog.

Scaling the Mesh


The original mesh was not built to the correct scale and therefore requires scaling down by a factor of 1000. Select Mesh > Scale Mesh... from the menu bar.

Version 4.04.011

STAR-CCM+ User Guide

Cavitation Tutorial 4048

Setting Material Properties


In the cavitation window, open the Continua node. The color of the Injector node has turned from gray to blue to indicate that models have been activated. Open the Injector node and then the Models node. The selected models now appear within that node.

Open the Eulerian Multiphase node. The materials corresponding to each of the mixture components now need to be defined under the Eulerian Phases node. Right-click on the Eulerian Phases node and select New to create a new

Version 4.04.011

STAR-CCM+ User Guide

Cavitation Tutorial 4053

The phase model objects should appear as shown in the following screenshot.

The default material properties for the three phases are suitable for this problem so we will now proceed to Defining Cavitation Model Parameters. Save the simulation.

Dening Cavitation Model Parameters


In cavitation problems, it is necessary to specify which liquid phase is cavitating and which gas phase is the product of cavitation.

Version 4.04.011

STAR-CCM+ User Guide

Cavitation Tutorial 4056

Return to the Air node, open it and select the Field Function node beneath it. Select Initial Distribution (Air) as the Scalar Function property.

Repeat the steps outlined above to specify the initial distribution of the H2O phase using a second field function named Initial Distribution (H2O) with the following definition:
($$Position[0] >= -0.001) ? 0 : 1

Since these two field functions are the inverse of each other, the water vapor concentration will be zero everywhere. This is appropriate for the case in hand as there is no cavitation in the stationary fluids. Save the simulation.

Setting Boundary Conditions and Values


The geometry used for this tutorial has six boundaries, three of which will have no-slip wall conditions assigned to them. Of the remaining three boundaries, two will be defined as pressure outlet boundaries and the last one as a symmetry plane. We will start with the wall boundary definitions. Open the Regions node, then right-click the Default_Fluid 2D node and select Rename... Enter the name Fluid and click OK. Open the Fluid > Boundaries node, then use the <Ctrl><Click> method to select the Middle, TopLeft and TopRight nodes. These are the three wall

Version 4.04.011

STAR-CCM+ User Guide

Cavitation Tutorial 4059

Value dialog.

Change the H2O value to 1.0 Leave the Air and H2O (G) values as 0.0 and click OK This in effect enforces the condition that only liquid water may enter the solution domain through that boundary. In the Right node, select the Physics Values > Volume Fraction > Constant node. In the Properties window, click on the Value box to open the Constant Value dialog. Change the Air value to 1.0 Leave the H2O and H2O (G) values as 0.0 and click OK This in effect enforces the condition that only air may enter the solution domain through that boundary. This completes the boundary condition specification. Save the simulation.

Setting Solver Parameters and Stopping Criteria


As we are solving an unsteady problem, it is necessary to specify the time-step size and the elapsed simulation time. This calculation will run for 5 x 10-5 s with a time-step size of 10-7 s, so will require 500 time-steps.

Version 4.04.011

STAR-CCM+ User Guide

Cavitation Tutorial 4061

Visualizing and Initializing the Solution


We will view the distributions of the three phases throughout the run by creating a new scalar scene. Right-click on the Scenes node and then select New Scene > Scalar.

The Scalar Scene 1 display will appear.

Version 4.04.011

STAR-CCM+ User Guide

Cavitation Tutorial 4063

As expected, at the start of the run the left chamber is entirely filled with water. Changing the scalar function to Volume Fraction of Air will show that the right chamber and the connecting channel are entirely filled with air. A small region in which both fluids are apparently present is visible at the interface between the two fluids, but this effect is simply due to the coarseness of the mesh. Save the simulation.

Running the Simulation


To run the simulation, click on the (Run) button in the top toolbar. If you do not see this button, use the Solution > Run menu item instead. The Residuals display will be created automatically and will show the progress being made by the solver.

The run progress can be observed by selecting the Scalar Scene 1 tab at the top of the Graphics window. Examine the distributions of each of the three phases by changing the scalar function regularly. During the run it is possible to stop the process by clicking the (Stop) button in the toolbar. If you do halt the simulation, it can be continued again later by clicking the (Run) button. If left alone, the simulation will continue until all 500 time-steps are complete. Note that the numbers

Version 4.04.011

STAR-CCM+ User Guide

Cavitation Tutorial 4067

To a reasonable approximation, the blue and turquoise areas are predominantly occupied by air, the green areas predominantly by liquid water and the yellow, orange and red areas predominantly by water vapor. Manipulating the results in this way provides a qualitative visual estimate of the spatial extent of each phase. However, the resulting plots are prone to inaccuracies in those places where air and water vapor occur together and also where the liquid water volume fraction is only slightly greater than the water vapor volume fraction. In a case such as this, the latter leads to an overprediction of the size of the region of high water vapor concentration. To display velocity vectors: Right-click on the Scenes node and select New Scene > Vector The vector scene will appear in the Graphics window.

Save the simulation.

Summary
This STAR-CCM+ tutorial introduced the following features: Importing a mesh and naming the simulation.

Version 4.04.011

STAR-CCM+ User Guide

4069

Particle-Laden Flow Tutorial


This tutorial is intended to demonstrate how to set up a simple Lagrangian multiphase analysis. It simulates a particle-laden flow of air through a partially blocked elbow duct. Air at standard pressure (1 atm) enters the channel at a velocity of 10 m/s. The fluid, having passed a partial blockage and a 90 degree elbow, exits vertically through the outlet. All fluid properties are assumed to be constant. The air stream is seeded with solid particles, uniformly distributed at the duct inlet. The volumetric loading of particles in the incoming air is 0.01%, corresponding to a volumetric particle flow rate of 6.4516 x 107 m3 /s. The particle properties are as follows: Density 1.2 x 103 kg/m3 Diameter 4 x 105 m Initial velocity (10, 0, 0) m/s Adiabatic and no-slip conditions are assumed at the duct walls. Turbulence is modeled using the default K-Epsilon model. All particles rebound perfectly from the walls and gravity effects are neglected. The geometry used in the tutorial is shown below.

Version 4.04.011

STAR-CCM+ User Guide

Particle-Laden Flow Tutorial 4071

STAR-CCM+ installation directory and select file elbow.ccmg.

Click the Open button to start the import. The Import Mesh Options dialog will appear. Select the following options:
Run mesh diagnostics after import Open geometry scene after import

Ensure that the Dont show this dialog during import option is not selected and then click OK. STAR-CCM+ will provide feedback on the import process, which will take a few seconds, in the Output window. One mesh region named Default_Fluid will be created in the Regions node representing the grid domain. A geometry scene will be created in the Graphics window. Save the new simulation to disk under file name obstructedElbow.sim.

Visualizing the Imported Geometry


Examine the Geometry Scene 1 display in the Graphics window. To view the geometry more clearly, change the viewing direction. Point anywhere in the Geometry Scene 1 display, hold down the left mouse button and begin moving the mouse; this action rotates the visualized parts.

Version 4.04.011

STAR-CCM+ User Guide

Particle-Laden Flow Tutorial 4073

Geometry 1 node.

In the Properties window, change the Opacity property to 0.5.

The obstruction in the elbow geometry is now clearly visible. Save the simulation.

Setting up the Models


Models define the primary variables of the simulation, including pressure, temperature, velocity, and what mathematical formulation will be used to generate the solution. In this example, the flow is turbulent and incompressible. The Segregated Flow model will be used together with the

Version 4.04.011

STAR-CCM+ User Guide

Particle-Laden Flow Tutorial 4078

Open the Physics 1 > Models node. The selected models now appear within that node.

Save the simulation.

Setting Continuous Phase Material Properties


The default material for the continuous phase is air and will be considered incompressible. The default material properties for air will be updated so that it has a density of 1.205 kg/m3 and a dynamic viscosity of 1.82E-5 Pa-s. Select the Continua > Physics 1 > Models > Gas > Air > Material Properties >

Version 4.04.011

STAR-CCM+ User Guide

Particle-Laden Flow Tutorial 4083

Setting Lagrangian Phase Model Properties


Properties for the Lagrangian Phase models may now be set. In the Continua > Physics 1 > Models > Lagrangian Multiphase > Lagrangian Phases > Phase 1 node, open the Models > Solid > Al > Material Properties > Density node.

Select the Constant node and set the Value to 1200 kg/m3 in the Properties window.

Select the Phase 1 > Models > Drag Force > Drag Coefficient node

Version 4.04.011

STAR-CCM+ User Guide

Particle-Laden Flow Tutorial 4085

Phases > Phase 1 node, select the Boundary Conditions > Wall node.

In the Properties window set the Mode property to Rebound.

Open the Boundary Conditions > Wall node and select the Normal Restitution Coefficient > Constant and the Tangential Restitution Coefficient > Constant subnodes in turn. Check the values for these coefficients in the Properties window. They should both be set to 1 representing a perfect elastic rebound.

Save the simulation.

Setting Continuous Phase Boundary Conditions and Values


The default boundary conditions for the outlet and wall boundaries are suitable for this analysis. The boundary conditions at the inlet, a fixed

Version 4.04.011

STAR-CCM+ User Guide

Particle-Laden Flow Tutorial 4087

Turbulent Length Scale > Constant node.

Set the Value property to 0.001 m.

Select the Physics Values > Turbulence Intensity > Constant node. Set the Value property to 0.005. Select the Physics Values > Velocity Magnitude > Constant node. Set the Value property to 10 m/s. Save the simulation.

Setting up the Injector


The particles of the dispersed Lagrangian phase are introduced into the solution domain via an injector. The injector defines the initial state of the particles. Here particles will be introduced at the inlet.

Version 4.04.011

STAR-CCM+ User Guide

Particle-Laden Flow Tutorial 4090

Total.

This signifies that the volume flow rate applies to the whole injector, rather than per injection point. Select the Velocity Specification node and change the Method to Magnitude + Direction in the Properties window. Within the same Injector 1 node, select the Values > Volume Flow Rate > Constant node. In the Properties window set the Value property to 6.4516E-7 m3/s.

Select the Values > Particle Diameter > Constant node and in the Properties window set the Value to 4.0E-5 m. Select the Values > Velocity Magnitude node and in the Properties window set the Value to 10 m/s. Save the simulation.

Setting Solver Parameters and Stopping Criteria


Solver controls will be adjusted next. The maximum residence time for the Lagrangian steady solver is set so that any particles that enter stagnant or recirculating regions are not tracked indefinitely. In steady-state calculations a particle is no longer tracked when its residence time reaches this maximum.

Version 4.04.011

STAR-CCM+ User Guide

Particle-Laden Flow Tutorial 4092

in the Properties window check that the Minimum Value is 1.0E-4.

Save the simulation.

Visualizing the Solution


We will view the velocity vectors on a cross-section through the fluid region as the solution develops. Start by creating a new vector scene. Right-click the Scenes node, and select New Scene > Vector.

The Vector Scene 1 display will appear. Next a new plane section part will be created for display. Right-click the Derived Parts node, and select New Part > Section > Plane....

Version 4.04.011

STAR-CCM+ User Guide

Particle-Laden Flow Tutorial 4098

In the Properties window, click on the right half of the Parts property. The Select Objects dialog will appear. Add the Default_Fluid: Default_Boundary_Region part to the Selected list.

Click Close. Right-click on the scalar bar in the display. In the pop-up menu that appears, select Incident Mass Flux of Physics1: Phase1.

Save the simulation.

Initializing and Running the Simulation


To initialize the solution and run the analysis: Click on the (Initialize Solution) button in the Solution toolbar or use the Solution > Initialize Solution menu item. Click on the (Run) button in the Solution toolbar to run the analysis.

Ignore the warning message about smoothing in the Output window. The Residuals display will automatically be created and will show the solvers

Version 4.04.011

STAR-CCM+ User Guide

Particle-Laden Flow Tutorial 4101

Use the mouse controls to adjust the view approximately as shown below.

It can be seen that the particle impacts are concentrated on the outer radius of the bend. In a realistic modeling exercise, a considerably larger number of particles tracks would be needed to increase confidence in the results.

Displaying Particle Tracks


The particle tracks recorded by the Track File model will now be displayed. Start by creating a new track file.

Version 4.04.011

S-ar putea să vă placă și