Vous êtes sur la page 1sur 44

Numerical Methods in Aerodynamics

Lecture 3: Exercise CAD, CFD, FEM, Indoor


environmental

Plan for today (two exercises)


1: CAD, CFD, FEM

Fluid-Structure interaction (FSI)


http://www.ansys.com/solutions/fluid-dynamics.asp
http://www-harwell.ansys.com/demoroom/details.php?id=11,112

Create an object in SolidWorks (CAD)


Transfer the object to ANSYS Workbench
Generate a wind tunnel inclosure
Generate a fluid flow mesh
Apply boundary conditions
Apply initial conditions
Solve the flow around the object
Generate flow results
Solve the structural model
mesh, material, supports, pressure load from the fluid solution
Change the system and update the solution
1
Numerical Methods in Aerodynamics
Lecture 3: Exercise CAD, CFD, FEM, Indoor
environmental

Plan for today (two exercises)


2: Indoor environmental

Create room with mechanical inlet


Define variables for the inlet properties
Generate a fluid mesh of the room
Apply boundary conditions
Apply initial conditions
Solve the flow in the room
Generate flow results
Change the boundary conditions

2
Numerical Methods in Aerodynamics
Lecture 3: Exercise CAD, CFD, FEM, Indoor
environmental

Problem 1: Combining CAD, CFD and FEM

Solve the deformations due to flow pressure


Change the width of the structural element

steel part
Inflow

Fixed support

3
Numerical Methods in Aerodynamics
Lecture 3: Exercise CAD, CFD, FEM, Indoor
environmental

Create object in Solidworks

4
Numerical Methods in Aerodynamics
Lecture 3: Exercise CAD, CFD, FEM, Indoor
environmental

ANSYS Workbench an overview of the various parts in the


project

5
Numerical Methods in Aerodynamics
Lecture 3: Exercise CAD, CFD, FEM, Indoor
environmental

Wind tunnel enclosure in DesignModeler

6
Numerical Methods in Aerodynamics
Lecture 3: Exercise CAD, CFD, FEM, Indoor
environmental

Generating the mesh for the fluid flow applying boundary


conditions in CFX Pre

7
Numerical Methods in Aerodynamics
Lecture 3: Exercise CAD, CFD, FEM, Indoor
environmental

Solve the fluid flow i CFX Solver

8
Numerical Methods in Aerodynamics
Lecture 3: Exercise CAD, CFD, FEM, Indoor
environmental

Illustrate flow results in CFX Post

9
Numerical Methods in Aerodynamics
Lecture 3: Exercise CAD, CFD, FEM, Indoor
environmental

Pressure result on boundary

10
Numerical Methods in Aerodynamics
Lecture 3: Exercise CAD, CFD, FEM, Indoor
environmental

Transfer pressure from CFX to ANSYS structural solver and


solve for deformations

11
Numerical Methods in Aerodynamics
Lecture 3: Exercise CAD, CFD, FEM, Indoor
environmental

Solution of structural analysis

12
Numerical Methods in Aerodynamics
Lecture 3: Exercise CAD, CFD, FEM, Indoor
environmental

Change the system

Change the CAD model


Update the geometry in CFX
Update the mesh
Adopt the boundary conditions from previous simulation
Solve for pressure
Update the geometry in the FEM model
Import the updated pressure
Solve the structural system

13
Numerical Methods in Aerodynamics
Lecture 3: Exercise CAD, CFD, FEM, Indoor
environmental

2: Indoor environmental problem

Solve the temperature distribution of a buoyant domain in a 5x5x3m3


room, with mass flow inlet, and opening.
Introduce expressions for easy variation of problem and change the
given setup.

14
Numerical Methods in Aerodynamics
Lecture 3: Exercise CAD, CFD, FEM, Indoor
environmental

Start of problem 2

15
Numerical Methods in Aerodynamics
Lecture 3: Exercise CAD, CFD, FEM, Indoor
environmental

Problem 2: New project

Open ANSYS Workbench empty project


Chose "New Geometry"

16
Numerical Methods in Aerodynamics
Lecture 3: Exercise CAD, CFD, FEM, Indoor
environmental

Chose plane for base

Chose XYPlane
Press "Sketching"

