Академический Документы
Профессиональный Документы
Культура Документы
TM
Tutorial
Version 4.1
C
The COSMOS/Flow product is copyrighted and all rights are
reserved by Blue Ridge Numerics, Incorporated. Copyright (c) 1992-
2000 Blue Ridge Numerics, Incorporated. All Rights Reserved.
All other brand and prduct names are trademarks of their respective
owners.
1 Introduction
Overview
COSMOS/Flow solves the mathematical equations which represent heat
and momentum transfer in a moving fluid. The finite element method is
used to discretize the flow domain, thereby transforming the governing par-
tial differential equations into a set of algebraic equations whose solution
represent an approximation to the exact (and most often unattainable) ana-
lytical solution. The numerical formulation is derived from the SIMPLER
solution scheme introduced by Patanker1. More detail is available in the
Technical Reference.
COSMOS/Flow Documentation
COSMOS/Flow is documented in 3 manuals:
1. Patankar, S.V., Numerical Heat Transfer and Fluid Flow, Hemisphere Publish-
ing, New York, 1980
About COSMOS/DesignSTAR
About COSMOS/Works
About COSMOS/Edge
Pressure Pressure
Temperature Temperature
Convection Convection
Radiation Radiation
COSMOS/Flow
Boundary COSMOS/DesignSTAR or COSMOS/
Condition Edge Boundary Condition
Pressure Pressure
Temperature Temperature
Convection Convection
Radiation Radiation
COSMOS/Flow
Boundary COSMOS/Works Boundary Condition
Condition
Part I
Step-by-Step Tutorials
using
COSMOS/DesignSTAR or COSMOS/Edge
COSMOS/DesignSTAR 2.0 or later or COSMOS/Edge 4.0 or later is
required to run COSMOS/Flow
The step-by-step tutorials in this part assume that you are using
COSMOS/Flow with COSMOS/DesignSTAR (version 2.0 or later)
or COSMOS/Edge (version 4.0 or later) as the pre-processor. If you
are using COSMOS/Flow with COSMOS/Works, please refer to
Part II of this manual.
Mapping of Boundary Conditions
COSMOS/Flow
Boundary COSMOS/DesignSTAR or COSMOS/
Condition Edge Boundary Condition
Pressure Pressure
Temperature Temperature
Convection Convection
Radiation Radiation
Introduction
The steps in this tutorial assume that you are using COSMOS/
DesignSTAR or COSMOS/Edge for the pre-processing. If you are
using COSMOS/Works, please refer to Part II of this manual.
The two inlet fans are modeled with the same fan curve. The internal fan is
modeled by choosing a point on a particular fan curve. The inlet square area
is modeled with a total pressure boundary condition because the flow will
hopefully be sucked in at this opening. The inlet temperature will be 27 oC.
The heat loading on the three circuit boards will total about 6 Watts and the
power supply will have a heat dissipation of 16 Watts.
The analysis will be run in three steps. The first 100 iterations will solve the
flow equations only (not heat transfer). The second step will be to turn off
the flow equations, and solve the thermal equations only based on the
already solved flow field. The third step will be turn back on the flow with
the heat transfer also on to get the buoyancy effects.
After the analysis is completed, all the steps necessary to post process using
CFDisplay will be covered. In some of the other tutorials in this manual, the
post processing steps are only briefly discussed, so it is a good idea to refer
back to this example when CFDisplay questions arise.
Key Topics
q Convective heat transfer
q Distributed resistances
q Fan curve boundary condition
q Total pressure boundary condition
q Internal fan
q Application of boundary conditions
q Incompressible flow
q Turbulent flow
q Steady-state
described in the next procedure so that you enter same numerical specified
in this example.
Circuit Boards
Square Vented
Inlet
Power
Supply
Power Supply
Inlet Fans fan
The first step in performing analysis is to create a thermal study. You can
use the Visualizer or the menu system to create and manage studies.
Notice the checkmark that appears on the Mesh icon indicating that
the mesh has been created.
Applying a temperature to
the fan curve inlets:
The application of total pressure is carried out in two procedures. The first
procedure is to mark the face(s) associated with this boundary condition, by
applying a non-zero force along the Y-direction of the global coordinate
system. The second procedure is to specify the total pressure value by
applying pressure with the same value as the desired total pressure.
Finally we apply exit total pressure on the extended outlet face. Refer to
Applying total pressure to the square inlet section in this tutorial.
Starting COSMOS/Flow
On the menu bar, click Define, Run COSMOS/Flow. The COSMOS/Flow
starts with a message that the control file of the study is not found and will
be created. Click OK to close the message window.
The units that appear in the ANALYSIS UNITS window are those of
the unit system selected when you set the Units options in COSMOS/
DesignSTAR or COSMOS/Edge (using Tools, Options, Units from
the menu bar). You must leave this option unchanged. If you select
another system of units, the program will issue a warning message.
4 Click OK.
4 Click OK to close this dialog box. You will return to the Fluid
Properties dialog box.
5 From the Name drop-down menu, select AIR_m-kg-s_Constant.
6 From the Name drop-down menu, select User_Defined.
7 Click the Conductivity button, and enter a value of 31.5 for the thermal
conductivity (approximate conductivity of sheet steel). Click OK.
10 Click the Edit button. The Resistance Properties dialog box opens.
11 Enter the following values: Kx = 10000, Lx = 0, Ky = 197, Ly = 0.127, Kz
= 10000, Lz = 0 .
12 Click OK. You will return to the Fluid Properties dialog box again.
13 Click OK to end
setting up the
power supply
properties.
4 Click OK to close this dialog box. You will return to the Fluid
Properties dialog box
5 From the Name drop-down menu, select AIR_m-kg-s_Constant.
6 Check the Extended Attributes checkbox.
7 In the Attributes box, check the Internal Fan/Pump checkbox.
8 Click the Edit button, the Internal Fan/Pump Properties dialog box
opens
9 From the Fan/Pump Flow Direction drop-down menu, select +Y.
10 In the Fan/Pump Flow Rate field, enter 5 and select CFM.
11 In the Fan/Pump Speed (RPM) field, enter 500 and click OK.
4 Click OK. You will return to the Fluid Properties dialog box.
5 From the Name drop-down menu, select AIR_m-kg-s_Constant.
6 Check the Extended Attributes checkbox.
7 In the Attributes box, check the Resistance checkbox and click the Edit
button. The Resistance Properties dialog box opens.
8 Enter the following values: Kx = 1000, Lx = 0, Ky = 197, Ly = 0.0762, Kz
= 1000, Lz = 0.
9 Click OK. You will return to the Fluid Properties dialog box.
10 Click OK.
To initialize temperature:
1 On the COSMOS/Flow menu bar, click Control, Initialization. The
Initialization dialog box opens.
2 In the Temp field, enter 300.
3 Click OK.
While the analysis is running, you can observe how the results evolve with
the solution by watching the display in the CFDisplay window.
In the CFDisplay Controls window, you can choose which result variable
will be displayed by selecting a quantity in the Results group.
In the Model group, choosing Surface displays results on all of the surfaces
of the model (they will have some transparency) and choosing Edge dis-
plays all surfaces of the model as edge lines. The latter choice is useful
when a cutting plane is used because it offers greater visibility into the
model.
The settings in the Display group control how results are shown. If Vector is
chosen, all surfaces and the cutting plane will be shown as vectors. In this
model, however, all the surfaces are walls, so only the cutting plane vectors
will be displayed. If Contour is chosen, all surfaces and the cutting plane
will be displayed as contours.
The orientation of the model in the display window is modified using the
View group. Choose an orientation from the drop-down menu or click the
Reset button to return the model to its original orientation and location in
the window.
The cutting plane can be oriented and located using the commands in the
Cutting Plane group. If you select Visible, the cutting plane contours will be
displayed. If Visible is deselected, only the vectors on the cutting plane will
be displayed.
If your mouse does not have a middle button, you can press the left
and right mouse buttons simultaneously while dragging upward or
downward.
In this phase of the solution process, we will turn off the flow solver and
turn on the thermal solver, and run the analysis for 10 more iterations.
After the thermal-only solution is finished, we will turn back on the flow
solver and leave the thermal solver on and add a gravity vector, and run for
100 more iterations.
Postprocessing
Convergence Assessment
To view the convergence review:
1 After the analysis is completed, click the Close button on the Analyze
window.
2 In the COSMOS/Flow main window, click the Check icon to
view the Convergence Review.
3 To close the Convergence Review window, click the OK button.
There are two criteria which should be used to determine convergence, each
exhibited in the two plots displayed on the Convergence Review window.
The upper plot is a plot of the residuals, an indication of relative change
between iterations. The lower plot shows the summary values of the degrees
of freedom. These lines are the same as those displayed on the interactive
Convergence Review window while the program is running.
One of the most useful convergence assessment tools is the flatness of the
summary curves. If they are flat, the values are not changing, and the solu-
tion can probably be considered converged. Based on this discussion, the
solution shown in Figure 1-3 for the electronic box model is considered
converged.
Instead of clicking Apply each time you make a change in the model
view, you can check the Auto apply checkbox and your changes will
take effect automatically.
3 Highlight Wall 1 Prop 1 then check the Transparent checkbox.
4 Click the Material button. The Material Properties dialog box opens.
5 Enter 0.5 in the Transparency field and click OK. The model outer wall
will be transparent.
6 To close the Change Part Attributes dialog box, click Close.
3 Click Apply.
4 On the CFDisplay menu bar, click Scalar, Textured Fringes. This
option will give a more distinct separation between temperature values.
Note that the velocity vectors are displayed on this cutting plane to
better illustrate what is happening to the heated air. From the figure
above, you can see that the inlet vents are not drawing any air, rather
the air leaves the box through these vents.
5 To turn off the cutting plane, click Clear in the Cuttingplane dialog box.
In the next procedure we will use the Particle Tracing command to plot the
air flow streamlines. For better application and visualization of the particle
traces we may need to change the background color of the CFDisplay
window to black. to do so, click Display, Background on the CFDisplay
menu bar and select black.
Note that the particle traces show that most of the left inlet fan air is blown
out the inlet vents.
Introduction
The steps in this tutorial assume that you are using COSMOS/
DesignSTAR or COSMOS/Edge for the pre-processing. If you are
using COSMOS/Works, please refer to part II of this manual.
This is an example of air flow through a poppet valve. The air is turned 90
degrees shortly after entering the duct; the flow then passes around the
valve body and exits. A half-symmetry model is used to reduce the overall
model size.
Key topics
q Three dimensional model and mesh (4 node tetrahedral elements)
q Incompressible flow
q Turbulent flow
q Steady-state
q Symmetric model
The model is a single part as shown in Figure 2-1. This part represents the
fluid volume from which a solid poppet space was cut out.
Flow Volume
Inlet
Poppet space
Exit
2 Click the Add button. The Study Name dialog box opens.
3 In the New Study field, type in the name of the study, for example,
Study-2.
3 Click OK.
Meshed Model
Notice the checkmark that
appears on the Mesh icon
indicating that the mesh has been created successfully.
To hide the mesh, right-click the Mesh icon and select Hide Mesh.
Face of symmetry
of the model
2 On the menu bar, click Define, Loads/BC, Load. The Loads dialog box
opens.
3 From the Load Type drop-down menu, select Force.
4 Check the Directional button.
5 Check the Z component checkbox and enter any positive non zero
value.
Starting COSMOS/Flow
On the menu bar, click Define, Run COSMOS/Flow. The COSMOS/Flow
starts. A message will prompt you that a new control file will be generated
for this problem. Click OK.
The default system of units is read from the preprocessor. You should
not change this setting. If you choose some other system of units, you
will get a warning message.
2 Click OK to accept the rest of the defaults.
While the analysis is running, you can observe how the results evolve with
the solution by watching the display in the CFDisplay window.
In the CFDisplay Controls window, you can choose which result variable
will be displayed by selecting a quantity in the Results group.
In the Model group, choosing Surface displays results on all of the surfaces
of the model (they will have some transparency) and choosing Edge dis-
plays all surfaces of the model as edge lines. The latter choice is useful
when a cutting plane is used because it offers greater visibility into the
model.
The settings in the Display group control how results are shown. If Vector is
chosen, all surfaces and the cutting plane will be shown as vectors. In this
model, however, all the surfaces are walls, so only the cutting plane vectors
will be displayed. If Contour is chosen, all surfaces and the cutting plane
will be displayed as contours.
The orientation of the model in the display window is modified using the
View group. Choose an orientation from the drop-down menu or click the
Reset button to return the model to its original orientation and location in
the window.
The cutting plane can be oriented and located using the commands in the
Cutting Plane group. If you select Visible, the cutting plane contours will be
displayed. If Visible is deselected, only the vectors on the cutting plane will
be displayed.
If your mouse does not have a middle button, you can press the left
and right mouse buttons simultaneously while dragging upward or
downward.
Postprocessing
Convergence Assessment
To view the convergence review plots:
1 After the analysis is completed, click Close on the Analyze window.
2 In the COSMOS/Flow main window, click the Check icon to
view the Convergence Review.
3 To close the Convergence Review window, click OK.
One of the most useful convergence assessment tools is the flatness of the
summary curves. If they are flat, the values are not changing, and the solu-
tion can probably be considered converged. In this case, they are flat and so
the solution is considered converged.
2 Click Apply.
8 To show only vectors on the cutting plane, check both Hide Plane and
Vectors checkboxes.
9 To show only contours on the cutting plane, uncheck both Hide plane
and Vectors checkboxes.
10 To show both vectors and contours, check Vectors and uncheck Hide
plane checkboxes.
11 To turn off the cutting plane, click the Clear button then the Close
button to close the Cuttingplane dialog box. (This is optional. You can
leave the cutting plane displayed and even move it when particle traces
are on.)
In the next procedure, we will display particle traces inside the model. For
a better visualization of the particle traces, we will hide the inlet, outlet, and
the slip face of the model. We will also change the background color of the
CFDisplay window to Black.
2 On the CFDisplay menu bar, click Scalar, Color Fringes. The model
will be displayed as surfaces with no result color fringes on it.
For multiple selection of entities, press and hold the Ctrl key down.
3 Click Apply. The selected entities will be hidden and you can see inside
the model.
4 Enter 5 in the nx, ny, and nz fields. and click Apply. The particle traces
will be displayed.
During this animation, you can change the orientation of the model as
you want using the mouse buttons.
You can change the location and number of particle traces. Just be
sure to click on the Apply button on the Particle Trace window.
5 To end the animation, uncheck the Animate button and click Apply. To
remove the particle traces from the display, click Reset on the Particle
Trace dialog box.
Introduction
The steps in this tutorial assume that you are using COSMOS/
DesignSTAR or COSMOS/Edge for the pre-processing. If you are
using COSMOS/Works, please refer to Part II of this manual.
In this example, a simple shell and tube heat exchanger will be analyzed.
This exercise deals with setting up and running a COSMOS/Flow analysis
with multiple fluids.
Hot oil passes through the shell side and is cooled by water passing through
the tube. The inlet temperature of the oil is 210 oC, and that of the water is
20 oC. The flow rate of the oil is 5 gpm, and the flow rate of the water is 6
gpm. The tube is made of Copper and the wall of the shell is exposed to 30
o
C air.
Key topics
q Thermally connected multiple fluids.
q Convective and conjugate heat transfer
Cooling fluid
exit
Copper
Cooling fluid shell tube
inlet Cooling fluid volume
The first step in performing analysis is to create a thermal study. You can
use the Visualizer or the menu system to create and manage studies.
2 In the New Study field, type in the name of the study, for example,
Study-3.
6 Click OK.
6 Click OK.
select this face
6 Click OK.
5 Click OK.
Starting COSMOS/Flow
On the menu bar, click Define, Run COSMOS/Flow. The COSMOS/Flow
starts.
While the analysis is running, you can observe how the results evolve with
the solution by watching the display in the CFDisplay window.
In the CFDisplay Controls window, you can choose which result variable
will be displayed by selecting a quantity in the Results group.
In the Model group, choosing Surface displays results on all of the surfaces
of the model (they will have some transparency) and choosing Edge dis-
plays all surfaces of the model as edge lines. The latter choice is useful
when a cutting plane is used because it offers greater visibility into the
model.
The settings in the Display group control how results are shown. If Vector is
chosen, all surfaces and the cutting plane will be shown as vectors. In this
model, however, all the surfaces are walls, so only the cutting plane vectors
will be displayed. If Contour is chosen, all surfaces and the cutting plane
will be displayed as contours.
The orientation of the model in the display window is modified using the
View group. Choose an orientation from the drop-down menu or click the
Reset button to return the model to its original orientation and location in
the window.
The cutting plane can be oriented and located using the commands in the
Cutting Plane group. If you select Visible, the cutting plane contours will be
displayed. If Visible is deselected, only the vectors on the cutting plane will
be displayed.
If your mouse does not have a middle button, you can press the left
and right mouse buttons simultaneously while dragging upward or
downward.
Postprocessing
Convergence Assessment
To view the convergence review plots:
1 After the analysis is completed, click Close on the Analyze window.
One of the most useful convergence assessment tools is the flatness of the
summary curves. If they are flat, the values are not changing, and the solu-
tion can probably be considered converged. In this case, they are flat and so
the solution is considered converged.
In the next procedure, we will display the velocity magnitude and other
quantities of interest on a cutting plane.
The scalar result that will be displayed on a cutting plane is the one
currently selected in the Scalar field in the Select CFDisplay Results
dialog box. Similarly, the vector result that will be displayed on a
cutting plane is the one currently selected in the Vector field in the
Select CFDisplay Results dialog box.
The three digits in the Normal field refer to a unit vector normal to the
cutting plane.
In the next procedure, we will plot particle traces inside the heat exchanger.
For better visualization of the particle traces, we will hide the slip faces and
the inlets and outlet of the model.
Introduction
The steps in this tutorial assume that you are using COSMOS/
DesignSTAR or COSMOS/Edge for the pre-processing. If you are
using COSMOS/Works, please refer to part II of this manual.
Key Topics
q Three dimensional meshing
q Application of flow and slip boundary conditions
q Non-Newtonian fluid
q Incompressible flow
q Eddy viscosity turbulence model
q Steady-state
The geometry is comprised of a single part. The solid valve leaves have
been removed from the model, only the fluid space is modeled.
Fluid Outlet
Fluid Inlet
The first step in performing analysis is to create a thermal study. You can
use the Visualizer or the menu system to create and manage studies.
4 Click OK.
Notice the checkmark that appears on the Mesh icon indicating that
the mesh has been created.
Exit Pressure
on this face
Slip face (face of symmetry)
Inlet Velocity
on this face
6 Click OK.
Starting COSMOS/Flow
To start COSMOS/Flow:
On the menu bar, click Define, Run COSMOS/Flow.
The units selected in Analysis Units are the same as the units settings
in COSMOS/DesignSTAR or COSMOS/Edge. If you change this
default units, a message window warns you that the units you selected
do not match COSMOS units.
Assigning materials
To set the blood property:
1 Click on the Fl Prop icon . The Fluid Properties dialog box opens.
1 From the Name drop-down menu, select H2O_mm-g-s_Constant.
2 From the Name drop-down menu, select User Defined to enter the
properties of the blood.
3 Click on the Density button and enter 0.0010581.
4 From the Viscosity drop-down menu, select NonNewt Pwr Law.
5 Click the Viscosity button. The Edit Variable Viscosity dialog box
opens.
6 In the CutOff Viscosity and Viscosity Coef. (k) fields, enter 0.0033.
7 In the Power law exp.(p) field, enter -0.38.
8 Click OK. You will return to the Fluid Properties dialog box.
9 Accept the rest of the properties and click OK.
While the analysis is running, you can observe how the results evolve with
the solution by watching the display in the CFDisplay window.
In the CFDisplay window, the image can be panned, zoomed, and
rotated using the mouse buttons (L, M, R), respectively.
Change the result to be displayed by selecting Pres (Pressure) from
the Results group in the CFDisplay Controls window. Change it back
to VMag (velocity magnitude).
Click on Edge in the Model group. The model will be displayed as an
outline.
Postprocessing
Convergence Assessment
After the analysis has been completed, click on the Close button in the Ana-
lyze window. Click on the Check icon to view the Convergence Mon-
itor.
One of the most useful convergence assessment tools is the flatness of the
summary curves. If they are flat, the values are not changing, and the solu-
tion can probably be considered converged.
The Min and Max values are shown as zeros because many quantities
are shown on the same graph simultaneously. To view the actual Min
and Max values for a certain quantity, select it from the Residual or
the Summary drop-down menus.
If your mouse does not have a middle button, you can press the left
and right mouse buttons simultaneously to zoom in or out of the
model.
3 To change the location of the box without changing the size or shape,
click Lock Coordinates and move the slider bars.
During this animation, you can change the orientation of the model as
desired using the mouse buttons: Left to Pan, Middle to Zoom, and
Right to Rotate.
Part II
Step-by-Step Tutorials
using
COSMOS/Works
COSMOS/Works release code 1999/350 or later is required to run COSMOS/Flow
The step-by-step tutorials in this part assume that you are using
COSMOS/Flow with COSMOS/Works as the pre-processor. If
you are using COSMOS/Flow with COSMOS/DesignSTAR or
COSMOS/Edge as the pre-processor, please refer to Part I of this
manual.
Mapping of Boundary Conditions from COSMOS/Works
COSMOS/Flow
Boundary COSMOS/Works Boundary Condition
Condition
Pressure Pressure
Temperature Temperature
Convection Convection
Radiation Radiation
Introduction
The steps in this tutorial assume that you are using COSMOS/Works
for the pre-processing. If you are using COSMOS/DesignSTAR or
COSMOS/Edge, please refer to Part I of this manual.
The two inlet fans are modeled with the same fan curve. The internal fan is
modeled by choosing a point on a particular fan curve. The inlet square area
is modeled with a total pressure boundary condition because the flow will
hopefully be sucked in at this opening. The inlet temperature will be 27 oC.
The heat loading on the three circuit boards will total about 6 Watts and the
power supply will have a heat flux of 163 W/m2 out of its faces.
The analysis will be run in three steps. The first 100 iterations will solve the
flow equations only (not heat transfer). The second step will be to turn off
the flow equations, and solve the thermal equations only based on the
already solved flow field. The third step will be turn back on the flow with
the heat transfer also on to get the buoyancy effects.
After the analysis is completed, all the steps necessary to post process using
CFDisplay will be covered. In some of the other tutorials in this manual, the
post processing steps are only briefly discussed, so it is a good idea to refer
back to this example when CFDisplay questions arise.
Key Topics
q Convective heat transfer
q Distributed resistances
q Fan curve boundary condition
q Total pressure boundary condition
q Internal fan
q Application of boundary conditions
q Incompressible flow
q Turbulent flow
q Steady-state
or...
Select the ELECTRONIC_BOX.x_t file and click Open. A message window
opens to inform you that SolidWorks will create assembly and part files
from the *.x_t file in the same directory as the *.x_t file. If you agree,
click OK. The model opens.
Verify that the FEM menu appears in the SolidWorks menu bar. If not,
select Tools, Add Ins, select COSMOS/Works, and click OK.
Circuit Boards
Square Vented
Inlet
Power
Supply
Power Supply
Inlet Fans fan
The first step in performing analysis is to create a thermal study. You can
use the Visualizer or the menu system to create and manage studies.
You must assign a material to each component (solid and fluid) before
launching COSMOS/Flow. Assigned thermal material properties for solid
elements will be used by COSMOS/Flow. Fluid properties must be entered
in COSMOS/Flow.
6 Click OK.
Notice the checkmark that appears on the Mesh icon indicating that
the mesh has been created.
Meshed Model
To show/hide the mesh, right-click the Mesh icon and select Show/
Hide Mesh .
Notice the boundary condition symbols that appear on the two inlets.
The application of total pressure is carried out in two procedures. The first
procedure is to mark the face(s) associated with this boundary condition, by
applying a non-zero force along the Y-direction of the global coordinate
system. The second procedure is to specify the total pressure value by
applying pressure with the same value as the desired total pressure.
Next, we will apply a heat power of 2 W to each of the three circuit boards
inside the box. This heat power will be applied to the lower face of the
upper circuit board, the upper face of the lower circuit board, and the left
face of the vertical circuit board. To ease the process of selecting hidden
faces of the circuit boards, we will turn the Wireframe viewing mode on by
clicking on the selection toolbar.
We will apply a heat flux of 163 W/m2 to each face of the power supply. To
ease the process of applying heat flux to the faces of the power supply, we
will hide all components except the power supply, then we apply the heat
flux to its faces.
3 On the menu bar, click FEM, Insert, HeatFlux . The Heat Flux dialog
box opens.
4 From the Units drop-down menu, select SI.
5 In the Heat Flux box, enter 163 (W/m2).
6 Click OK.
Finally we apply exit total pressure on the extended outlet face. Refer to
Applying total pressure to the square inlet section in this tutorial.
4 In the Force box, check the Along plane Dir 2 checkbox and enter any
non-zero value.
5 Click OK.
Starting COSMOS/Flow
On the menu bar, click FEM, Run COSMOS/Flow. The COSMOS/Flow
starts. A message will prompt you that a new control file will be generated
for this problem. Click OK.
The units that appear in the ANALYSIS UNITS window are those of
the unit system selected when you set the Units options in COSMOS/
Works. You must leave this option unchanged. If you select another
system of units, the program will issue a warning message.
3 Accepts all the defaults and click OK.
4 Enter the fan curve data shown in figure using the Insert Before and
Insert After buttons.
Assigning materials
To set the open air fluid property:
1 Click the Fl Prop icon . The Fluid Properties dialog box opens.
2 Click the New button, the New Fluid Property dialog box opens.
3 From the Pre-Processor Property Ids drop-down menu, select 4
Electronic_Box-1 and click OK. You will return to the Fluid Properties
dialog box.
4 From the Name drop-down menu, select AIR_m-kg-s_Constant.
5 Click OK.
7 Click the Conductivity button, and enter a value of 31.5 for the thermal
conductivity (approximate conductivity of sheet steel). Click OK.
8 Check the Extended Attributes checkbox.
9 In the Attributes box, check the Resistance checkbox.
10 Click the Edit button. The Resistance Properties dialog box opens.
11 Enter the following values: Kx = 10000, Lx = 0, Ky = 197, Ly = 0.127, Kz
= 10000, Lz = 0 .
12 Click OK. You will return to the Fluid Properties dialog box again.
13 Click OK to end
setting up the
power supply
properties.
4 Click OK to close this dialog box. You will return to the Fluid
Properties dialog box
5 From the Name drop-down menu, select AIR_m-kg-s_Constant.
6 Check the Extended Attributes checkbox.
7 In the Attributes box, check the Internal Fan/Pump checkbox.
8 Click the Edit button, the Internal Fan/Pump Properties dialog box
opens
9 From the Fan/Pump Flow Direction drop-down menu, select +Y.
10 In the Fan/Pump Flow Rate field, enter 5 and select CFM.
11 In the Fan/Pump Speed (RPM) field, enter 500 and click OK.
7 Click OK. You will return to the Fluid Properties dialog box.
8 Click OK.
To initialize temperature:
1 On the COSMOS/Flow menu bar, click Control, Initialization. The
Initialization dialog box opens.
2 In the Temp field, enter 300.
3 Click OK.
While the analysis is running, you can observe how the results evolve with
the solution by watching the display in the CFDisplay window.
In the CFDisplay Controls window, you can choose which result variable
will be displayed by selecting a quantity in the Results group.
In the Model group, choosing Surface displays results on all of the surfaces
of the model (they will have some transparency) and choosing Edge dis-
plays all surfaces of the model as edge lines. The latter choice is useful
when a cutting plane is used because it offers greater visibility into the
model.
The settings in the Display group control how results are shown. If Vector is
chosen, all surfaces and the cutting plane will be shown as vectors. In this
model, however, all the surfaces are walls, so only the cutting plane vectors
will be displayed. If Contour is chosen, all surfaces and the cutting plane
will be displayed as contours.
The orientation of the model in the display window is modified using the
View group. Choose an orientation from the drop-down menu or click the
Reset button to return the model to its original orientation and location in
the window.
The cutting plane can be oriented and located using the commands in the
Cutting Plane group. If you select Visible, the cutting plane contours will be
displayed. If Visible is deselected, only the vectors on the cutting plane will
be displayed.
If your mouse does not have a middle button, you can press the left
and right mouse buttons simultaneously while dragging upward or
downward.
In this phase of the solution process, we will turn off the flow solver and
turn on the thermal solver, and run the analysis for 10 more iterations.
After the thermal-only solution is finished, we will turn back on the flow
solver and leave the thermal solver on and add a gravity vector, and run for
100 more iterations.
Post Processing
Convergence Assessment
To view the convergence review:
1 After the analysis is completed, click the Close button on the Analyze
window.
2 In the COSMOS/Flow main window, click the Check icon to
view the Convergence Review.
3 To close the Convergence Review window, click the OK button.
There are two criteria which should be used to determine convergence, each
exhibited in the two plots displayed on the Convergence Review window.
The upper plot is a plot of the residuals, an indication of relative change
between iterations. The lower plot shows the summary values of the degrees
of freedom. These lines are the same as those displayed on the interactive
Convergence Review window while the program is running.
One of the most useful convergence assessment tools is the flatness of the
summary curves. If they are flat, the values are not changing, and the solu-
tion can probably be considered converged. Based on this discussion, the
solution shown in Figure 1-3 for the electronic box model is considered
converged.
used in the interactive analysis). CFDisplay will come up and your model
will be automatically loaded. The orientation within CFDisplay will be the
same as how you left it in the run-time CFDisplay. As mentioned earlier,
you can pan, zoom in/out, and/or rotate the model by using the left, middle,
and right mouse buttons respectively.
Instead of clicking Apply each time you make a change in the model
view, you can check the Auto apply checkbox and your changes will
take effect automatically.
3 Highlight Wall 1 Prop 4 then check the Transparent checkbox.
4 Click the Material button. The Material Properties dialog box opens.
5 Enter 0.5 in the Transparency field and click OK. The model outer wall
will be transparent.
3 Click Apply.
4 On the CFDisplay menu bar, click Scalar, Textured Fringes. This
option will give a more distinct separation between temperature values.
5 To turn off the cutting plane, click Clear in the Cuttingplane dialog box.
In the next procedure we will use the Particle Tracing command to plot the
air flow streamlines. For better application and visualization of the particle
traces we may need to change the background color of the CFDisplay
window to black. to do so, click Display, Background on the CFDisplay
menu bar and select black.
2 Use the top set of slider bars (labeled X1, Y1, and Z1) to move the
startpoint to any location in the model.
3 To plot a particle trace, click Apply. Try moving the start point to a
couple of different locations. Occasionally the point will be on a wall in
which case the trace will not start or the trace will hit a wall and not
proceed. If this happens, move the start point to a different location and
try again.
Introduction
The steps in this tutorial assume that you are using COSMOS/Works
for the pre-processing. If you are using COSMOS/DesignSTAR or
COSMOS/Edge, please refer to Part I of this manual.
This is an example of air flow through a poppet valve. The air is turned 90
degrees shortly after entering the duct; the flow then passes around the
valve body and exits. A half-symmetry model is used to reduce the overall
model size.
Key Topics
q Three dimensional model and mesh (4 node tetrahedral elements)
q Incompressible flow
q Turbulent flow
q Steady-state
q Symmetric model
Make sure that the FEM menu appears in the SolidWorks menu bar. If
not, select Tools, Add Ins, then select COSMOS/Works, and click OK .
The model is a single part as shown in Figure 2-1. This part represents the
fluid volume from which a solid poppet space was cut out.
Flow Volume
Inlet
Poppet space
Exit
The first step in performing analysis is to create a thermal study. You can
use the Visualizer or the menu system to create and manage studies.
You must assign a material to each component (solid and fluid) before
launching COSMOS/Flow. Assigned thermal material properties for solid
elements will be used by COSMOS/Flow. Fluid properties must be entered
in COSMOS/Flow but a dummy material must be assigned in COSMOS/
Works first.
In this tutorial, we will assign the default material to the part and then
redefine the properties in COSMOS/Flow.
Face of symmetry
of the model
2 On the menu bar, click FEM, Insert, Force. The Force dialog box
opens.
3 In the Type box select Apply Force/Moment.
4 Check the Normal to plane checkbox, and enter any positive non zero
value in its field.
Starting COSMOS/Flow
On the menu bar, click FEM, Run FlowPlus/Works. The COSMOS/Flow
starts. A message will prompt you that a new control file will be generated
for this problem. Click OK.
Assigning materials
To set the fluid properties:
1 Click the Fl Prop icon . The Fluid Properties dialog box opens.
2 From the Name drop-down menu, select AIR_m-kg-s_Constant. The
properties are now set with the correct units.
3 Click OK.
While the analysis is running, you can observe how the results evolve with
the solution by watching the display in the CFDisplay window.
In the CFDisplay Controls window, you can choose which result variable
will be displayed by selecting a quantity in the Results group.
In the Model group, choosing Surface displays results on all of the surfaces
of the model (they will have some transparency) and choosing Edge dis-
plays all surfaces of the model as edge lines. The latter choice is useful
when a cutting plane is used because it offers greater visibility into the
model.
The settings in the Display group control how results are shown. If Vector is
chosen, all surfaces and the cutting plane will be shown as vectors. In this
model, however, all the surfaces are walls, so only the cutting plane vectors
will be displayed. If Contour is chosen, all surfaces and the cutting plane
will be displayed as contours.
The orientation of the model in the display window is modified using the
View group. Choose an orientation from the drop-down menu or click the
Reset button to return the model to its original orientation and location in
the window.
The cutting plane can be oriented and located using the commands in the
Cutting Plane group. If you select Visible, the cutting plane contours will be
displayed. If Visible is deselected, only the vectors on the cutting plane will
be displayed.
If your mouse does not have a middle button, you can press the left
and right mouse buttons simultaneously while dragging upward or
downward.
Post Processing
Convergence Assessment
To view the convergence review plots:
1 After the analysis is completed, click Close on the Analyze window.
2 In the COSMOS/Flow main window, click the Check icon to
view the Convergence Review.
3 To close the Convergence Review window, click OK.
One of the most useful convergence assessment tools is the flatness of the
summary curves. If they are flat, the values are not changing, and the solu-
tion can probably be considered converged. In this case, they are flat and so
the solution is considered converged.
2 Click Apply.
8 To show only vectors on the cutting plane, check both Hide Plane and
Vectors checkboxes.
9 To show only contours on the cutting plane, uncheck both Hide plane
and Vectors checkboxes.
10 To show both vectors and contours, check Vectors and uncheck Hide
plane checkboxes.
11 To turn off the cutting plane, click the Clear button then the Close
button to close the Cuttingplane dialog box. (This is optional. You can
leave the cutting plane displayed and even move it when particle traces
are on.)
In the next procedure, we will display particle traces inside the model. For a
better visualization of the particle traces, we will hide the inlet, outlet, and
the slip face of the model. We will also change the background color of the
CFDisplay window to Black.
For multiple selection of entities, press and hold the Ctrl key down.
3 Click Apply. The selected entities will be hidden and you can see inside
the model.
4 Enter 5 in the nx, ny, and nz fields. and click Apply. The particle traces
will be displayed.
During this animation, you can change the orientation of the model as
you want using the mouse buttons.
The location and number of particle traces can be changed at will also.
Just be sure to click on the Apply button on the Particle Trace
window.
5 To end the animation, uncheck the Animate button and click Apply. To
remove the particle traces from the display, click Reset on the Particle
Trace dialog box.
Introduction
The steps in this tutorial assume that you are using COSMOS/Works
for the pre-processing. If you are using COSMOS/DesignSTAR or
COSMOS/Edge, please refer to Part I of this manual.
In this example, a simple shell and tube heat exchanger will be analyzed.
This exercise deals with setting up and running a COSMOS/Flow analysis
with multiple fluids.
Hot oil passes through the shell side and is cooled by water passing through
the tube. The inlet temperature of the oil is 210 oC, and that of the water is
20 oC. The flow rate of the oil is 5 gpm, and the flow rate of the water is 6
gpm. The tube is made of Copper and the wall of the shell is exposed to 30
o
C air.
Key Topics
q Thermally connected multiple fluids.
q Convective and conjugate heat transfer
Make sure that the FEM menu appears in the SolidWorks menu bar. If
not, select Tools, Add Ins, select COSMOS/Works, and click OK.
Cooling fluid
exit
Copper
Cooling fluid shell tube
inlet Cooling fluid volume
The first step in performing analysis is to create a thermal study. You can
use the Visualizer or the menu system to create and manage studies.
You must assign a material to each component (solid and fluid) before
launching COSMOS/Flow. Assigned thermal material properties for solid
elements will be used by COSMOS/Flow. Fluid properties must be entered
in COSMOS/Flow.
In this tutorial, we will assign the default material to all components and
then modify the material properties in COSMOS/Flow.
To show/hide the mesh, right-click the Mesh icon and select Show
Mesh/Hide Mesh .
6 Click OK.
6 Click OK.
Starting COSMOS/Flow
On the menu bar, click FEM, Run COSMOS/Flow. The COSMOS/Flow
starts. A message will prompt you that a new control file will be generated
for this problem. Click OK.
Assigning materials
To set the hot fluid (oil) properties:
1 On the COSMOS/Flow toolbar, click the Fl Prop icon . The Fluid
Properties dialog box opens.
2 In the Fluid ID, make sure that 1 is showing up.
3 From the Name drop-down menu, select H2O_m-kg-s_Constant.
4 From the Name drop-down menu, select User_Defined.
5 Click the Density button, the Edit Constant Density dialog box opens.
6 Enter 806.5 and click OK. You will return to the Fluid Properties dialog
box.
9 Click the Specific Heat button. The Edit Constant Specific Heat dialog
box opens.
10 Enter 390 and click OK.
11 Click OK to close the Solid Properties dialog box.
While the analysis is running, you can observe how the results evolve with
the solution by watching the display in the CFDisplay window.
In the CFDisplay Controls window, you can choose which result variable
will be displayed by selecting a quantity in the Results group.
In the Model group, choosing Surface displays results on all of the surfaces
of the model (they will have some transparency) and choosing Edge dis-
plays all surfaces of the model as edge lines. The latter choice is useful
when a cutting plane is used because it offers greater visibility into the
model.
The settings in the Display group control how results are shown. If Vector is
chosen, all surfaces and the cutting plane will be shown as vectors. In this
model, however, all the surfaces are walls, so only the cutting plane vectors
will be displayed. If Contour is chosen, all surfaces and the cutting plane
will be displayed as contours.
The orientation of the model in the display window is modified using the
View group. Choose an orientation from the drop-down menu or click the
Reset button to return the model to its original orientation and location in
the window.
The cutting plane can be oriented and located using the commands in the
Cutting Plane group. If you select Visible, the cutting plane contours will be
displayed. If Visible is deselected, only the vectors on the cutting plane will
be displayed.
If your mouse does not have a middle button, you can press the left
and right mouse buttons simultaneously while dragging upward or
downward.
Postprocessing
Convergence Assessment
To view the convergence review plots:
1 After the analysis is completed, click Close on the Analyze window.
2 In the COSMOS/Flow main window, click the Check icon to
view the Convergence Review.
3 To close the Convergence Review window, click OK.
One of the most useful convergence assessment tools is the flatness of the
summary curves. If they are flat, the values are not changing, and the solu-
tion can probably be considered converged. In this case, they are flat and so
the solution is considered converged.
2 Scroll down to the inlets and outlets. For each boundary opening in the
model, the mass flow entering or leaving the model is displayed as is
the bulk pressure, temperature, Reynolds number, etc. Compare the
Total Mass Flow In to the Total Mass Flow Out. They are very close and
opposite in sign.
3 To close the summary file, click Exit.
In the next procedure, we will display the velocity magnitude and other
quantities of interest on a cutting plane.
The scalar result that will be displayed on a cutting plane is the one
currently selected in the Scalar field in the Select CFDisplay Results
dialog box. Similarly, the vector result that will be displayed on a
cutting plane is the one currently selected in the Vector field in the
Select CFDisplay Results dialog box.
The three digits in the Normal field refer to a unit vector normal to the
cutting plane.
In the next procedure, we will plot particle traces inside the heat exchanger.
For better visualization of the particle traces, we will hide the slip faces and
the inlets and outlet of the model.
Introduction
The steps in this tutorial assume that you are using COSMOS/Works
for the pre-processing. If you are using COSMOS/DesignSTAR or
COSMOS/Edge, please refer to Part I of this manual.
Key Topics
q Three dimensional meshing
q Application of flow and slip boundary conditions
q Non-Newtonian fluid
q Incompressible flow
q Eddy viscosity turbulence model
q Steady-state
Make sure that the FEM menu appears in the SolidWorks menu bar. If
not, select Tools, Add Ins, then select COSMOS/Works, and click OK .
Fluid Outlet
Fluid Inlet
The first step in performing analysis is to create a thermal study. You can
use the Visualizer or the menu system to create and manage studies.
In this tutorial, we will assign the default material to the part and then
redefine the properties in COSMOS/Flow.
2 Accept the defaults and click OK. Meshing starts. When completed,
click OK to close the message window.
Notice the checkmark that appears on the Mesh icon in the Visualizer
tree indicating that the mesh has been created.
To show/hide the mesh, right-click the Mesh icon and select Show
Mesh/Hide Mesh .
Exit Pressure
on this face
Slip face (face of symmetry)
Inlet Velocity
on this face
6 Click OK.
2 On the menu bar, click FEM, Insert, Pressure . The Pressure dialog box
opens.
3 In the Type box, make sure that Normal to selected face is selected.
4 From the Units drop-down menu, select SI.
5 In the Value field, enter 1e-15.
6 Click OK.
Starting COSMOS/Flow
To start COSMOS/Flow using COSMOS/Works:
On the menu bar, click FEM, Run COSMOS/Flow. The COSMOS/Flow
starts. A message will prompt you that a new control file will be generated
for this problem. Click OK.
The units selected in Analysis Units are the same as the units settings
in COSMOS/Works. If you change this default units, a message
window warns you that the units you selected do not match COSMOS
units.
Assigning materials
To set the blood property:
1 Click on the Fl Prop icon . The Fluid Properties dialog box opens.
1 From the Name drop-down menu, select H2O_mm-g-s_Constant.
2 From the Name drop-down menu, select User Defined to enter the
properties of the blood.
3 Click on the Density button and enter 0.0010581.
4 From the Viscosity drop-down menu, select NonNewt Pwr Law.
5 Click the Viscosity button. The Edit Variable Viscosity dialog box
opens.
6 In the CutOff Viscosity and Viscosity Coef. (k) fields, enter 0.0033.
7 In the Power law exp.(p) field, enter -0.38.
8 Click OK. You will return to the Fluid Properties dialog box.
9 Accept the rest of the properties and click OK.
While the analysis is running, you can observe how the results evolve with
the solution by watching the display in the CFDisplay window.
In the CFDisplay window, the image can be panned, zoomed, and
rotated using the mouse buttons (L, M, R), respectively.
Change the result to be displayed by selecting Pres (Pressure) from
the Results group in the CFDisplay Controls window. Change it back
to VMag (velocity magnitude).
Click on Edge in the Model group. The model will be displayed as an
outline.
In the COSMOS/Flow main window, the summary values of the
degrees of freedom are plotted, and the average, min, and max values
are displayed in the window. The purpose of all of these tools is to
keep the analysis interactive. At any point in the analysis cycle, you
can assess the progress of the solution.
Postprocessing
Convergence Assessment
After the analysis has been completed, click on the Close button in the Ana-
lyze window. Click on the Check icon to view the Convergence Mon-
itor.
One of the most useful convergence assessment tools is the flatness of the
summary curves. If they are flat, the values are not changing, and the solu-
tion can probably be considered converged. To close the Convergence
Review window, click OK.
The Min and Max values are shown as zeros because many quantities
are shown on the same graph simultaneously. To view the actual Min
and Max values for a certain quantity, select it from the Residual or
the Summary drop-down menus.
If your mouse does not have a middle button, you can press the left
and right mouse buttons simultaneously to zoom in or out of the
model.
3 Click the Material button. The Material Properties dialog box opens.
4 In the Transparency field, enter 0.5 and click OK.
5 Select the inlet, outlet, and slip face, and uncheck Visible.
6 Click Apply.
2 Enter a value of 3 for nx then click Apply. You will see 3 stream lines,
all starting parallel in the X-direction. The top set of slider bars control
the minimum ranges of the box; the lower set control the maximum
ranges of the box. Experiment with these controls to change the shape
and location of the box, always click Apply to generate new particle
traces.
3 To change the location of the box without changing the size or shape,
click Lock Coordinates and move the slider bars.
During this animation, you can change the orientation of the model as
desired using the mouse buttons.