COMSOL Step-by-Step Tutorial Expt 140 – Tank Discharge March 4, 2013 Team 2 Joseph Duffy Zlatko Sokolikj Andrew Suellentrop.

Slides:



Advertisements
Similar presentations
The essentials managers need to know about Excel
Advertisements

KompoZer. This is what KompoZer will look like with a blank document open. As you can see, there are a lot of icons for beginning users. But don't be.
UNLOCKING THE SECRETS HIDDEN IN YOUR DATA Part 3 Data Analysis.
Spreadsheets A spreadsheet package is a general purpose computer package that is designed to perform calculations. A spreadsheet is a table which is divided.
Microsoft Excel. Click on “Start,” then “Microsoft Office Excel.”
UNICAMP GENERAL PARTICLE TRACKING ALGORITHM Sources of Information : Phoenics Lecture: GENTRAGENTRA Workshop: GENTRAGENTRA GENTRA user guide: (html) or.
Integration Relation for Control Volume
Basic Governing Differential Equations
Advanced Artificial Lift Methods Electrical Submersible Pump Advanced Artificial Lift Methods – PE 571 Chapter 1 - Electrical Submersible Pump Centrifugal.
Keith A. Woodbury Mechanical Engineering University of Alabama.
Pacemaker Electrode Bidirectional Interface to Autodesk Inventor.
Click here to enter. Click a menu option to view more details Starters Main Courses Desserts Click on the coffee cup to return when Navigating For Vocabulary.
Lec 13: Machines (except heat exchangers)
Bidirectional Interface to SolidWorks
Workshop 5 Centrifugal Pump
Using Surfcam to Produce a Numeric Control (NC) Program An Introduction to the CAD/CAM Process Instructions for 3 Axis Programming Using the D&M CNC Milling.
Note if in doubt click the “Help” button
By Hrishikesh Gadre Session II Department of Mechanical Engineering Louisiana State University Engineering Equation Solver Tutorials.
Basic Governing Differential Equations
17 VECTOR CALCULUS.
16 MULTIPLE INTEGRALS.
MULTIPLE INTEGRALS Double Integrals over General Regions MULTIPLE INTEGRALS In this section, we will learn: How to use double integrals to.
In the analysis of a tilting pad thrust bearing, the following dimensions were measured: h1 = 10 mm, h2 = 5mm, L = 10 cm, B = 24 cm The shaft rotates.
SOLUTION FOR THE BOUNDARY LAYER ON A FLAT PLATE
WinTR-20 Project Formulation Hydrology Computer Program Basic Input and Output Presented by: WinTR-20 Development Team.
WinTR-20 Project Formulation Hydrology Computer Program Basic Input and Output Presented by: WinTR-20 Development Team.
Computer Science 1000 Spreadsheets II Permission to redistribute these slides is strictly prohibited without permission.
Working with Numbers in Alice - Converting to integers and to strings - Rounding numbers. - Truncating Numbers Samantha Huerta under the direction of Professor.
Introduction to COMSOL Travis Campbell Developed for CHE 331 – Fall 2012 Oregon State University School of Chemical, Biological and Environmental Engineering.
ME 2304: 3D Geometry & Vector Calculus Dr. Faraz Junejo Double Integrals.
Kinematics in Two Dimensions Chapter 3. Expectations After Chapter 3, students will:  generalize the concepts of displacement, velocity, and acceleration.
Microsoft Excel Spreadsheet Blue Section Project 2.
European Computer Driving Licence Syllabus version 5.0 Module 4 – Spreadsheets Chapter 22 – Functions Pass ECDL5 for Office 2007 Module 4 Spreadsheets.
CP502 Advanced Fluid Mechanics
EDT 608 Unit 3 Using Microsoft Excel Under “Start”, go to “Programs” and select “Microsoft Excel”. Go the next slide to see the Excel Screen template.
Introduction to Arrays. definitions and things to consider… This presentation is designed to give a simple demonstration of array and object visualizations.
Torricelli’s Law and Draining Pipes
Volume II Companion Presentation Frank R. Miele Pegasus Lectures, Inc.
Microsoft Word Tables ITSW 1401, Intro to Word Processing Instructor: Glenda H. Easter.
Excel CREATING A WORKSHEET AND CHART. Personal Budget Worksheet We will create a personal budget worksheet that shows you income each month and your expenses.
1 Draw Mode. 2 Notable Points (RMB) End point: Snaps to the closest end point of the selected entity. Mid point: Snaps to the middle point of the selected.
CTS130 Spreadsheet Lesson 19 Using What-If Analysis.
This is what we want to draw Extrude Mirror Round Edges.
Strategy Using Strategy1. Scan Path / Strategy It is important to visualize the scan path you want for a feature before you begin taking points on your.
Creating a Historical Tour in Alice By Jenna Hayes May 2010.
Background 1. Energy conservation equation If there is no friction.
ANSYS/LS-DYNA Drop Test Module
Free-Fall When something is in free-fall, it is in a state of constant acceleration. This means the three kinematics equations we learned last class can.
LINEAR MOMENTUM APPLICATIONS AND THE MOMENT OF MOMENTUM 1.More linear momentum application (continuing from last day) Fluid Mechanics and Hydraulics.
Copyright © Cengage Learning. All rights reserved. 16 Vector Calculus.
Introduction to Excel RETC – Center for Professional Development.
6.1 Areas Between Curves In this section we learn about: Using integrals to find areas of regions that lie between the graphs of two functions. APPLICATIONS.
Excel Chapter 1 Creating a Worksheet and an Embedded Chart
Workshop 7 Tank Flushing
Workshop 7 Tank Flushing
Microsoft Excel.
Relations and Functions
Workshop 5 Centrifugal Pump
Graphing Equations and Inequalities
Microsoft Excel 101.
Simplify √128 Simplify 4√45 Rationalise and simplify 2 5√2.
Using Excel to Graph Data
Coordinate Geometry in the (x,y) plane.
Microsoft Excel 101.
Using Excel to Graph Data
Spreadsheets and Data Management
8. FLUID FLOW: mechanical energy equation
Acceleration 3.1 Changing Velocity
Presentation transcript:

