Documente Academic
Documente Profesional
Documente Cultură
3a
Model Definition
MODEL GEOMETRY
The model geometry along with some boundary conditions are shown in Figure 1. The full reactor has a symmetry plane which is utilized to reduce the size of the model.
2012 COMSOL
1 |
WAT E R P U R I F I C A T I O N R E A C T O R
Figure 1: Model geometry. All boundaries except the inlet, outlet and symmetry plane are walls.
DOMAIN EQUATIONS AND BOUNDARY CONDITIONS
Based on this velocity and the diameter of the inlet, which is 0.4 m/s, the Reynolds number is UL .1 0.4 - = 0 --------------------- = 4 10 5 Re = ----------- 1 10 6 Here v is the kinematic viscosity. The high Reynolds number clearly indicates that the flow will be turbulent. This means that the flow must be modeled using a turbulence model. In this case, you will use the k- model which is often used in industrial applications, much because it is both relatively robust and computationally inexpensive compared to more advanced turbulence models. One major reason to why the k- model is inexpensive is that it employs wall functions to describe the flow close to walls instead of resolving the very steep gradients there. All boundaries in Figure 1 except the inlet, the outlet and the symmetry plane, are walls. The inlet velocity is prescribed as a plug flow profile. The turbulent intensity is set to 5 % and the turbulent length scale is specified according to Table 3-3 in the section
2 |
WAT E R P U R I F I C AT I O N R E A C T O R
2012 COMSOL
Theory for the Turbulent Flow Interfaces in the CFD Module Users Guide . A constant pressure is prescribed on the outlet.
2012 COMSOL
3 |
WAT E R P U R I F I C A T I O N R E A C T O R
Figure 3 gives a more complete picture of the mixing process in the reactor. The streamlines are colored by the velocity magnitude, and their width are proportional to the turbulent viscosity. Wide lines hence indicate high degree of mixing. The turbulence in this model is mainly produced in the shear layers between the central jet and the recirculation zones. The mixing can be seen to be relatively weak in the beginning of the reactor and that it increases further downstream.
Figure 3: Streamlines colored by velocity. The width of the streamlines are proportional to the turbulent viscosity.
Reference
1. http://www.comsol.com/stories/hofman_water_purification/full/
4 |
WAT E R P U R I F I C AT I O N R E A C T O R
2012 COMSOL
Modeling Instructions
From the File menu, choose New.
MODEL WIZARD
1 In the Model Wizard window, click Next. 2 In the Add physics tree, select Fluid Flow>Single-Phase Flow>Turbulent Flow>Turbulent Flow, k- (spf). 3 Click Next. 4 Find the Studies subsection. In the tree, select Preset Studies>Stationary. 5 Click Finish.
GLOBAL DEFINITIONS
Parameters
1 In the Model Builder window, right-click Global Definitions and choose Parameters. 2 In the Parameters settings window, locate the Parameters section. 3 In the table, enter the following settings:
Name u_in GEOMETRY 1 Expression 0.1[m/s] Description Inlet velocity
You can build the backstep geometry from geometric primitives. Here, instead, use a file containing the sequence of geometry features that has been provided for convenience.
1 In the Model Builder window, under Model 1 right-click Geometry 1 and choose Insert Sequence from File. 2 Browse to the models Model Library folder and double-click the file models/cfd/
water_purification_reactor_geom_sequence.mph.
Material Browser
1 In the Model Builder window, under Model 1 right-click Materials and choose Open Material Browser.
2012 COMSOL
5 |
WAT E R P U R I F I C A T I O N R E A C T O R
2 In the Material Browser window, locate the Materials section. 3 In the tree, select Built-In>Water, liquid. 4 Right-click and choose Add Material to Model from the menu.
TU R B U L E N T F L O W, K -
Inlet 1
1 In the Model Builder window, under Model 1 right-click Turbulent Flow, k- and
choose Boundaries>Inlet.
2 Select Boundary 1 only. 3 In the Inlet settings window, locate the Boundary Condition section. 4 In the LT edit field, type 0.07*0.2[m]. 5 Locate the Velocity section. In the U0 edit field, type u_in.
Symmetry 1
1 In the Model Builder window, under Model 1>Turbulent Flow, k- right-click Boundaries and choose Symmetry. 2 Select Boundary 3 only.
Outlet 1
1 Right-click Boundaries and choose Outlet. 2 Select Boundary 28 only.
MESH 1
1 In the Model Builder window, under Model 1 click Mesh 1. 2 In the Mesh settings window, locate the Mesh Settings section. 3 From the Element size list, choose Coarser.
Size 1
1 Right-click Model 1>Mesh 1 and choose Edit Physics-Induced Sequence. 2 In the Model Builder window, under Model 1>Mesh 1 right-click Size 1 and choose Disable.
6 |
WAT E R P U R I F I C AT I O N R E A C T O R
2012 COMSOL
3 In the Number of boundary layers edit field, type 2. 4 In the Thickness adjustment factor edit field, type 6. 5 In the Model Builder window, collapse the Mesh 1 node. 6 Click the Build All button.
Next, solve for the flow field. This takes approximately 15 minutes on a quad-core desktop computer.
STUDY 1
The following steps reproduce Figure 2. Create a data set that corresponds to the non-wall boundaries.
Data Sets
1 In the Model Builder window, under Results right-click Data Sets and choose Surface. 2 Select Boundaries 1, 3, and 28 only.
2012 COMSOL
7 |
WAT E R P U R I F I C A T I O N R E A C T O R
Velocity (spf)
1 In the Model Builder window, expand the Results>Velocity (spf) node. 2 Right-click Slice 1 and choose Disable. 3 In the Model Builder window, click Velocity (spf). 4 In the 3D Plot Group settings window, locate the Data section. 5 From the Data set list, choose Surface 3. 6 Right-click Velocity (spf) and choose Surface. 7 In the Surface settings window, locate the Data section. 8 From the Data set list, choose Surface 2. 9 Locate the Coloring and Style section. From the Coloring list, choose Uniform. 10 From the Color list, choose Gray. 11 Right-click Velocity (spf) and choose Surface. 12 Right-click Velocity (spf) and choose Arrow Surface. 13 In the Arrow Surface settings window, locate the Coloring and Style section. 14 From the Arrow length list, choose Logarithmic. 15 Select the Scale factor check box. 16 In the associated edit field, type 1.4. 17 In the Number of arrows edit field, type 300. 18 From the Color list, choose White.
Velocity (spf)
1 In the Model Builder window, under Results click Velocity (spf). 2 In the 3D Plot Group settings window, click to expand the Title section. 3 From the Title type list, choose Manual. 4 In the Title text area, type Velocity field. 5 Click the Plot button.
RESULTS
choose Copy.
3D Plot Group 4
1 Right-click Results and choose 3D Plot Group.
8 |
WAT E R P U R I F I C AT I O N R E A C T O R
2012 COMSOL
2 In the Model Builder window, under Results right-click 3D Plot Group 4 and choose Paste Surface. 3 Right-click 3D Plot Group 4 and choose Streamline. 4 Select Boundary 1 only. 5 In the Streamline settings window, locate the Streamline Positioning section. 6 In the Number edit field, type 45. 7 Locate the Coloring and Style section. From the Line type list, choose Ribbon. 8 In the Width expression edit field, type spf.nuT*1[s/m]. 9 Select the Width scale factor check box. 1 0 In the associated edit field, type 100. 1 1 Right-click Results>3D Plot Group 4>Streamline 1 and choose Color Expression. 1 2 In the Color Expression settings window, click to expand the Range section. 1 3 Select the Manual color range check box. 1 4 In the Minimum edit field, type 0. 1 5 In the Maximum edit field, type 0.1. 1 6 In the Model Builder window, click 3D Plot Group 4. 1 7 In the 3D Plot Group settings window, click to expand the Title section. 1 8 From the Title type list, choose Manual. 1 9 In the Title text area, type Streamlines colored by velocity. Width
proportional to turbulent viscosity..
2012 COMSOL
9 |
WAT E R P U R I F I C A T I O N R E A C T O R
10 |
WA T E R P UR I F I CA T I O N R E AC T O R
2012 COMSOL