17
Numerical Methods in Aerodynamics
Lecture 3: Exercise CAD, CFD, FEM, Indoor
environmental

Create base and extrude room

press "draw" tab and chose rectangle


draw from center and out
press "dimensions" tab

18
Numerical Methods in Aerodynamics
Lecture 3: Exercise CAD, CFD, FEM, Indoor
environmental

Create the correct dimensions of the base

Chose "general" dimension


click on two sides of the rectangle and drag a dimension line
In the lower left corner the dimension can by set to 5x5 m

19
Numerical Methods in Aerodynamics
Lecture 3: Exercise CAD, CFD, FEM, Indoor
environmental

Extrude room

Chose "extrude"=3m
Click generate

20
Numerical Methods in Aerodynamics
Lecture 3: Exercise CAD, CFD, FEM, Indoor
environmental

Create new coordinate system do define inlet

Create new coordinate system parallel to XYPlane for a new sketch


(this is done because only one face has an inlet)
Offset the plane 1m in z-direction via transform 1
Click "Generate"

21
Numerical Methods in Aerodynamics
Lecture 3: Exercise CAD, CFD, FEM, Indoor
environmental

New sketch in the created coordinatesystem

Chose "sketching" create rectangle in the first quadrant of the new


coordinate system
Chose "Dimension" Length/distance click the coordinate lines and
the box lines one by one
The opening (x;y)
corner1 (0.1;1)
corner2 (0.2;2)

22
Numerical Methods in Aerodynamics
Lecture 3: Exercise CAD, CFD, FEM, Indoor
environmental

Extrude new sketch

Extrude the new sketch (Base object [Sketch2], Operation [Imprint


face], Type [to next])
click generate
mark Extrude2 to check

23
Numerical Methods in Aerodynamics
Lecture 3: Exercise CAD, CFD, FEM, Indoor
environmental

Create outlet by same procedure

New coordinate system YZPlane. Offset Z 1m, Click "generate"


Sketch rectangle
(Base object [Sketch2], Operation [Imprint face], Type [to next])
"generate"

24
Numerical Methods in Aerodynamics
Lecture 3: Exercise CAD, CFD, FEM, Indoor
environmental

Generate mesh

Save and return to project. Save project


click "Generate CFX mesh"

25
Numerical Methods in Aerodynamics
Lecture 3: Exercise CAD, CFD, FEM, Indoor
environmental
Setup regions
Right click on regions and insert new name: inlet
mark the inlet and apply
Create new, name:outlet, mark and apply
Create new, name:room, mark all sides, roof and floor (hold ctrl
down) and apply

26
Numerical Methods in Aerodynamics
Lecture 3: Exercise CAD, CFD, FEM, Indoor
environmental

Setup mesh controls

mark mesh/spacing/default body spacing = 0.25m

27
Numerical Methods in Aerodynamics
Lecture 3: Exercise CAD, CFD, FEM, Indoor
environmental

Refine mesh near inlet and outlet

Right click spacing > insert face spacing


mark inlet and apply
Modify the details to

Right click spacing >ins. face


mark outlet and apply
Modify the details to

28
Numerical Methods in Aerodynamics
Lecture 3: Exercise CAD, CFD, FEM, Indoor
environmental

Create inflation layer on room

right click inflation, chose insert inflated boundary


Mark til room and apply, maximum thickness=0.25m
Details

29
Numerical Methods in Aerodynamics
Lecture 3: Exercise CAD, CFD, FEM, Indoor
environmental

Create preview group

Right click preview, insert preview group.


mark the new preview group, mark three sides including the inlet
and outlet sides and apply
Right click on the preview group and generate the surface mesh
Finally, generate the volume mesh, save and return to project tab

30
Numerical Methods in Aerodynamics
Lecture 3: Exercise CAD, CFD, FEM, Indoor
environmental

Start CFX-Pre

Create CFD-simulation with mesh

