Sunday 25 December 2022

Datacenter Visualization (Verified and Validated)

     This simulation is done to create an aero-thermal digital twin of a datacenter using CFD. The details of datacenter are taken from [1]. The datacenter CAD model is shown in Fig. 1.

     The simulation employs κ − ε turbulence model with damping functions, SIMPLE-R (modified), as the numerical algorithm and second-order upwind and central approximations as the spatial discretization schemes for the convective fluxes and diffusive terms. The time derivatives are approximated with an implicit first-order Euler scheme. Flow simulation solves the Navier–Stokes equations, which are formulations of mass, momentum, and energy conservation laws for fluid flows. To predict turbulent flows, the Favre-averaged Navier–Stokes equations are used.


Fig. 1, Datacenter CAD

     A Cartesian mesh with octree refinement, cut-cell method and immersed boundary methods is used. Special mesh refinements are deployed in the areas of interest i.e. inlets and outlets and sharp edges of server racks and CRAH units to accurately capture aero-thermal gradients and vortices. The resulting computational mesh has 2,698,156 cells. The computational domain and mesh are shown in Fig. 2.


Fig. 2, Computational mesh and domain


     The results from the numerical analysis were compared with [1]. The results are in excellent agreement with previously published data. The animation in Fig. 3 shows thermal distribution inside datacenter using cut-plots. Fluid velocity distribution is also shown. The cut-plots are superimposed with streamlines and velocity vectors. These post processing features help identify hot-spots and recirculation zones. Design improvements can be made to reduce thee unwanted flow features. Within Fig. 3, Flow trajectories colored by air temperature are also shown. These show path the fluid takes between various inlets and outlets in the datacenter such as the CRAH system supply and return zones and inlets and outlets of servers. Fig. 4 shows various post processing tools available for diagnosing various issues from the aero-thermal perspective. These include iso-surfaces, cut-plots, flow trajectories and surface plots etc.

Fig. 3, The post processing animations

Fig. 4, The post processing images


     A comparison of the results from present simulations with previously published literature is shown in Fig. 5. it can be seen that out results are in close agreement with previously published numerical and experimental data [1]! The locations at which the data is extracted is shown in Fig. 6. Within Fig. 5, solid lines indicate present study, dashed lines indicate published numerical results and filled circles represent published experimental results.

Fig. 5, Comparison of results

Fig. 6, Location of data extraction

     If you want to collaborate on the research projects related to turbomachinery, aerodynamics, renewable energy, please reach out. Thank you very much for reading.

References

[1] Wibron, Emelie, Anna-Lena Ljung, and T. Staffan Lundström. 2018. "Computational Fluid Dynamics Modeling and Validating Experiments of Airflow in a Data Center" Energies 11, no. 3: 644. https://doi.org/10.3390/en11030644

Friday 30 September 2022

Aperiodic Aero-foil Kinematics

     This post is about a 2D NACA 0012 aero-foil undergoing forced aperiodic heavingHeaving motion is achieved by the plot shown in Fig. 1. Plot within Fig. 1 represents position of airfoil at various time steps.


Fig. 1, The position of aero-foil

     The animation of the vorticity contours are shown in Fig. 2. The velocity, pressure and vorticity for aperiodic heaving is shown in Fig. 3. A comparison will be made with heaving later, if ever 😀. As far as aerodynamic forces are concerned, per-cycle Cl, avg is at 0.63 as compared to 0.0 for periodic heaving. Cd, avg aperiodic heaving is at 0.162 as compared to 0.085 for periodic heaving. Of course, this is done on a coarse mesh. If ever I write a paper about this... 😀

Fig. 2, Top Row, Aperiodic, periodic heaving airfoil 

     
Fig. 3, Top Row, L-R, Vorticity, pressure. Bottom Row, Velocity 

     If you want to collaborate on the research projects related to turbomachinery, aerodynamics, renewable energy, please reach out. Thank you very much for reading. 

Saturday 10 September 2022

DARPA Suboff Submarine CFD Simulation (Backed-up by Water Tunnel Data); Update 01: Water Level Simulations (Volume of Fluid)

      This post is about the CFD analysis of the DARPA Suboff at various speeds. The DARPA Suboff model is based on a generic submarine. The submarine geometry is shown in Fig. 1. The submarine in fully submerged in water. Refer to section "Update 01" for submarine sailing at the water level. The submarine geometry is available here. The geometry is made using equations from [1]. Machine Learning available here.


Fig. 1, DARPA Suboff submarine CAD

      The simulations are validated with published literature [2-4]. SolidWorks Flow Simulation Premium software is employed for the simulations. Fig. 2 shows results of drag force at various cruise speeds. It can be seen that the results are in close agreement with the published experimental / numerical data.