COMSOL Step-by-Step Tutorial Expt 140 – Tank Discharge March 4, 2013 Team 2 Joseph Duffy Zlatko Sokolikj Andrew Suellentrop

This Comsol tutorial demonstrates how to perform the velocity profile calculations using the simplest model possible It utilizes the 2D axisymmetric reference system

Before starting anything remember to have the preferences set so that Comsol does not save a recovery file (Box should be unchecked). For more information regarding this step, please go through Chris Golding’s Tutorial about starting Comsol on a computer, located in Transport Phenomena II Balckboard

So we pick our space dimension to be 2D axisymmetric And press next

We pick laminar flow We pick laminar flow from our physics menu and press next

We pick Stationary Study Type and press Finish

In the actual Exp140 Tank Discharge, our system is not stationary, yet it is time dependent as one of our boundaries, the water level, changes. However to make these calculations easier we assume a quasi steady state as outlined on page 16 of Exp140 Tank Discharge – Theoretical Background by Loren B. Schreiber. That means that Comsol will perform the calculation for the velocity while the water level is kept constant. This presents an obstacle for us as we would like to know how the velocity profile changes as the water level drops. We can overcome this obstacle with a feature called parametric sweep which will be covered later down this tutorial Before we start drawing our model we must realize the significance of our choice of dimension. We use this geometry when our 3D model is symmetric in both the x and y axis. What we need to draw in Comsol is a sketch which, when rotated around the z axis 360 degrees, will give us our model So for our model…

In the 2D axisymmetric geometry our model looks like…. Z-axis The tank is a 3D model that is symmetric in the x and y coordinate Rotated around the z axis, our model will give us the tank in 3D

However before we start drawing the system we need to set the values of the parameters we are going to use, such as density, Pipe Diameter, Tank Diameter etc.

We right click on Global Definitions and select parameters

To insert a parameter click on the cell and insert the appropriate descriptions For more information regarding Parameter Input, please go through Chris Golding Intro for Comsol

Remember to use square brackets when plugging in the units In case you plan to use these parameters for multiple models you can save them as text file which you can open later on instead of having to write them every time

In this tutorial we use the following parameters

In this tutorial we shall use the simplest geometry possible In this tutorial we shall use the simplest geometry possible. We will have one rectangle represent our tank and another one represent our pipe

To build our first rectangle that will represent our pipe, we right-click on Geometry section and select Rectangle

So first we need to choose what part of our rectangle will be our reference for its position. We pick Corner Therefore the corner of our rectangle should be at (0,0) Note*: In Comsol, whenever you can enter a number, you can also enter a equation using the parameters Therefore for width and height we write our Dp/2 and Lp. Remember that our model will represent only one half of the side section. That is why the width of the rectangle that is supposed to represent the pipe has a width of the radius

After we are done setting up the rectangle, to materialize the rectangle on our sketch we right-click on the Rectangle1 from the Geometry Sections and select Build selected

We repeat this process for the second rectangle We repeat this process for the second rectangle. The corner of this rectangle will be located at(0,Lp) while the width and the height will be (Dt/2) and Lt We materialize the rectangle on our sketch

The next step is to form a union with the rectangles we have built, merging them together

We need input the rectangles by selecting them first( which will redden the rectangle)

And then click add We repeat this process for the other rectangle

The objects, once included in the union, should have the color of blue, and should appear in the Input Object section

In this step, we introduce the material that is used in the experiment To do that, right-click on Materials and select Material

