Boundary Conditions: Last Updated on 24-Feb-2024
The boundary conditions of any problem is used to define the upper and lower limits of the field variables (albeit in absence of any source or sink). These are the operating conditions which govern both the micro- and macro behaviors of these variables. A suitable choice of boundary conditions is as good as a good test set-up! Intuitively, a boundary condition implies that "it is known what happens" on a particular boundary.
Table of Contents: POROUS Boundary Conditions | Interpolation of Results | Wall Boundary Conditions for DPM and Radiation | Heat Exchanger Modeling | Multiphase Flows | License Manager: LMTOOLS | Volumetric Heat Sources | Periodic Boundary Conditions | Unit Conversion | Rotating Domains | Text User Interface (TUI) in FLUENT | Checklist for Inputs of Boundary Conditions | Symmetry Boundary Conditions | Centre of 3 points | Unit Vector between 2 Points | Porous Loss Coefficient Calculator | Binary Diffusion Coefficients
For flow and thermal simulation jobs, consultancy, training, automation and longer duration projects, reach me at fb@cfdyna.com. Our bill rate is INR 1,200/hour (INR 9,600/day) with minimum billing of 1 day. All simulations shall be carried out using Open-source Tools including documentations.
There are different (combination) of boundary conditions. For example, in a structural simulation, the number of boundary conditions can be varied to ensure the force- and moment balance of the entire system. This can be achieved by applying boundary condition at just one node or at 6 different nodes! Similarly, in any fluid problem, there must be an entry and an exit for the fluid (as an exception buoyancy-driven flow can be omitted for the time being). This most basic condition is termed as "Inlet" and "Outlet" boundary conditions in CFD parlance, though the choice of "field variables" such as velocity, pressure, temperature, mass flow rate, may vary as per problem set-up.
In any practical application of CFD simulations, the computational domain may comprise of many cells zones (fluid and solid zones) and boundary zones (walls, inlets and outlets). The engineer responsible for pre-processing may not be the one who creates solver file and post-processes the results. The reviewer(s) of the mesh and simulation set-up will certainly be not the engineer who created them. In order to convey the domain information seamlessly, a naming convention should be adopted, it can be a generic system applicable for large number of projects or a specific system for particular simulation set-up. An example is outlined below with following default setting: Newtonian, stationary, adiabatic, smooth boundaries or zones can be named arbitrarily though it is recommended to chose names and identifiers meaningfully. Note that some programs assigns appropriate boundary conditions based on the keywords present in the zone names such as Inlet, Outlet, Periodic, Interface, Hub, Shroud, Blade, Wall...
References - [1]: "Fluid Mechanics, Fourth Edition, Frank M. White", [2]: "HEAT AND MASS TRANSFER by YUNUS A. ÇENGEL from University of Nevada and AFSHIN J. GHAJAR from Oklahoma State University", [3]: "Handbook of Hydraulic Resistance by I. E. Idelchik", [4]: "Chemical and Process Thermodynamics by B. G. Kyle", [5]A Heat Transfer Textbook, Fifth Edition by John H. Lienhard IV and John H. Lienhard V
Conversion Factors as per Reference [1] - Mass and Volume: 1 slug ≡ lbf.s2/ft = 32.174 lbm = 14.594 kg, 1 lbm = 0.4536 kg, 1 U.S. gal = 0.0037854 m3, 1 U.S. fluid ounce = 2.9574E-5 m3, 1 lbm/ft3 = 16.0185 kg/m3, Pressure and Viscosity: 1 lbf/ft2 = 47.88 Pa, 1 poise = 1 g/cm.s = 0.1 Pa.s, 1 slug/ft-s = 47.88 Pa.s, Force and Energy: 1 lbf = 0.4536 [kg]*9.80665[m/s2] = 4.4483 [N], 1 BTU = 252 cal = 1055.056 J, 1 cal = 4.1868 J
Other units: Specific Heat: 1 Btu/lb-°R ≡ 1 Btu/lb-°F= 4186.8 J/kg-K, Thermal Conductivity: 1 Btu/h-ft-°R = 1.7307 W/m-K Derived units: 1 BTUH = 0.29307 W, 1 gal/min or GPM = 0.06309 L/s, 1 CFM or ft3/minute = 4.72E-4 m3/s = 0.472 L/s Power: 1 ft-lb/minute = 2.2597E-2 [W]. 1 BTU/hr = 0.29307 [W], 1 BTU/hr/in3 = 0.29307[W]/[0.0254 m]3 = 17884.3 W/m3. Conversion method: 1 (BTU/h)/in/R = 0.29307 [W] / 0.0254 [m] / (5/9) [K]= 20.769 W/m-K -replace each unit on the left with equivalent value in other unit on the right taking care of numerator and denominator.
Validity of Continuum: It is assumed that the underlying assumption of continuum is valid for fluids. The assumptions of continuum breaks down at very low pressures and molecular dynamics takes over. Thus, application of CFD simulations to fluids under vacuum conditions should be taken after calculating Mean Free Path length which is calculate as λ = 1/[π√2] x 1/[d2NA] x R.T/p where d is the diameter [m] of the gas molecule, NA is the Avogadro number, R is the specific gas constant [J/kg-K], T is temperature of gas in [K] and p is absolute pressure in [Pa]. A dimensionless parameter Knudsen number, Kn = λ / L, where λ / L, where λ is the mean free path and L is the characteristic length describes the degree of departure from continuum. Usually when Kn ≥ 0.01, the concept of continuum does not hold good. Beyond this critical range of Knudsen number, the flows are known as (1) slip flow if 0.01 < Kn ≤ 0.1, (2) transition flow if 0.1 ≤ Kn < 10 and (3) free-molecule flow when Kn ≥ 10.
The diameter of an oxygen molecule is 292 picometers or 2.92 angstroms or 2.92 x 10-10 [m] and that of nitrogen is 300 picometers = 3.00 x 10-10 [m]. The molecular diameter of CO2 is larger than that of O2, with a value of 3.34 x 10-10 [m]. For nitrogen molecules at 10,000 [Pa] and 0 [°C], the mean free path is approx. 3.37E-05 [m], the value would be 0.0034 [m] at 100 [Pa]. Thus, for a device with characteristics length 0.10 [m] or 100 [mm], Kn would be 0.0034/0.10 = 0.034
The definition of material properties needs to be aligned with the expected variation in fluid properties. For example, if the variation in pressure and temperature is so high that is can cause variation in density of fluid ≥ 10% of free-stream conditions, the fluid should not be modelled as constant density. Same is the case for thermal conductivity and viscosity. The decision to use the constant value of thermal conductivity or temperature-dependent value should be based on expected temperature of the solid walls.
In some applications such as fans, there are significant reduction in pressure values (such as trailing edge and flow separation regions) as well as significant increase in pressure values (near leading edge). Hence, flow simulations dealing with gas and turbo-machine should use ideal gas law as final settings. Constant density can be used initially to get a convergence. The option of incompressible-ideal-gas available in ANSYS FLUENT makes the density a function of temperature only. This option also does not take into account change in density due to variation of pressure near the blade tip and separation regions. The ideal gas equation functions well when intermolecular attractions between gas molecules are negligible and volume occupied by the gas molecules is small as compared to the volume of the container. These criteria are satisfied under conditions of moderate pressures and high temperature only.
To get a better accuracy, temperature dependent properties should be used. Some correlations available for gases are tabulated below. The Sutherland coefficients for some common gases are as follows. μ = μ0 * (273+C)/(T+C)*(T/273)1.5 where C is Sutherland coefficient in [K], T is fluid temperature in [K] and μ is viscosity in [Pa.s]. Reference [3].
Fluid | μ0 [Pa.s] | C [K] |
Air | 17.12 | 111 |
N2 | 16.60 | 104 |
O2 | 19.20 | 125 |
CO2 | 13.80 | 254 |
H2O-g | 8.93 | 961 |
H2 | 8.40 | 71 |
The variation in dynamic viscosity of air in the temperature range 0 to 100 [°C] is of the order of 25% which is a significant amount if the wall friction contributes more to the pressure drop in the system. Similarly, a 5% reduction in local pressure shall cause 5% reduction in density and hence the velocity or volume flow rate has to increase by 5% to ensure the mass balance.
Specific Heat Capacity - Reference [4]: Cp [kJ/kmol-K] = a + b.T + c.T2 + d.T3 where T is in [K]. For air, the coefficients are: a = 28.11 [kJ/kmol-K], b = 1.967E-03 [kJ/kmol-K2], c = 4.802E-06 [kJ/kmol-K3], d = -1.966E-09 [kJ/kmol-K4]. Taking molecular weight of air to be 28.96 [kg/kmol], the coefficients to calculate Cp in [J/kg-K] are: a = 970.65 [J/kg-K], b = 0.06792 [J/kg-K2], c = 1658E-04 [J/kg-K3], d = -6.788E-08 [J/kg-K4]. As you can notice, there is < 1% variation in specific heat capacity of air over the range of 100 [K] and hence it can be assumed a constant value in calculations and simulations. Also note that for steady state simulations, the specific heat capacity and even density is not needed for solids. This can be inferred from the conduction equation for steady state conditions where only thermal conductivity appears as coefficient.
Thermal Conductivity - Reference [4] - for air: k [W/m-K] = a + b.T + c.T2 + d.T3 where T is in [K]. a = -3.933E-04 [W/m-K], b = 1.018E-04 [W/m-K2], c = -4.857E-08 [W/m-K3], d = 1.521E-11 [W/m-K4]. There is 25% increase in thermal conductivity of air in the temperature range 15 ~ 100 [°C] and hence a constant thermal conductivity may yield lower heat transfer rate. For air at 50 [°C], k = 0.02735 [W/m-K] and at 100 [°C], k = 0.03095 [W/m-K]. In STAR: Field function for temperature dependent thermal conductivity: thCondAir = 1.52e-11 * pow($Temperature,3) - 4.86e-8 * pow($Temperature,2) + 1.02e-4 * $Temperature - 3.93e-4 where T is in [K]. As per the formulat, thCondAir = 0.0262 [W/m-K] at T = 300 [K]. Reference [2] - Soft Rubber: 0.13 [W/m-K], Glass Fiber: 0.043 [W/m-K], Urethane Rigid Foam: 0.026 [W/m-K]
Water: Reference [1] - Suggested curve fits for water in the range 0 ≤ T ≤ 100 [°C]: ρ (kg/m3) ≈ 1000 - 0.0178 ( T[°C] - 4[°C] )1.7 ± 0.2%. Viscosity: ln(μ/μ0) ≈ [-1.704 - 5.306.z + 7.003.z2] where z = 273 [K]/T [K] and μ0 = 0 1.788 E-3 [kg/(m.s)] ≡ [Pa.s]. Reference [2] - Thermal conductivity of Olive and Peanut Oil: 0.168 [W/m-K], Rubber Natural: 0.28 [W/m-K], Rubber-vulcanized-soft: 0.13 [W/m-K], Rubber-vulcanized-hard: 0.16 [W/m-K]
Emissivities
Reference [2]: "HEAT AND MASS TRANSFER by YUNUS A. ÇENGEL from University of Nevada and AFSHIN J. GHAJAR from Oklahoma State University"
Material | Tempearature [K] | Emissivity |
Aluminium | ||
Polished | 300-900 | 0.04-0.06 |
Commercial sheet | 400 | 0.09 |
Heavily oxidized | 400-800 | 0.20-0.33 |
Anodized | 300 | 0.8 |
Steel | ||
Polished sheet | 300–500 | 0.08-0.14 |
Commercial sheet | 500-1200 | 0.20-0.32 |
Heavily oxidized | 300 | 0.80 |
Stainless Steel | ||
Polished sheet | 300–1000 | 0.17-0.30 |
Lightly oxidized | 600-1000 | 0.30-0.40 |
Heavily oxidized | 600-1000 | 0.70-0.80 |
Non-metals | ||
Teflon | 300–500 | 0.85-0.92 |
Rubber soft | 300–500 | 0.86 |
Paints black | 300 | 0.88 |
Wood | 300 | 0.90 |
Some other fluids widely used in industry: Engine Coolant (Ethylene Glycol + Water Mixture), Transmission Oil (Nytex 810): density of 902 kg/m3 and dynamic viscosity of 5.77E-2 Pa.s
Material Properties of Moist Air: Water vapours are integral part of ambient air typically denoted as %RH (Relative Humidity). The presence of water vapour significantly changes specific heat capacity specially at high relative humidity values. The content of moisture in air is also denoted by Specific Humidity which is a ratio of the amount of water vapor in the air to the amount of dry air in a given volume. To calculate properties of the moist air, refer to this page.
Non-Newtonian Fluids: Most of the fluids behave such that shear stress is linear function of strain rate with zero initial threshold value of shear stress. However, there are some material where shear stress is non-linear function of strain rate with non-zero initial threshold value of shear stress (yield point) before which flow cannot start. Various type of such material also known as Bingham plastic and Herschel-Bulkley are described below.
For gases, where behaviour deviates from Ideal Gas Law, they are represented by what is called Real Gas Properties (RGP) tables. For example, for hydrogen at high pressure, refer the article "Derivation and validation of a reference data-based real gas model for hydrogen" by Sebastian Weiss et. al. Sample image about variation of density of hydrogen at high pressures are shown below. For a medium accuracy to estimate pressure and density, van der Waals equation for real gases: (P + an2 / V2) . (V-nb) = nRT, where a and b are the van der Waals constants. R: universal gas constant, T: temperature, P: pressure, V: volume and n: number of moles in volume V. a is typically available in unit [bar.L2/mole2] and b in unit [L/mole]. The value pair [a, b] for hydrogen, nitrogen and carbon-dioxide are [0.2453, 0.02651], [1.370, 0.0387] and [3.658, 0.04286] respectively.This is the 1st member of the pair of boundary conditions which are must for any CFD calculations in a forced convection situation. Of course a natural convection case does not required any inlet or outlet. The primary consideration of an inlet B.C. is to select between the Velocity, Mass Flow Rate, Static Pressure and Total Pressure based on the actual information available about the operating conditions of the system and robustness of the solver, (the matrix inversion) algorithm which keeps running till solution is achieved. While tempting to use velocity inlet B.C. care needs to be taken to account for change in cross-sectional area when an arc is represented by a set of connected lines.
The sign convention for mass flow is such that a positive value represents flow into the domain and a negative value represents flow out of the domain. Sometimes an 'outlet' can be specified as inlet with negative velocity to represent some specified mass flow rate.Set Mass Flow Inlet boundary conditions using TUI: /define/b-c/mass-flow-inlet zNAME y y n 0.75 n 50.0 n 10000 n y n n y 2 5
zNAME | Name of the zone |
y | Reference Frame: Absolute? |
y | Mass Flow Specification Method: Mass Flow Rate? |
n | Use Profile for Mass Flow Rate? |
0.75 | Mass Flow Rate in [kg/s] |
n | Use Profile for Total Temperature? |
50 | Total Temperature [in unit selected i.e. K or °C] |
n | Use profile for Supersonic / Initial Gauge Pressure? |
10000 | Supersonic Initial Gauge Pressure (in [Pa]) |
n | Direction Specification Method: Direction Vector? |
y | Direction Specification Method: Normal to Boundary? |
n | Turbulence Specification Method: K and Epsilon? |
n | Turbulence Specification Method: Intensity and Length Scale? |
n | Turbulence Specification Method: Intensity and Viscosity Ratio? |
y | Use profile for reference frame Z-component of rotation axis? |
2 | Turbulent Intensity [%] |
5 | Turbulent Viscosity Ratio |
Some other considerations during application of Inlet B.C. is "Fully Developed Flow" Vs "Developing Flow". For example, if you are a beginner learning tips and trick of CFD by trying to simulate HTC and correlating it with Dittus-Boelter equation, make sure that the flow regime is fully developed. Sometimes, the inlet of the problem set-up is moved upstream the actual location to get the flow a bit developed. Specification of turbulence parameters (turbulent kinetic energy, TKE and turbulent eddy dissipation, TED) should be based on actual measurement of as far as possible. When there are any source of momentum such as centrifugal fan in the computation domain or sharp edges, the overall result gets affected by the turbulence set at the inlet. Followings are the methods to specify turbulence:
Recirculation Inlet: in many cases there is an internal source of momentum (such as fan) which circulates the air inside a closed domain or a source of momentum as well as heat sink such as a chiller unit. Such flow systems do not have an inlet or outlet in the sense defined earlier. Such source of momentum can be modeled as fan boundary condition if its performance characteristics is known. However, in case a fixed flow boundary type has to be applied, ANSYS FLUENT has option to use Recirculation Inlet activated using TUI (rpsetvar 'icepak? #t) (models-changed) whereas Siemens STAR-CCM+ has option to use Interface of type "Fully Developed Flow". This is a direct way of implementing recirculation conditions though Expressions and UDF can also be used to implement this condition. In recent versions say V2020 onwards, the provision of Named Expressions have eliminated the need of some of the basic UDFs.
Boundary source: Inlet can also have a boundary source define to model heat sources such as solar radiation.
When radiation is active, the emissivity at each inlet and outlet boundary can be defined while specifying boundary conditions in the associated inlet or outlet boundary dialog box. An appropriate value for Internal Emissivity has to be entered. ANSYS FLUENT includes an option to take into account the influence of the temperature of the gas and the walls beyond the inlet and outlet boundaries, and specify different temperatures for radiation and convection at inlets and outlets. This is useful when the temperature outside the inlet or outlet differs considerably from the temperature in the enclosure. In the flow inlet or outlet dialog box, select Specified External Temperature in the External Black Body Temperature Method drop-down list, and then enter the value of the radiation boundary temperature as the Black Body Temperature.
It is highly likely you may observe temperatures in your model that are lower than expected. Ensure that the external radiant conditions give good account of the surroundings. Alternatively, you can turn off radiative heat loss through inlets and outlets by specifying "Internal Emmisivity" = 0 which otherwise may be effectively radiating to a temperature of 0 [K].
Walls are required to store a liquid or contain the expansion (mixing) of gases. Since all the fluid flow has to be contained inside walls or at least in a channel, wall B.C. is natural extension into the numerical simulation process. Wall are not only the source of 'turbulence' that gets generated in the flow domain, its surface characteristics becomes important if certain assumptions gets violated.
In any CFD software it is not necessary to create 'named' 2D regions for the walls. This is because any faces of a 3D region which do not explicitly have a 2D region assigned to them, are automatically assigned to the default B.C. 'wall' having 'Adiabatic' condition. In case one wishes to create walls such as "Isothermal / Rotating / Heat Flux Wall", it must be created during the pre-processing.
Typically, there is no flow across the wall boundary conditions. However, in case of permeable or porous walls, flow does occur across the wall. Similarly, in case of suction or blowing (for example transpiration cooling in Gas Turbine Blades), the mass flow rate specifications are required on the wall boundary conditions.
In a stationary domain with rotating wall is valid only if wall motion is entirely tangential. If there is any normal component, rotating wall shall push the adjacent fluid element. Hence, it must be modelled as rotating fluid with stationary walls relative to rotating domain.
The setting for wall boundary conditions in ANSYS FLUENT is shown below: Typical classification of wall B.C. are:Surface Pair | Thermal Conductance [W/m2K] |
Copper - Copper | 10,000 ~ 25,000 |
Aluminium - Aluminium | 2,200 ~ 12,000 |
Ceramic - Metals | 1,500 ~ 8,500 |
Stainless steel - Stainless steel | 2,000 ~ 3,7000 |
Ceramic - Ceramic | 500 ~ 3,000 |
FLUENT creates a shadow wall by adding suffix ':external' to the walls on which shell conduction is switched ON. Shell conduction model uses virtual nodes or virtual cells and hence there are no real physical locations of these cells. Arbitrarily large thickness for the shell conduction model can be specified. The sides of the shell zone need boundary conditions as well. The sides will be adiabatic if they are connected to face zones having a boundary condition type other than a 'wall'. If the attached wall has shell conduction, the common sides at the junction will be coupled.
TUI Commands for S2S Radiation
View Factor Parameters:
Resolution specifies the resolution of the hemicube. The default value is set to 10. Increase the value to reduce aliasing effects that can lead to overestimated or underestimated view factors, available for Ray Tracing method only. Subdivisions specifies the number of subfaces into which each face is divided. The default value is set to 10. This parameter is only available for the hemicube method. Normalized Separation Distance specifies the ratio of the minimum face separation to the effective diameter of the face.
ANSYS FLUENT: While the hemicube method projects radiating surfaces onto a hemicube, the ray tracing method instead traces rays through the centers of every hemicube face to determine which surfaces are visible through that face. Also, the ray tracing method is OpenMP parallelized and will therefore use all available processors when performing the ray tracing calculations. As a result, the calculation time is reduced for large, complex geometries that have obstructions between the radiating surfaces (such as automotive underhood simulations). Note that the ray tracing method does not subdivide the faces (as can be done when using the hemicube method by setting the Subdivisions or Normalized Separation Distance parameters), and so the view factors may be less accurate than those calculated using the hemicube method for surfaces that have a normalized separation distance less than 5.ANSYS FLUENT: It is recommended to use the hemicube method for large, complex models with few obstructing surfaces between the radiating surfaces, because it is faster than the adaptive method or ray tracing method for these types of models.
STAR-CCM+: In the view factor calculation step, deterministic ray tracing is applied to compute the factors. Rays are traced into the hemisphere above each patch using a fixed distribution of directions over this hemisphere. By default, a distribution of 1024 rays per patch is used. The number of rays per patch limits the view factor count. Therefore, with reciprocity, maximum of (2 x N) view factors per patch is generated, where N is the number of rays per patch. Thus, 1 million patches with 1024 rays/patch would produce a maximum of about 2.048 billion view factors. STAR-CCM+ provides the flexibility to use a patch resolution that is coarser than the boundary face resolution. Patches can be formed by aggregating the boundary faces from the underlying mesh. For high-resolution meshes, generally 1 patch for every 10 or so faces is used from the underlying mesh.Reference: "HEAT AND MASS TRANSFER by YUNUS A. ÇENGEL from University of Nevada and AFSHIN J. GHAJAR from Oklahoma State University"
Natural Convection (Buoyancy-driven Flows)
Boussinesq approximation: ρEFF = 1 - β(TWALL - TREF). Here: ρEFF= effective driving density β = coefficient of thermal expanison (equal to 1/T for ideal gas, T in [K]). Boussinesq approximation is only valid for β × (TWALL - TREF) << 1.0 say β × (TWALL - TREF) < 0.10. In other words, the temperature difference should be < 30 [K] for reference temperature of 300 [K].When the Boussinesq approximation is not used, in buoyancy-driven flows, the body force [Fz = (ρ - ρOP)×g] acts in the momentum equation. Here, ρOP is operating density, default method to compute the operating density in ANSYS FLUENT is by averaging over all cells.
As per FLUENT User's Manual: "The boundary pressures that you input at pressure inlet and outlet boundaries are the redefined pressures as given by equation above. In general you should enter equal pressures, p'HS at the inlet and exit boundaries of your ANSYS FLUENT model if there are no externally-imposed pressure gradients. For example, if you are solving a natural-convection problem with a pressure boundary, it is important to understand that the pressure you are specifying is p'HS. Therefore, you should explicitly specify the operating density rather than use the computed average. The specified value should, however, be representative of the average value. In some cases the specification of an operating density will improve convergence behavior, rather than the actual results. For such cases use the approximate bulk density value as the operating density and be sure that the value you choose is appropriate for the characteristic temperature in the domain."
Strictly speaking, this is not a boundary condition. That is, any numerical simulation can proceed without it. However, this is a great tool to reduce the computational effort and resource if the flow can be envisaged to be symmetrical about a plane or pair of planes. It must be noted that there is a subtle difference between geometrical symmetry and periodicity. Periodic interfaces are treated as if one side of the interface has been translated or rotated to align with the second side of the interface. The periodic type determines the type of transformation (translational or rotational) used to map one side of the interface to the other.
Strictly speaking, this also is not a boundary condition. That is, any numerical simulation can proceed without it. However, this is a great tool to reduce the computational effort and resource if the flow can be envisaged to be symmetrical about a plane or pair of planes. It must be noted that the geometrical symmetry does not guarantee symmetry of the flow. For example, side wind condition for external aerodynamics calculation requires to run the full geometry. Similarly, cases where micro-structure of flow eddies are being captured such "Large Eddy Simulation" or "DES – Detached Eddy Simulation", symmetry cannot be used owing to inherent 3D nature of the eddies.
Most of the pre-processors do not have mirror option to duplicate or copy a mesh around symmetry plane. However, note that mirror operation is also a scale (reflection) operation around the mirror plane. f(x) = -x3 is the reflection of the f(x) = x3 about the x-axis. Similarly, f(-x) reflects f(x) over the y-axis. In other words, reflection in the x axis maps y to -y, while reflection in the y axis maps x to -x. Reflection in the x axis transforms the vector (x,y) to (x, -y). In FLUENT Mesher, the scale operation on cell zones can be used to get full geometry from a symmetry half geometry.
Reflection matrices: about XY, YZ and ZX planes respectively. If the value 1 or -1 in rows 1 to 3 and columns 1 to 3 are changed to any other value, it becomes an scaling operation.| 1 0 0 0| |-1 0 0 0| | 1 0 0 0| | 0 1 0 0| | 0 1 0 0| | 0 -1 0 0| | 0 0 -1 0| | 0 0 1 0| | 0 0 1 0| | 0 0 0 1| | 0 0 0 1| | 0 0 0 1|
The heat generation in solids such as MOSFET, Capacitors, Current Carrying conductors can be modeled as volumetric heat sources [W/m3] calculated as ratio of "Total Heat Generation Rate" [W] / "Volume of the Solid" [m3]. STAR-CCM+ accepts 'Total' heat generation rate as input (specified directly to the volume) whereas in ANSYS FLUENT as on V2023 R2, the heat source needs to be applied as volumetric value. Sometimes a spreadsheet calculation needs to be performed to find out volumetric heat sources when number of volumes are too many. However, the process can be simplied using named expressions as explained in following section such as hs_mosfet = 5.0 [W] / Volume(['mosfet']).
Sometimes volumetric heat sources can be simplified as surface heat flux though it is recommended to use this with appropriate wall thickness with shell conduction. When surface heat flux is used with zero wall thickness, the uniform value of heat flux may lead to incorrect temperature when the variation of heat transfer coefficient is high. The use to shell conduction option helps conduct the heat within the solid as it would have occurred when 3D volume zone were modeled.
The transient cooling of solids can be simplified to a steady state problem with 'virtual' heat generation rate. The formula to convert thermal inertia is: q''' = M x Cp x ΔT / tCOOL_DOWN where M is mass of the solid/liquid, Cp is the specified heat capacity and ΔT is the assumed/expected drop in temperature over a period tCOOL_DOWN. For warm-up simulation, the heat source can be specified as negative value. Note that the 3D thermal simulation using this approach may yield temperature of solid higher than assumed/expected ΔT above. This is an indication that the cooling mechanism is not sufficient either due to "lesser convection" or "lower temperature difference" between the cooling medium and the solid being cooled. And hence required drop in temperature of the solid is not possible in assumed tCOOL_DOWN. A good sanity check would be to estimate required heat transfer coefficent (HTC) value as per formula: h = [q''' x VSOLID/ASOLID] / (TMEAN - TCOOLING-FLUID) where VSOLID = volume of the solid, ASOLID = wetted surface area, TMEAN is mean temperature of the solid = (T0 - ΔT/2), T0 is the initial temperaure of the solid.
Many times, material properties and volumetric heat source are function of pressure and temperature. They might be available in tabular format and a curve fit may not be possible to get a good fit. A user code in STAR-CCM+ is available at "community.sw.siemens.com/.../User-Coding-for-2-dimensional-T-p-Table-interpolation-Linux-OS" which can be adapted for ANSYS FLUENT as well.The newer versions of program FLUENT and STAR-CCM+ have option to use named expression and field functions for customized boundary conditions. These expressions can be used to define conditional cell zone source terms, models and solver settings which eliminate need to write UDF (User Defined Functions). Name of the Expressions are Case Sensitive. For example, following expression can be used to define inlet mass flow rate (kg/s) as function of static pressure (Pa) at outlet where mass flow rate is a parabolic function of pressure mdot [kg/s] = C0 [kg/s] + C1 [m.s] × pr + C2 [m^2 s^3 kg^-1] × pr2. Here pr = MassFlowAve(StaticPressure, ['Outlet']).
/define/named-expressions add exprName definition "1.25 [m/s]" q: the last entry 'q' is needed to bring the TUI to root position.
In case of field values: /define/named-expressions add exprName definition "MassFlowAve(StaticPressure, ['outlet-1', 'outlet-1']" q - here 'outlet-1' and 'outlet-2' are names of the zone of type outlet.
The boundary conditions can be defined in terms of named expressions: define/b-c/set velocity-inlet inlet () vmag "namedExpr" q where "namedExpr" is the name of the Named Expression with double quotes. vmag is a built-in variable which tells that velocity magnitude is being set or updated. As summarized in the sample journal file above: a zone type can be changed by "define b-c zone-type zName mass-flow-inlet" where zName is the name of the zone. Only the new type of zone (Mass Flow Inlet here) is needed irrespective of the original type of that zone. Once a boundary is set as type m-f-i, use following lines to make additional changes: "define b-c set m-f-i zName () direction-spec n y q" where 'n' is response to "Direction Specification Method: Direction Vector?" and 'y' is response to "Direction Specification Method: Normal to Boundary?".
"Fluent Expresssion Language" is an interpreted and declarative language based on Python. In ANSYS FLUENT, variables are categorized into 4 types:In FLUENT UI, a mathermatical expression can be directly used to specify boundary condition values: for example velocity at inlet can be specified as "25 [m/s]/0.0125 [m^2]". Some examples of named expressions are: arX = (Area['inlet1', 'inlet2']), solidVol = (Volume('heatSink']), Tout = MassFlowAve(StaticTemperature, ['outlet']), den = Average(Density, ['inlet_1']): Average = Area-weighted Average, Vin = 1.5 [kg/s] / den / Area(['inlet_2']), heatSrc = 5.0 [W] / Volume(['mosfet']), meanT = VolumeAve(['fluid']), r_in = sqrt(x^2 + y^2), u_in = 10.0 [m s^-1] * (1 - (r_in / 0.025 [m])**2)^(1.0/7.0)
The heat transfer rate has unit of [W/m2] or [cal/cm2]. However, there is a similar unit [kWhr] - this is measure of energy and 1 [kWhr] = 1,000 [W] x 3,600 [s] = 3,600,000 [J] = 3.6 [MJ]. kWhr is usually used to denote electrical power consumption while dealing with large values. In many cases such as solar radiation the energy flux is represented as [kWhr/m2/day] which will translate into average value of 1000 [W] × 3600 [s] / [24×3600] = 41.67 [W/m2]. The use of kWhr is mainly because the users are charged for energy consumption and not the rate of energy [power] consumption. Thus, a device which consumes 2 [kW] and runs for 15 hours a day will consume 30 [kWhr] = 108 [MJ].
Except shell and tube heat exchangers, for most engineering problems it is impractical and sometimes impossible to correctly model individual fins and tubes of a heat exchanger core. In cross-flow heat exchangers such as automotive radiators, air is called primary fluid (the heat sink) and water or coolant as auxiliary (secondary) fluid (the heat source). There are multiple approaches to model such heat exchangers when combined with surrounding systems and sub-systems.
The heat exchanger models were designed for 'compact' heat exchangers, implying that the primary fluid side flow is unidirectional. The auxiliary fluid is assumed to flow through a large number of parallel tubes, which can optionally double back in a serpentine pattern to create a number of passes. One can independently choose the direction of principal auxiliary fluid flow, the pass-to-pass direction and the direction of external primary fluid flow. Pressure loss is modeled as a momentum sink in the momentum equation and heat transfer is modeled as a heat source in the energy equation. One of the simplest option it to model volumetric heat source as function of frontal velocity: q''' = a.v + b.v2 where if q''' is [W], a and b have units [kg.m/s2] and [kg/s] respectively. If q''' has unit of [W/m3], a and b should have units [kg/m2/s2] and [kg/m3/s] respectively.
Lumped Model | Macro Model | Dual Cell Model | |
Accounts for the pressure loss and auxiliary fluid heat rejection | Simple-effectiveness-model | Number-of-Transfer-Units (NTU) model | Number-of-Transfer-Units (NTU) model |
Core modeled as volumetric heat source | Compute auxiliary fluid inlet temperature for a fixed heat rejection or total heat rejection for a fixed auxiliary fluid inlet temperature | NTU method for heat transfer calculations | |
- | Auxiliary flow is modeled as 1D flow | Auxiliary flow modelled on a separate mesh (other than the primary fluid mesh) |
Heat Exchangers Models in STAR-CCM+
Heat Exchangers models are used to replicate the transfer of heat between two fluid streams - hot fluid and cold fluid. Applications include air conditioner evaporators, condensers, charge air coolers, radiators, electric heaters, and electronic devices. There are two options available:Solver Behaviour | Inlet | Outlet |
Most Robust | Velocity or Mass Flow Rate | Static Pressure |
Somewhat Robust | Total Pressure | Velocity or Mass Flow Rate |
Sensitive of Guess (Initialization) | Total Pressure | Static Pressure |
Unreliable | Static Pressure | Static Pressure |
Not possible (divergence guaranteed) | Any | Total Pressure |
Solver Behaviour | Inlet | Outlet |
Most Robust | Velocity or Mass Flow Rate | Static Pressure |
Somewhat Robust | Velocity or Mass Flow Rate | Outflow or Outlet-vent |
Only for incompressible flows | Velocity Inlet | Outflow |
Not available | Any | Mass Flow Rate |
Not for compressible | Specified Velocity | Any |
A fan is considered to be infinitely thin, and the discontinuous pressure rise across it is specified as a function of the velocity through the fan. The relationship may be a constant, a polynomial - of the form a + b*x2 + ... , or piecewise-linear, or piecewise-polynomial function, or a user-defined function. In FLUENT, a zero thickness plane can be used to represent a fan. However, in CFX a volume is required to represent fan as momentum source coefficient. The general momentum source in CFX has unit of [kg/m3-s2]. The source can be linearlized for better convergence and stability which has unit of [kg/m3-s].
Sometimes, the axis of the fan or MRF domain does not pass through origin. If the geometry or mesh was created in some other units (not in meters), scaling the domain in ANSYS FLUENT may change the location of axis. That is the coordinates of a point on axis of the fan may not be same when the mesh is scaled into meter in ANSYS FLUENT. This is bacause scaling of a 3D space needs some reference point: centroid of the geometry or orgin are two ideal options. The X, Y and Z coordinates on axis of a fan can be estimate by calculating Vertex Average of all the nodes on any axi-symmetric surface of the rotating domain. However, this is not a precise method unless the distribution of nodes can be assumed to be uniform on the surface. Another option is to find out the centre of a circle passing though 3 non-collinear points.
Let (x0, y0, z0) is the centre of circle passing though 3 points (x1, y1, z1), (x2, y2, z2) and (x3, y3, z3). From equality of distance (radius): (x0 - x1)2 + (y0 - y1)2 + (z0 - z1)2 = (x0 - x2)2 + (y0 - y2)2 + (z0 - z2)2. This simplifies to following set of equations. Note that this is valid only when the points are truely 3D that is the circumcircle is not aligned with either of the axes.
2(x1-x2) x0 + 2(y1-y2) y0 + 2(z1-z2) z0 = (x12 - x22) + (y12 - y22) + (z12 - z22) ... [1]2(x2-x3) x0 + 2(y2-y3) y0 + 2(z2-z3) z0 = (x22 - x32) + (y22 - y32) + (z22 - z32) ... [2]
2(x3-x1) x0 + 2(y3-y1) y0 + 2(z3-z1) z0 = (x32 - x12) + (y32 - y12) + (z32 - z12) ... [3]a1 x0 + b1 y0 + c1 z0 = d1 ... [4]
a2 x0 + b2 y0 + c2 z0 = d2 ... [5]
a3 x0 + b3 y0 + c3 z0 = d3 ... [6]
Note that the solution of this set of equations is trivial as there are infinite number of points which can be at equal distance from the three given points. The centre we are looking for is the point which is co-planar with the 3 given points. This requires some special mathematical treatment to find the coordinates of that unique point.For 2D plane when it is aligned to one of the Cartesian planes (XY or YZ or ZX):
First point | X11: | X12: | ||
Second point | X21: | X22: | ||
Third point | X31: | X32: | ||
In the image above, the red lines should be defined as hub to respective zones and dottend lines as shrouds. Some programs have built-in capability to identify hub and shroud if the two keywords are present in boundary names. Hence, it is recommended to name a boundary zone as "shroud_upstream" and "hub_downstream" to get the hub and shroud identified automatically during post-processsing.
This is opposite to the fan boundary conditions define above and like fan is also is considered to be infinitely thin membrane, and the discontinuous pressure drop across it is specified as a function of the velocity through the fan. The relationship may be a constant, a polynomial - of the form a + b*x2 + ... , or piecewise-linear, or piecewise-polynomial function, or a user-defined function. There is no similar boundary conditions available in CFX.
Examples of porous materials: note that a material which does not allow convection of fluid (e.g. brick, soil, cotton...) may allow diffusion of the fluid (brick, cotton...) such as water. In general, most of the applications of porous domain in CFD simulations refer to convection phenomena such as flow through the radiator core and honeycomb in a catalytic converter.
All the porous media formulation take the form: Δp = -L × (A.v + B.v2) where v is the 'superficial' flow velocity and negative sign refers to the fact that pressure decreases along the flow direction. The 'superficial velocity' is calculated assuming there is no blockage of the flow. L is the thickness of the porous domain in the direction of the flow. Here, A and B are coefficients of viscous and inertial resistances.
Porosity (γ) provides information on the overall pore volume of a porous material and is defined as the ratio of the nonsolid volume (voids) to the total volume of the porous domain. The air permeability and porosity are inter-dependent, an increase in porosity (the free space) should lead to decrease in permeability (resistance to the air flow). vSUPERFICIAL = γ vREAL where vREAL is the actual velocity that can be observed or measured in the pores of the porous media. Since the measurements of velocity in such micro-channels are difficult, a superficial velocity is used which is computed the mean velocity with respect to some reference area. The image below describes a simple arrangement of porous domain in a duct.Most of the time the pressure drop across a porous domain are reported in terms of vF and not vREAL. If one assumes that mathematically there is pressure drop (momentum sink) where porous domain is present though the physical boundaries (solid space) of the porous material is not present, vREAL will become equal to vF and in that case it is (vF) known as superficial velocity.
In FLUENT and CFX, the equation used is: Δp/L = -(μ/α.v + C2.ρ/2.v2) where α is known as 'permeability' and μ is the dynamic viscosity of fluid flowing through the porous domain. Note that FLUENT takes 1/α as input for porous regions. This is a measure of flow resistance and the unit of permeability (α) is [m2]. Other unit of measurement is the darcy [1 darcy = 0.987 μm2], named after the French scientist who discovered the phenomenon. The unit of inertial loss coefficient (C2) is [m-1]. A good knowledge of soil permeability, also termed hydraulic conductivity is needed for estimating the quantity of seepage under dams and dewatering to facilitate underground construction. The degree of pore saturation with water is one of significant factors affecting the soil water permeability. The permeability coefficient has unit of [m/s] and is calculated by Q.L/A/H where Q is the leakage flow rate [m3/s], L is the length of height of porous domain [m], A is cross-section area [m2] and H is applied hydraulic head [m]. The value of soils varies from 10-4 to 10-10 [m/s]. Clay is the most porous sediment but is the least permeable which acts as an aquitard, impeding the flow of water.
Inertial loss coefficient is known as Quadratic Loss Coefficient in CFX. An alternate formulation in CFX is in terms of Linear Loss Coefficient [kg/m3/s] and Quadratic Loss Coefficients [kg/m4] which are defined as A and B respectively above or Pv and Pi below.
STAR-CCM+ uses the expression Δp/L = -(Pv.v + Pi.v2) for a porous domain. Here Pv is Viscous Loss Coefficient and has unit [kg/m3/s] and Pi is known as Inertial Loss Coefficient having unit [kg/m4]. Note that it is the coefficient of v2 which is called Inertial which is contrary to the fact that viscous pressure drop is proportional to v2.
The pressure drop is usually specified as Δp = ζ/2·ρ·v2 where ζ is 'equivalent loss coefficient' and is dimensionless. Darcy expressed the pressure gradient in the porous media as v = -[K/μ]·dP/dL where 'K' is the permeability and 'v' is the superficial velocity or the apparent velocity determined by dividing the flow rate by the cross-sectional area across which fluid is flowing. All the programs FLUENT, CFX and STAR-CCM+ uses superficial velocity.Steps to find out viscous and inertial resistances:
When pressure drop is linear function of velocity, it is known as Darcy's Law: Δp = - μ/α × v. This option is implemented explicitly in COMSOL.
Unit Vector between 2 Points: In case porous domain is not aligned to any coordinate direction, the direction of unit vector along the flow and across the flow directions can be estimated from following Javascript program. Note that empty field is considered as 0.0. There is no check if a text value is specified in the input fields and the calculator will result in an error.
First point - X1: | |
First point - Y1: | |
First point - Z1: | |
Second point - X2: | |
Second point - Y2: | |
Second point - Z2: | |
Porous Loss Coefficient Calculator
Note that the loss coefficients are assumed to be (and most of the time they are so) parabalic. Hence, only 3 sets of points are required to derive the parabolic equation. It is recommended that the first point is close to no-flow conditions, second point close to the mid-point of operation and the last point towards the highest flow rate conditions. In the table below, Pi refers to pressure drop across the porous domain at Vi. Air is assumed to be the working fluid. Sutherland law is used to find out viscosity of air at specified temperature.
Thickness of HX | TH | [mm] | |
First point | V1 | [m/s] | |
First point | P1 | [Pa] | |
Second point | V2 | [m/s] | |
Second point | P2 | [Pa] | |
Third point | V3 | [m/s] | |
Third point | P3 | [Pa] | |
Gas Temperature | Tg | [°C] | |
Gas Pressure | Pg | [kPa] | |
Example calculation: x = {0.0 1.0 2.5}, Y = {0 50 75}, m1 = 50.0, m2 = 16.67, A = -13.33, B = 63.33, C = 0.0. The parabola generated by the curve fit coefficients looks like as shown below. Note that a parabola with local maxima towards higher value of X-axis may have a negative value of A or B.
The formula to derive A, B and C are as follows:
If the porous domain is not inclined the coordiate system of the entire model, a local coordinate system needs to be created to specify viscous and inertial loss coefficients. Most pre-processors such as FLUENT and STAR-CCM+ have option to create a coordinate system based on origin and two points which can be selected graphically using left mouse button. In case it is to be specified using a direction vector such as in macros or scripts, following transformation matrix should be used.
Note that the transformation matrix is for rotation about z-axis. Thus, a vector in Laboratory Reference Frame (1.0, 0.0, 0.0) shall become (cosθ, -sinθ, 0.0) when rotated by angle θ about z-axis.
Porosity provides information on the overall pore volume of a porous material and is defined as the ratio of the nonsolid volume (voids) to the total volume of the nonwoven fabric. The air permeability and porosity of fabric duct are inter-dependent. An increase in porosity (the free space) should lead to decrease in permeability (resistance to the air flow). From flow point of view, a volume based definition of porosity may not provide a direct relation to the the flow velocity which depends on flow area perpendicular to the flow direction.
There is decrease in atmospheric pressure and temperature with altitude as compared to height above sea level. Why sea level is considered as reference datum? This is because the lquids maintain uniform level and any point anywhere in the sea is expected to be same radial distance from the centre of the Earth.
p [Pa] = 101325 * (1 - 2.25577E-05 × H)5.2559 where altitude H is in [m].
T [K] = 288.15 - 0.0065 × H. You may use the following calculator to estimate ambient pressure and tempearture at higher altitudes. There is option to chose altitude in [m] or [ft]. However, the outputs are in SI units.
Altitude, H | |
Unit | |
In situations with multi-component flows (such as leakage of fuel or refrigerant) where diffusion dominates the correct specification of binary diffusion coefficient is very important. Following table specifies value at 1 [atm] and 300 [K]. Reference: Analytical Combustion by Anil W. Date.
Pair | Dab [m2/s] | Pair | Dab [m2/s] |
H2O - air | 24.0E-6 | C6H6 - air | 8.00E-6 |
CO - air | 19.0E-6 | C8H18 - air | 5.00E-6 |
CO2 - air | 14.0E-6 | C8H16 - air | 7.10E-6 |
H2 - air | 78.0E-6 | C10H22 - air | 6.00E-6 |
O2 - air | 19.0E-6 | O2 - H2 | 70.0E-6 |
SO2 - air | 13.0E-6 | CO2 - N2 | 11.0E-6 |
NH3 - air | 28.0E-6 | CO2 - H2 | 55.0E-6 |
CH3OH - air | 14.0E-6 | C6H14 - N2 | 8.00E-6 |
C2H5OH - air | 11.0E-6 | C8H18 - N2 | 7.00E-6 |
CH4 - air | 16.0E-6 | C10H22 - N2 | 6.40E-6 |
Higher Heating Value (HHV) and Lower Heating Value (LCV) for some of the common fuel: "eere.energy.gov/hydrogenandfuelcells/tech_validation/pdfs/fcm01r0.pdf"
Fuel | HHV at 25 °C and 1 atm [kJ/kg] | LHV at 25 °C and 1 atm [kJ/kg] |
Hydrogen | 141.9 | 119.9 |
Methane | 55.5 | 50.0 |
Propane | 50.4 | 45.6 |
Gasoline | 47.5 | 44.5 |
Diesel | 44.8 | 42.5 |
Methanol | 20.0 | 18.0 |
Here:
Dupuit-Thiem equation (based on Darcy Law in cylindrical coordinate system) is a widely used formula to estimate pressure drop across the wall for a known (oil extraction) flow rate in a circular reservoir that has a constant pressure at its outer boundary.
Dust Accumulation in Air Filters: There are many application of air filters such as automotive air cleaners. Dust Holding Capacity (DHC) is one of the key parameters of such filters. The filter are orthotropic porous media where the porous loss coefficients are different along the 3 directions. However, any CFD simulations to deal with dust accumulation will be a transient simulation where the behaviour of porous domain will change depending upon duct collection level and spatial distribution. This is because filter may not collect dust uniformly and hence permeability will change non-uniformly. For most practical applications, change in pressure drop can be assumed to be a linear function of duct loading (the amount of dust trapped in filters). How does one model the trapping of dust particles in the pores of the filter? Neither the filter pores nor the diameters of the particles are uniform in size and shape!
The rate of convergence slows a porous region is defined such that pressure drop is relatively large in the flow direction (e.g. the permeability is low or the inertial factor is large). This slow convergence can occur because the porous media pressure drop appears as a momentum source term yielding a loss of diagonal dominance in the matrix of equations solved. The best remedy for poor convergence of a problem involving a porous medium is to supply a good initial guess for the pressure drop across the medium. You can supply this guess by patching a value for the pressure in the fluid cells upstream and/or downstream of the medium. It is important to recall, when patching the pressure, that the pressures you input should be defined as the gauge pressures used by the solver (i.e. relative to the operating pressure defined in the simulation).
Another possible way to deal with poor convergence is to temporarily disable the porous media model and obtain an initial flow field without the effect of the porous region. Once an initial solution is obtained, or the calculation is proceeding steadily to convergence, enable the porous media model and continue the calculation with the porous region included. (This method is not recommended for porous media with high resistance.)
Simulations involving highly anisotropic porous media may, at times, pose convergence troubles. This issue can be addressed limiting the anisotropy of the porous media coefficients to two (102) or three (103) orders of magnitude. Even if the medium's resistance in one direction is infinite, it is not needed to set the resistance in that direction to be greater than 1000 times the resistance in the primary flow direction.
In the fluid mechanics of porous media, tortuosity is the ratio of the length of a streamline to that of the straight-line distance between those points. A measure of deviation from a straight line. It is the ratio of the actual distance traveled between two points, including any curves encountered, divided by the straight line distance. Tortuosity is used by drillers to describe wellbore trajectory, by log analysts to describe electrical current flow through rock and by geologists to describe pore systems in rock and the meander of rivers.
A related concept is fractal which is used to describe the effective length of rivers and used even for trading in stock markets.
Mass Fraction to Volume (or Mole) Fraction: ensure that the sum of mass fractions add to 1.0, no checks are performed in case they do not. Typically method to check the correctness of following method is to specify same value of mass fractions (0.5 or 50%) and density for both phases, the calculated volume fractions should be equal to 0.50 (50%) for both phases.
First phase mass fraction [%] and density [kg/m3] | β1: | ρ1: | ||
Second phase mass fraction [%] and density [kg/m3] | β2: | ρ2: | ||
Volume fraction of the two phases | α1: | α2: | ||
Formula to convert mass fraction to volume fraction and vice versa:
Volume Fraction to Mass Fraction: ensure that the sum of volume fractions add to 1.0, no checks are performed in case they do not.
First phase volume fraction [%] and density [kg/m3] | α1: | ρ1: | ||
Second phase mass fraction [%] and density [kg/m3] | α2: | ρ2: | ||
Mass fraction of the two phases | β1: | β2: | ||
[2]: A method for aerodynamic drop break-up that has been widely implemented is known as the Taylor Analogy Break-up model or TAB. The TAB model approximates a drop as a damped oscillator system and tracks a deformation parameter. When the deformation parameter is sufficiently large, break-up is assumed.
Surface tension and angle of contact with water and some of the non-metals are tabulated below as per www.accudynetest.com.
Surface Tension of Water with | Abbreviation | [N/m] | [°] |
Silicone Oxide | Glass | 0.0725 | ~ 0 |
Poly-Vinyl-Chloride | PVC | 0.0379 | 85.6 |
Poly-Tetra-Fluoro-Ethylene | PTFE | 0.0194 | 109 |
Poly-Amide-6-6 | Nylon-66 | 0.0422 | 68.3 |
Poly-Methyle-Meth-Acrylate | PMMA (Acrylic, Plexiglass) | 0.0375 | 70.9 |
Poly-Ethylene-Terephthalate | PET | 0.0390 | 72.5 |
Poly-Carbonate | PC | 0.0440 | 82.0 |
Acrylonitril Butadine Styrene | ABS | 0.0385 | 80.9 |
Poly-Ethylene | PE | 0.0316 | 96.0 |
Poly-Propylene | PP | 0.0305 | 102 |
One of the applications of capillary effect combined with fully-developed laminar (Poiseuille) flow is pipetting. Pipetting process is aspiration of a pre-determined volume of liquid by creating a vacuum above a tapered capillary tube (known as tip). The pressure in the pipette chamber during the process is in a dynamic equilibrium and is affected by the ambient pressure, viscosity, surface tension and density of the liquid, and the speed of the piston movement. The suction (aspiration) of liquid in pipette tips normally undergo following 4 phases:
Regime-I | Regime-II | Regime-III | Regime-IV |
Initial boundary effects important | Viscous effect negligible | Poiseuille flow: inertia effect negligible | Late viscous regime |
Surface tension forces dominant | Capillary rise resisted by fluid inertia | Lucas-Washburn law applies | Fluid rise approaches steady state height |
Capillary rise: z ∝ t2 | Capillary rise: z ∝ t | Capillary rise: z ∝ t0.5 | Capillary rise: z ∝ e-t |
The format of the standard transient profile file:
( (inletvel transdata 3 0) (time 1 2 3 ) (invel 6 5 4 ) )Here '3' denotes the number of data points (number of rows in tabular format). '0' indicated that data is not time-periodic, use '1' for a time-periodic dataset. 'invel' shall appear as drop-down in boundary condition panel. Note:
The data set used above can also be specified as described below:
( (inletvel transdata 3 0) (time 1 2 3 ) (invel 6 5 4 ) )
Tabular Transient Profiles
The format of the tabular transient profile file is as follows. Use TUI command "file read-transient-table fileTr.dat" to upload the data into the solver. The options "inletvel time" and "inletvel invel" shall appear in the drop-down menu of boundary condition panels.inletvel transdata 3 0 time invel 1 6 2 5 3 4
Data Import into ANSYS FLUENT:
Interpolation file format: ANSYS FLUENT
2 --the interpolation file version 3 --dimension (2 or 3) 25000 --total number of points 3 --total number of fields (velocity, pressure...) included x-velocity --field variable to be interpolated pressure --field variable to be interpolated -0.100000 --x-coordinate of first node in the list -0.200000 --y-coordinate of first node in the list -0.300000 --z-coordinate of first node in the list ... ... ... 1.000000 --x-coordinate of last node in the list 2.000000 --y-coordinate of last node in the list 3.000000 --z-coordinate of last node in the list 0.500000 --x-velocity at first node in the list 0.100000 --x-velocity at second node in the list 0.200000 --x-velocity at third node in the list ... ... ... 5.000000 --x-velocity at last node in the list 100.0000 --pressure at first node in the list 200.0000 --pressure at second node in the list 300.0000 --pressure at third node in the list ... ... ... 500.0000 --pressure at last node in the list
At the end is a list of the field values at all the points in the same order as their names. The number of coordinate and field points (x-velocity and pressure in this case) should match the number given in line 3 (25000 in this case). Note that it cannot interpolate heat generation rate (W/m3), though internal energy, enthalphy, heat transfer coefficient... can be interpolated. In other words, no volumetric source/sink term can be interpolated in the fluid region. On the boundaries, all field variables are available for interpolation.
Data Export into CSV Format: ANSYS FLUENT:
The header in CSV files for FLUENT and STAR-CCM+ uses different variable names. In STAR-CCM+ variables has to be specified with appropriate units: e.g. "Absolute Pressure (Pa)", "Velocity Magnitude (m/s)", "Velocity[i] (m/s)", "Velocity[j] (m/s)", "Velocity[k] (m/s)", "X (m)", "Y (m)", "Z (m)"... Note the space between variables and unit. The x-component of velocity is accessed by Velocity[i].
Data Mapper: STAR-CCM+:
Using a user field function, the table data which provides the variations of velocity with time can be imported and then defined as follow:interpolateTable(@Table("VelData"), "Time", LINEAR, "VelMPS", $Time)
Here the field function type should be vector. For boundaries such as inlet, in the “Physics Values” option of the boundary in the “Method” field, select Field Function, and then right below this, select the field function defined earlier.
The name of the table is VelData, Time is the name for the first column in the .csv file, LINEAR (other option available is SPLINE) is the interpolation method creating values between the discrete time values specified in the table, VelMPS is the name of the second column in the table (corresponding to the velocity magnitude), $Time specifies that the velocity is function of time. In case velocity is function of spatial coordinates say y-axis: $${Position}[1] can be used in place of $Time to specify that the position coordinate is aligned with the y-axis (1 = y-direction, use '0' for x-direction and 2 for z-direction).
License Manager: LMTOOLS
Most of the CFD programs be it ANSYS FLUENT or STAR-CCM+ use LMTools to manage the licenses at their customers. The executable utility is installed in the same folder where main program such as ANSYS FLUENT is installed. The syntax to use LMSTAT is: lmstat [-a] [-c license_file_list] [-f [feature]] [-i [feature]] [-s[server]] [-S [vendor]] [-t timeout_value]. The purpose of each option is:Finding Names of Feature: to use -f option, one need to know the exact names of feasures. This can be found in license.dat file or check the output from -a options. lmutil.exe lmstat -s licServers -f "feature_name"
For scripting and partial automation of pre-processing, solver and post-processing activities, refer to this section of scripting page.
For dealing with file handling in Linux and Windows, refer to short summary of shell scripting.
Checklist to check adequecy of boundary conditions for steady state simulations
No. | Checkpoint | Record [Y / N / NA] |
01 | Is the CAD data available in STEP format? | |
02 | Are the boundary condition values at inlets available: mass or volume flow rate, temperature, pressure? | |
03 | Are the boundary conditions at outlets available: mass flow rate, pressure? | |
04 | Are the boundary conditions such as surface heat sources at walls available? | |
05 | Are the volumetric heat generation rates available? | |
06 | If applicable, is the fan performance curve available? | |
07 | If applicable, is the pressure drop vs velocity curve available for porous domain? | |
08 | Are the material type and grade for all solids avaiable? | |
09 | Are the values of ambient conditions (temperature and pressure) available? | |
10 | Are the thermal conductivity values of non-standard materials available? |
The content on CFDyna.com is being constantly refined and improvised with on-the-job experience, testing and training. Examples might be simplified to improve insight into the physics and basic understanding. Linked pages, articles, references and examples are constantly reviewed to reduce errors, but we cannot warrant full correctness of all content.
Copyright © 2017 - All Rights Reserved - CFDyna.com
Template by OS Templates