Fig. 2, Comparison of results

     The mesh has 656,714 cells in total. With 34,258 cells on the submarine surface. Special mesh refinements are added in the regions of interest i.e. regions with high gradients, the wake and on the control surfaces of the submarine. The mesh for is shown in Fig. 3.


Fig. 3, The mesh and computational domain

     The results from the CFD post processing are presented next. Velocity cut-plots showing velocity distribution and wake of the submarine, surface pressure distribution on the submarine and vorticity around and in the wake of the submarine are also shown in Fig. 4. Within Fig. 4, the black arrows represent the direction of on coming flow.

Fig. 4, The post processing

     Thank you for reading, If you would like to collaborate on projects, please reach out.

Update 01

     This section presents the results from a simulation using volume of fluid method. The water line is just below the sail of the submarine, as shown in Fig. 5. The iso-surfaces are shown in Fig. 6. The black arrows in both Figs. 5-6 represent direction of on coming flow. These simulations allow for visualization of wake of submarines and then methods can be device to reduce the wake.

Fig. 5, The color blue represents water and white represents air

Fig. 6, 3D wake of a sailing submarine

References

[1] Groves, Nancy C. Huang, Thomas T. Chang, Ming S., "Geometric Characteristics of DARPA (Defense Advanced Research Projects Agency) SUBOFF Models (DTRC Model Numbers 5470 and 5471)",  David Taylor Research Center, Bethesda MD, Ship Hydromechanics Dept, ADA210642, 1989 https://apps.dtic.mil/sti/citations/ADA210642
[2] Yu-Hsien Lin and Xian-Chen Li, "The Investigation of a Sliding Mesh Model for Hydrodynamic Analysis of a SUBOFF Model in Turbulent Flow Fields", Journal of Marine Science and Engineering, 8(10), 744, https://doi.org/10.3390/jmse8100744
[3] Liu, H.-L.; Huang, T.T. Summary of DARPA SUBOFF Experimental Program Data; Naval Surface Warfare Center Carderock Division, Hydromechanics Directorate: West Bethesda, MD, USA, 1998.
[4] Özden, Y.A.; Özden, M.C.; Çelik, F. Numerical Investigation of Submarine Tail Form on the Hull Eciency. In Proceedings of the Fifth International Symposium on Marine Propulsors, Espoo, Finland, 12–15 June 2017

Tuesday 30 August 2022

SACCON CFD Simulation (Compared by Wind Tunnel Data)

     This post is about the CFD analysis of the SACCON UCAV. Designed by NATO’s (North Atlantic Treaty Organization) RTO (Research and Technology Group) under Applied Vehicle Task Group (AVT-161) to assess the performance of military aircraft. The aircraft Geometry is shown in Fig. 1. The aircraft geometry is available here [1].


Fig. 1, SACCON UCAV

The aircraft flight parameters and dimensions are given in [1]. The simulations are validated with published literature [1]. SolidWorks Flow Simulation Premium software is employed for the simulations. Fig. 2 shows results of Cl, Cd and Cm at various angles of attack. It can be seen that the results are agreement with the published experimental data.
Fig. 2, Comparison of simulation results

The mesh has 3.7 million cells in total. Special mesh refinements are added in the regions of interest i.e. regions with high gradients, the wake and on the control surfaces of the aircraft. The computational domain and the mesh for 16° angle of attack is shown in Fig. 3.

Fig. 3, The computational mesh and domain

The mesh has 3.7 million cells in total. Special mesh refinements are added in the regions of interest i.e. regions with high gradients, the wake and on the control surfaces of the aircraft. The computational domain and the mesh for 16° angle of attack is shown in Fig. 3.

Fig. 4, CFD post processing

Thank you for reading, If you would like to collaborate on projects, please reach out.

References

[1] Andreas Schütte, Dietrich Hummel and Stephan M. Hitzel, “Flow Physics Analyses of a Generic Unmanned Combat Aerial Vehicle Configuration,” Journal of Aircraft, Vol. 49, No. 6, December 2012, https://doi.org/10.2514/1.C031386

Monday 18 July 2022

High Lift Common Research Model (CRM-HL) CFD Simulation (with validation from Stanford CTR and NASA) Update 01: Formation Flight

     This post is about the CFD analysis of the nominal (2A) configuration of the Boeing / NASA CRM-HL with flap and slat angles at 40 and 37 degrees. The configuration is shown in Fig. 1.