Make sure that this material is represented in both domains(the rectangles), which should be colored blue We also input the density and viscosity. We can do this using values we know or using the parameters we previously entered

We enter the values in the Value Column For density we enter Rho For viscosity we enter Rho*Mu – the product of the kinematic viscosity and density

The next step is to select the inlet of our system Right click on Laminar Flow and select Inlet

The inlet section will appear We need to select which wall of our system will be the inlet. Therefore we select the top wall and press add

We also choose the boundary condition For this tutorial we choose the pressure to be our boundary condition and we set it equal to our Atmospheric Pressure

We repeat the process for the outlet We repeat the process for the outlet. Right click on the Laminar Flow section, press Outlet and select and add the wall of the system that is to be your outlet We use the same boundary condition as the inlet

Here we select the Initial Values We select the Domain to be our rectangles We select the Pressure to be our atmospheric pressure To make our calculations faster, since we know that our velocity will be negative, we give the velocity field a small negative number in the z-direction

We introduce gravity to our Model We do that by introducing the Volume Force which is the gravitational pull on a unit of volume. The Volume force is the Density multiplied the Earth’s Acceleration Right-click on Laminar Flow, and select Volume Force. In Selection, select the domains on which this force will act, which are our two rectangles. Also in regards to the magnitude, input the negative product of Density and the Earth’s Acceleration

The next step would be to perform the calculations for the velocity in these conditions Right-click on the Study Section and press Compute

Once the calculation is done we can see that the predicted velocity profile of the fluid is much smaller in the tank than in the pipe We zoom in on the pipe

We can see that the velocity profile in the pipe is laminar We can see that the velocity profile in the pipe is laminar. We can also see how the fluid speeds up as it enters the pipe and propagates farther down

If we press on the Velocity3D section we can see our model in 3D If we press on the Velocity3D section we can see our model in 3D. We can also zoom in to get a better look at the velocity

Now we tackle the issue of constant boundary Now we tackle the issue of constant boundary. To be able to get a feel of how the velocity changes as the tank level changes, using a constant boundary, we would have to perform separate calculations for each level of the fluid tank. In each calculation we would have to change the value of the parameter that gives us our tank level. Comsol can do these calculations all at once using a feature called parametric sweep. With parametric sweep we select a parameter that will change and we choose the range in which it will change. Comsol performs the velocity calculations for each value of the parameter

To select Parametric Sweep we right-click on Study and select Parametric Sweep

Here we select the Parameter to be changed. First we select add…

We select the parameter that describes our tank liquid level In this tutorial that is Lt

And now we need to select the range in which the parameter will be changed.

The following window appears * In this tutorial we chose the step method. With this method we pick a start value(the highest level of the liquid in the tank) a stop value( the lowest level of the liquid in the tank) and the step at which it will change. The other method is similar with the exception that we do not choose the steps, but rather we choose the number of values for that parameter and Comsol chooses the steps. So in this tutorial - Our start value is the liquid level in the beginning - Our end value is the liquid level at the end of the experiment - Our step, to make this calculation short, is 0.1. Since we are decreasing our parameter our step has to be negative, hence it is written as -0.1. You can also choose a smaller step size; however it will make the calculation take longer and use up more RAM. - After inputting the values, press add. **Do not forget to input the units

After adding the values right-click on Study and press Compute

After the calculation is done, we can see how the velocity profile changes as we change the tank height. Select Solution 2, select the height, and press plot .

Now we can calculacte the average velocity and see how it changes for each height. 𝑣 𝑎𝑣𝑔 = 𝑣 𝑑𝐴 𝑑𝐴 In the geometry we are using the equation is 𝑣 𝑎𝑣𝑔 = 𝑣×𝑟 𝑑𝑟 𝑟 𝑑𝑟 Comsol can find both the numerator and the denominator for us and then we can use other computational tools to calculate 𝑣𝑎𝑣𝑔.

We need to set up both integrals We need to set up both integrals. We do that by right-clicking Derived Units in the Results section, selecting Integration, and then selecting Line Integration.

Now we first evaluate the numerator - We select Solution 2 for Data set; for Parameter Selection we select From list. Make sure all the values of the parameter are selected. Select the Outlet as the boundary over which we integrate - In Expression, write spf.U(the velocity profile)*r - Select Evaluate

When the integration is complete, the results will appear below in a spreadsheet format. So far we have Lt(the level in the tank) and the integral of spf.U*r which corresponds to our volumetric flow rate. Now we determine the integral in the denominator which represents the area

In Expression we input r, while everything else is kept as it was previously. -Press Evaluate - The new integral will appear in the third column - We select the whole data set and press Copy Selection to Clipboard.

We copy the data in an Excel Spreadsheet and find the velocity at each height by dividing the Volumetric Flow rate by the Area, as given by the equation on the Previous Slide