In order to familiarize myself with ELMER, I would like determine the velocity field, the pressure field and the central temperature as a function of the time of a small metallic sphere cooling in a large box filled with air. The metallic sphere of radius R=30cm is made of aluminum (initial temperature : Ti = 400 K) is enclosed in a large cubic box (L=1m) filled with air (initial temperature : T0=300K). The box is supposed thermally isolated (q=0 at the six edges). The sphere is placed at the center of the box (see the attachement) and I need to take into account the natural convection between the sphere and air.
I would like to visualize the convection effects in air like in this nice simulation https://www.youtube.com/watch?v=Zr8WbV8F_5g.
This is my case.sif. The heat Transfer equation is used for the sphere and Navier-Stokes is used for the cube filled with air...Unfortunately, the solution obtained is not consistent ! Also, the examples given by Elmer don't help me...In this system, how to couple the Heat Transfer and Navier-Stokes equation to solve my problem ? By advance, thank you for your help !
Code: Select all
Header
CHECK KEYWORDS Warn
Mesh DB "." "."
Include Path ""
Results Directory ""
End
Simulation
Max Output Level = 5
Coordinate System = Cartesian
Coordinate Mapping(3) = 1 2 3
Simulation Type = Transient
Steady State Max Iterations = 1
Output Intervals = 1
Timestepping Method = BDF
BDF Order = 1
Timestep intervals = 320
Timestep Sizes = 1
Solver Input File = case.sif
Post File = case.vtu
Coordinate Scaling = Real 0.001
End
Constants
Gravity(4) = 0 -1 0 9.82
Stefan Boltzmann = 5.67e-08
Permittivity of Vacuum = 8.8542e-12
Boltzmann Constant = 1.3807e-23
Unit Charge = 1.602e-19
End
Body 1
Target Bodies(1) = 1
Name = "Body 1"
Equation = 2
Material = 1
Initial condition = 1
End
Body 2
Target Bodies(1) = 2
Name = "Body 2"
Equation = 1
Material = 2
Body Force = 1
Initial condition = 2
End
Solver 1
Equation = Heat Equation
Procedure = "HeatSolve" "HeatSolver"
Variable = Temperature
Exec Solver = Always
Stabilize = True
Bubbles = False
Lumped Mass Matrix = False
Optimize Bandwidth = True
Steady State Convergence Tolerance = 1.0e-5
Nonlinear System Convergence Tolerance = 1.0e-7
Nonlinear System Max Iterations = 20
Nonlinear System Newton After Iterations = 3
Nonlinear System Newton After Tolerance = 1.0e-3
Nonlinear System Relaxation Factor = 1
Linear System Solver = Iterative
Linear System Iterative Method = BiCGStab
Linear System Max Iterations = 500
Linear System Convergence Tolerance = 1.0e-10
BiCGstabl polynomial degree = 2
Linear System Preconditioning = Diagonal
Linear System ILUT Tolerance = 1.0e-3
Linear System Abort Not Converged = False
Linear System Residual Output = 1
Linear System Precondition Recompute = 1
End
Solver 2
Equation = Navier-Stokes
Procedure = "FlowSolve" "FlowSolver"
Variable = Flow Solution[Velocity:3 Pressure:1]
Exec Solver = Always
Stabilize = True
Bubbles = False
Lumped Mass Matrix = False
Optimize Bandwidth = True
Steady State Convergence Tolerance = 1.0e-5
Nonlinear System Convergence Tolerance = 1.0e-7
Nonlinear System Max Iterations = 20
Nonlinear System Newton After Iterations = 3
Nonlinear System Newton After Tolerance = 1.0e-3
Nonlinear System Relaxation Factor = 1
Linear System Solver = Iterative
Linear System Iterative Method = BiCGStab
Linear System Max Iterations = 500
Linear System Convergence Tolerance = 1.0e-10
BiCGstabl polynomial degree = 2
Linear System Preconditioning = Diagonal
Linear System ILUT Tolerance = 1.0e-3
Linear System Abort Not Converged = False
Linear System Residual Output = 1
Linear System Precondition Recompute = 1
End
Equation 1
Name = "Heat and Flow"
NS Convect = False
Active Solvers(2) = 1 2
End
Equation 2
Name = "Just Heat"
Active Solvers(1) = 1
End
Material 1
Name = "Aluminium (generic)"
Heat Conductivity = 237.0
Youngs modulus = 70.0e9
Mesh Poisson ratio = 0.35
Heat Capacity = 897.0
Density = 2700.0
Poisson ratio = 0.35
Sound speed = 5000.0
Heat expansion Coefficient = 23.1e-6
End
Material 2
Name = "Air (room temperature)"
Heat Conductivity = 0.0257
Heat Capacity = 1005.0
Density = 1.205
Relative Permittivity = 1.00059
Viscosity = 1.983e-5
Sound speed = 343.0
Heat expansion Coefficient = 3.43e-3
End
Body Force 1
Name = "Gravity"
Flow Bodyforce 2 = -9.81
End
Initial Condition 1
Name = "InitialTemperatureMetal"
Temperature = 350
End
Initial Condition 2
Name = "InitialTemperatureAir"
Temperature = 300
End
Boundary Condition 1
Target Boundaries(6) = 2 3 4 5 6 7
Name = "ThermalIsolation"
Heat Flux = 0
End
Boundary Condition 2
Target Boundaries(1) = 1
Name = "NoSlip"
Noslip wall BC = True
End