Fig. 1, CRM-HL CAD

     The dimensions are mentioned in [1] and is available here and here. The numerical simulations are validated with published literature [3, 4]. SolidWorks Flow Simulation Premium software is employed for the CFD simulations. The flight conditions are Mach 0.2 at 289.444 K and 170093.66 Pa [2].

     Fig. 2 shows the computational mesh along with the computational domain. The surface mesh is also shown with Fig. 2. It can be seen that the mesh is refined in the areas of interests and in the wake of the aircraft to properly capture the relevant flow features. The Cartesian mesh with immersed boundary method, cut-cell approach and octree refinement is used for creating the mesh. The mesh has 6.5 million cells, of which around 0.71 millions cells are at boundary of the aircraft.

     The simulations employ κ-ε turbulence model with damping functions and two-scales wall functions. SIMPLE-R (modified) as the numerical algorithm. Second order upwind and central approximations as the spatial discretization schemes for the convective fluxes and diffusive terms. The software solves the Favre-averaged Navier-Stokes equations to predict turbulent flow. The simulations are performed to predict three-dimensional steady-state flow over the aircraft


Fig. 2, Dashed lines indicate symmetry boundary conditions

     Angle of attack of 7 and 17 degrees are considered. At 7 degree angle of attack, the drag life and moment coefficients are within 6, 8 and 12% of the published data, respectively. For 17 degree angle of attack, the coefficients are within 4, 7, 33% of the published data [3, 4]. On average, the results of the present simulations are within 6% of the published data for force coefficients and within 12% in terms of pitching moment coefficient. The pitching moment coefficient will improve with refinement of the mesh, as shown by [3]; which I will do if ever I convert this into a manuscript 😂. The post processing from CFD simulations is shown in Fig. 3-4. Within Fig. 3, the iso-surfaces represent vorticity in the direction of flow, colored by pressure. The direction of flow is shown by black arrows. Streamlines colored by vorticity are also visible. It can be seen from Fig. 2 that the simulation captures important flow features such as vortex formation very accurately, in such small number of mesh cells. Fig. 4 shows wing of the velocity iso-surfaces colored by vorticity in the direction of flow, focused around the wing.


Fig. 3, Alternating 7 and 17 degree angles of attacks


Fig. 4, Top-Bottom, 17 and 7 degrees angle of attack

     The simulations are solved using 10 of 12 threads of a 4.0 GHz CPU with 32 GB of total system memory of which almost 30 GB remains in use while the simulations are in progress. To solve each angle of attack, 3 hours and 47 minutes are required.

Update 01

     Formation flight simulation is performed with 7.3 million cells (limited by RAM). Symmetry boundary condition is used to simulate only the area of interest. The mesh and computational domain is shown in Fig. 5. Within Fig. 5, dashed lines indicate symmetry boundary condition.

Fig. 5, Airliners in formation flight mesh and computational domain

     The results show that the leading aircraft has 16.52% more drag than the trailing aircraft. The results also show that the the leading aircraft has 5.4% less lift than the trailing aircraft. However, the leading aircraft produces 2.4% more lift than the airliner flying without the trailing aircraft (flying solo). The leading aircraft also produces 3% less drag than the airliner flying solo. These results are at 7 degree angle of attack. Whether these results are fruitful aero-structurally, remains to be seen. The post processing from simulations are shown in Fig, 6.

Fig. 6, Top-Bottom, 17 and 7 degrees angle of attack

     Within Fig. 7, surface plots represent pressure, velocity streamlines indicate vortices, iso-surfaces show vorticity magnitude in the direction of flight.

     Thank you for reading, If you would like to collaborate on projects, please reach out.

References

[1] Doug Lacy and Adam M. Clark, "Definition of Initial Landing and Takeoff Reference Configurations for the High Lift Common Research Model (CRM-HL)", AIAA Aviation Forum, AIAA 2020-2771, 2020 10.2514/6.2020-2771

[2] 4th AIAA CFD High Lift Prediction Workshop Official Test Cases, https://hiliftpw.larc.nasa.gov/Workshop4/OfficialTestCases-HiLiftPW-4-2021_v15.pdf

[3] K. Goc, S., T. Bose and P. Moin, "Large-eddy simulation of the NASA high-lift common research model", Center for Turbulence Research, Stanford University, Annual Research Briefs 2021

[4] 4TH High Lift Workshop Results, ADS, https://new.aerodynamic-solutions.com/news/18

Sunday 22 May 2022

Fifth Generation Fighter Aircraft CFD Simulation (Backed-up by Wind Tunnel Data)

     This post is about the CFD analysis of a Sydney Standard Aerodynamic Model (SSAM-Gen5) in flight at various angles of attack. The SSAM-Gen5 model is based on the Lockheed Martin F-22 Raptor. The aircraft Geometry is shown in Fig. 1. The aircraft geometry is available here and here. Machine Learning can be read here.