31
Numerical Methods in Aerodynamics
Lecture 3: Exercise CAD, CFD, FEM, Indoor
environmental
Create Domain
Modify Set the following to this value
General options Basic Settings>location Assembly
Fluid list Air at 25 C
Domain models>pressure>Reference 1 [atm]
Domain models>Buoyancy>option Buoyant
Domain models>Buoyancy>Gravity x Dim 0
Domain models>Buoyancy>Gravity y Dim 0
Domain models>Buoyancy>Gravity z Dim expression>-g
Domain models>Buoyancy>Buoy.Ref.Temp 298 [K]
Fluid Models Heat Transfer Model>Option Thermal Energy
Thermal Radiation Model>option Monte Carlo

32
Numerical Methods in Aerodynamics
Lecture 3: Exercise CAD, CFD, FEM, Indoor
environmental

Create new boundary condition

Create a new boundary condition named outlet


Modify Set the following to this value
Basic settings Boundary type Opening
Location Outlet
Boundary details Mass and Momentum>option Opening pres. and dirn. (0 Pa)
Flow direction>option Normal to boundary condition
Heat transfer>option Opening temperature
Heat transfer>Opening temperature 15[C]

Create a new boundary condition named roomdefault

Modify Set the following to this value


Basic settings Boundary type wall
Location room
Boundary details Wall influence on flow>option free slip

33
Numerical Methods in Aerodynamics
Lecture 3: Exercise CAD, CFD, FEM, Indoor
environmental

Create expressions for the inlet

Click the expressions tab, create new expressions name MassFlow


In definition type: 1.185[kg/m^3]*0.06[m^3/s]
Apply.
Create 3 more with the below indicated name and values

34
Numerical Methods in Aerodynamics
Lecture 3: Exercise CAD, CFD, FEM, Indoor
environmental

Create a new boundary condition named inlet


Modify Set the following to this value
Basic settings Boundary type inlet
Location inlet
Boundary details Mass and Momentum>option Mass flow rate
Mass and Momentum>mass flow rate MassFlow
Flow direction>option Cartesian components
Flow direction>X component XCompInlet
Flow direction>Y component 0
Flow direction>Z component ZCompInlet
Heat transfer>option Static temperature
Heat transfer>Static temperature TIn

Now the created expressions are linked to the boundary and


changes should be made in the expressions if needed.
You can see the inlet vectors by choosing the plot options and check
the boundary vectors

35
Numerical Methods in Aerodynamics
Lecture 3: Exercise CAD, CFD, FEM, Indoor
environmental

Initial conditions

Initial values for the solver

36
Numerical Methods in Aerodynamics
Lecture 3: Exercise CAD, CFD, FEM, Indoor
environmental

Define the solver criteria

Criteria for the solver to finish and


the numerical schemes can be set
Max 50 iterations will not converge.
But we don't have time to make a
realistic solution.

37
Numerical Methods in Aerodynamics
Lecture 3: Exercise CAD, CFD, FEM, Indoor
environmental

Write the solver file and start the solution

The solution of the problem can be started

38
Numerical Methods in Aerodynamics
Lecture 3: Exercise CAD, CFD, FEM, Indoor
environmental

Plotting results

Click location, Insert 3 different planes


plane1: xz-plane y=1.5, plane2: xz-plane y=2.5, plane3: yz-plane x=4
Create contour of temperature
Create streamlines: start from inlet
color>mode: variable
variable: temperature
Get familiar with the utility

39
Numerical Methods in Aerodynamics
Lecture 3: Exercise CAD, CFD, FEM, Indoor
environmental

Modify the problem, Open CFX-Pre

Increase the mass flow to 0.3 m^3/s and create a new simulation

40
Numerical Methods in Aerodynamics
Lecture 3: Exercise CAD, CFD, FEM, Indoor
environmental

Open result in CFX-Post

What is the effect of increasing the mass flow?

41
Numerical Methods in Aerodynamics
Lecture 3: Exercise CAD, CFD, FEM, Indoor
environmental

Modify the problem, Open CFX-Pre

Change the domain to non Buoyant

42
Numerical Methods in Aerodynamics
Lecture 3: Exercise CAD, CFD, FEM, Indoor
environmental

Open result in CFX-Post

What is the effect of Buoyant flow?

43
Numerical Methods in Aerodynamics
Lecture 3: Exercise CAD, CFD, FEM, Indoor
environmental

Thank you for your attention

44

Vous aimerez peut-être aussi