Fig. 1, SSAM-Gen5 CAD

     The aircraft flight parameters and dimensions are given in [1]. The simulations are validated with published literature [1]. SolidWorks Flow Simulation Premium software is employed for the simulations. Fig. 2-4 shows results of Cl, Cd and L/D at various angles of attack. It can be seen that the results are in close agreement with the published experimental data.

Fig. 2, A comparison of coefficient of lift

Fig. 3, A comparison of coefficient of drag

Fig. 4, A comparison of coefficient of lift to drag ratio

     The mesh has 796,327 cells in total. With 68,630 cells on the aircraft surface. Special mesh refinements are added in the regions of interest i.e. regions with high gradients, the wake and on the control surfaces of the aircraft. The mesh for 15° angle of attack is shown in Fig. 5.

Fig. 5, The computational mesh

     The results from the CFD post processing are presented next. Velocity iso-surfaces showing pressure distribution around the aircraft, surface pressure distribution on the aircraft and vorticity in the direction of flight at the wake of the aircraft are shown in Fig. 6. Within Fig. 6, the black arrows represent the direction of on coming flow. The angle of attack for Fig. 6 is at 15°.

Fig. 5, The post processing

     Thank you for reading, If you would like to collaborate on projects, please reach out.

[1] Tamas Bykerk, Nicholas F. Giannelis and Gareth A. Vio. "Static Aerodynamic Analysis of a Generic Fifth Generation Fighter Aircraft," AIAA SCITECH 2022 Forum, 2022-1951, 2022 doi.org/10.2514/6.2022-1951

Sunday 24 April 2022

1D Laplace's equation using Finite Difference Method

This post is about FDM for Laplace Equation with various boundary conditions.

MATLAB Code (1D, Dirichlet Boundary Conditions)

%% initialize the workspace, clear the command window


clear; clc


%% finite difference 1D laplace dirichlet boundary conditions %% d2u/dx2 = 0 %% u(o) = 10, u(L) = 4 %% Ax=b%%


N = 4 ; %number of grid points

L = 1; %length of domain

dx = L/(N-1); %element size


%% initialize variables %%


l = linspace(0,L,N); %independent

u=zeros(1,N); %dependent


%% boundary conditions %%


u(1)=10;

u(end)=4;


%% b vector %%


b=zeros(N-2,1);

b(1) = b(1) - u(1);

b(end) = b(end) - u(end);


%% A matrix


A = -2*eye(N-2,N-2);

for i=1:N-2

    if i<N-2

        A(i,i+1)=1;

    end

    if i>1

        A(i,i-1)=1;

    end

end


%% solve for unknowns %%


x = A\b;


%% fill the u vector with unknowns %%


u(2:end-1) = x;


%% plot the results %%


hold on; grid on; box on, grid minor

set(gca,'FontSize',40)

set(gca, 'FontName', 'Times New Roman')

ylabel('u','FontSize',44)

xlabel('l','FontSize',44)


plot(l,u,'-o','color',[0 0 0],'LineWidth',2,'MarkerSize',20)


MATLAB Code (1D, Mixed Boundary Conditions)

%% initialize the workspace, clear the command window

clear; clc

%% finite difference 1D laplace mixed boundary conditions %% d2u/dx2 = 0 %% u(o) = 10, du/dx(L) = 4 %% Ax=b%%

N = 5; %number of grid points
L = 1; %length of domain
dx = L/(N-1); %element size
a = 4;
%% initialize variables %%

l = linspace(0,L,N); %independent
u=zeros(1,N); %dependent

%% dirichlet boundary condition %%

u(1) = 10;

%% b vector %%

b=zeros(N-1,1);
b(1) = b(1) - u(1);
b(end) = b(end) + dx*a; %neumann boundary condition added to b vector

%% A matrix

A = -2*eye(N-1,N-1);
for i=1:N-1
    if i<N-1
        A(i,i+1)=1;
    end
    if i>1
        A(i,i-1)=1;
    end
end
A(N-1,N-1) = -1; %neumann boundary condition added to A matrix
%% solve for unknowns %%

x = A\b;

% fill the u vector with unknowns %%

u(2:end) = x;

%% plot the results %%

hold on; grid on; box on, grid minor
set(gca,'FontSize',40)
set(gca, 'FontName', 'Times New Roman')
ylabel('u','FontSize',44)
xlabel('l','FontSize',44)

plot(l,u','-o','color',[0 0 0],'LineWidth',2,'MarkerSize',20)