Computational Fluid Dynamics group (@CFDonia) header
Computational Fluid Dynamics group (@CFDonia) profile picture

Fluid Dynamics, Environmental Flows, Weather & Climate, Turbulence, Scientific Computing @UConn. We love art and computer programming (led by G. Matheou)

University of Connecticut
Joined June 2020
Photo by Computational Fluid Dynamics group (@CFDonia)Photo by Computational Fluid Dynamics group (@CFDonia)Photo by Computational Fluid Dynamics group (@CFDonia)Photo by Computational Fluid Dynamics group (@CFDonia)Photo by Computational Fluid Dynamics group (@CFDonia)Photo by Computational Fluid Dynamics group (@CFDonia)Photo by Computational Fluid Dynamics group (@CFDonia)Photo by Computational Fluid Dynamics group (@CFDonia)Photo by Computational Fluid Dynamics group (@CFDonia)Photo by Computational Fluid Dynamics group (@CFDonia)
Computational Fluid Dynamics group retweeted
A satellite view that tracks the rocket a bit longer - the water vapor imagery. Pew pew!
1
10
107
3,506
Computational Fluid Dynamics group retweeted
Absolutely breathtaking view of the Artemis II launch. Wow.
21
798
32
6,359
266,042
Computational Fluid Dynamics group retweeted
A glimpse of the traveling Gallery of Fluid Motion reception #apsdfd2023 at the @theNASciences organized by Azar Panah, featuring the work of @CFDonia, #terracollage and @ca_sye among others
11
50
6,454
Computational Fluid Dynamics group retweeted
So pretty I had to replicate in python 🔮
Following many two-dimensional turbulence animations, it is time to share computer code! Implementation of a vorticity-streamfunction method with a pseudo-spectral discretization + third-order Runge-Kutta for time integration (our CFD class semester project). The @MATLAB code: M = 256; % number of points N = M; Lx = 2*pi; Ly = 2*pi; nu = 5e-4; % kinematic viscosity Sc = 0.7; % Schmidt number beta = 0; % meridional gradient of Coriolis parameter ar = 0.02; %random number amplitude b = 1; % mean scalar gradient CFLmax = 0.8; tend = 200; % end time x=linspace(0,Lx,M+1); x(end)=[]; dx = Lx/M; kx=[0:M/2 -M/2+1:-1]*2*pi/Lx; y=linspace(0,Ly,N+1); y(end)=[]; ky=[0:N/2 -N/2+1:-1]*2*pi/Ly; dy = Ly/N; time = 0; index_kmax = ceil(M/3); kmax = kx(index_kmax); filter = ones(M,N); filter(index_kmax+1:2*index_kmax+3,index_kmax+1:2*index_kmax+3)=0; rng(64); [u, v, omega, psi, ddx, ddy, idel2, kk, k2]=deal(zeros(M,N)); for j=1:N ddx(:,j)=1i*kx; end for i=1:M ddy(i,:)=1i*ky; end for i=1:M for j=1:N idel2(i,j)=-kx(i)^2-ky(j)^2; end end idel2=1./idel2; idel2(1,1)=0; for i=1:M for j=1:N kk(i,j)=kx(i)^2+ky(j)^2; k2(i,j)=kx(i)^2+ky(j)^2; if kk(i,j) >= 6^2 && kk(i,j) <= 7^2 % forcing kk(i,j) = -kk(i,j); end if kk(i,j) <= 2^2 kk(i,j) = 8*kk(i,j); % large-scale dissipation end end end for i=1:M for j=1:N u(i,j) = cos(2*x(i))*sin(2*y(j))+ar*rand; v(i,j) = -sin(2*x(i))*cos(2*y(j))+ar*rand; end end uhat = fft2(u); vhat = fft2(v); omegahat = ddx.*vhat - ddy.*uhat; % make vorticity phi = rand(size(u)); phihat = fft2(phi); ncid = netcdf.create('turb2d6x8f.nc', 'CLOBBER'); dimid_x = netcdf.defDim(ncid, 'x', M); dimid_y = netcdf.defDim(ncid, 'y', N); dimid_time = netcdf.defDim(ncid, 'time', netcdf.getConstant('NC_UNLIMITED')); varid_x = netcdf.defVar(ncid, 'x', 'NC_FLOAT', [dimid_x]); varid_y = netcdf.defVar(ncid, 'y', 'NC_FLOAT', [dimid_y]); varid_u = netcdf.defVar(ncid, 'u', 'NC_FLOAT', [dimid_x, dimid_y, dimid_time]); varid_v = netcdf.defVar(ncid, 'v', 'NC_FLOAT', [dimid_x, dimid_y, dimid_time]); varid_omega = netcdf.defVar(ncid, 'vorticity', 'NC_FLOAT', [dimid_x, dimid_y, dimid_time]); varid_phi = netcdf.defVar(ncid, 'scalar', 'NC_FLOAT', [dimid_x, dimid_y, dimid_time]); varid_dissipation = netcdf.defVar(ncid, 'dissipation', 'NC_FLOAT', [dimid_x, dimid_y, dimid_time]); varid_time = netcdf.defVar(ncid, 'time', 'NC_FLOAT', [dimid_time]); netcdf.endDef(ncid); netcdf.putVar(ncid, varid_time, 0, 1, time); netcdf.putVar(ncid, varid_x, 0, M, x); netcdf.putVar(ncid, varid_y, 0, N, y); netcdf.putVar(ncid, varid_phi, [0, 0, 0], [M, N, 1], phi); netcdf.putVar(ncid, varid_u, [0, 0, 0], [M, N, 1], u); netcdf.putVar(ncid, varid_v, [0, 0, 0], [M, N, 1], v); netcdf.putVar(ncid, varid_omega, [0, 0, 0], [M, N, 1], omega); netcdf.putVar(ncid, varid_dissipation, [0, 0, 0], [M, N, 1], 0*omega); dt = 0.5*min([dx dy]); nstep = 1; while time < tend psihat = -idel2.*omegahat; uhat = ddy.*psihat; vhat = -ddx.*psihat; u = real(ifft2(uhat)); v = real(ifft2(vhat)); omegadx = real(ifft2(ddx.*omegahat)); omegady = real(ifft2(ddy.*omegahat)); facto = exp(-nu*8/15*dt*kk); factp = exp(-nu/Sc*8/15*dt*k2); r0o = -fft2(u.*omegadx+v.*omegady)+beta*vhat; r0p = -fft2(u.*real(ifft2(ddx.*phihat))+v.*real(ifft2(ddy.*phihat)))+b*vhat; omegahat = facto.*(omegahat + dt*8/15*r0o); % update omega phihat = factp.*(phihat + dt*8/15*r0p); % update phi %%%% Substep 2 psihat = -idel2.*omegahat; uhat = ddy.*psihat; vhat = -ddx.*psihat; u = real(ifft2(uhat)); v = real(ifft2(vhat)); omegadx = real(ifft2(ddx.*omegahat)); omegady = real(ifft2(ddy.*omegahat)); r1o = -fft2(u.*omegadx+v.*omegady)+beta*vhat; r1p = -fft2(u.*real(ifft2(ddx.*phihat))+v.*real(ifft2(ddy.*phihat)))+b*vhat; omegahat = omegahat + dt*(-17/60*facto.*r0o + 5/12*r1o); phihat = phihat + dt*(-17/60*factp.*r0p + 5/12*r1p); facto = exp(-nu*(-17/60+5/12)*dt*kk); factp = exp(-nu/Sc*(-17/60+5/12)*dt*k2); omegahat = omegahat.*facto; phihat = phihat.*factp; %%%% Substep 3 psihat = -idel2.*omegahat; uhat = ddy.*psihat; vhat = -ddx.*psihat; % max(max(abs(real(ifft2(1i*ddx.*uhat+1i*ddy.*vhat))))) % divergence u = real(ifft2(uhat)); v = real(ifft2(vhat)); omegadx = real(ifft2(ddx.*omegahat)); omegady = real(ifft2(ddy.*omegahat)); r2o = -fft2(u.*omegadx+v.*omegady)+beta*vhat; r2p = -fft2(u.*real(ifft2(ddx.*phihat))+v.*real(ifft2(ddy.*phihat)))+b*vhat; omegahat = omegahat + dt*(-5/12*facto.*r1o + 3/4*r2o); phihat = phihat + dt*(-5/12*factp.*r1p + 3/4*r2p); facto = exp(-nu*(-5/12+3/4)*dt*kk); factp = exp(-nu/Sc*(-5/12+3/4)*dt*kk); omegahat = omegahat.*facto; phihat = phihat.*factp; phihat = filter.*phihat; omegahat = filter.*omegahat; time = time + dt; nstep = nstep + 1; CFL = max(max(abs(u)))/dx*dt+max(max(abs(v)))/dy*dt; if mod(nstep,20)==0 phi = real(ifft2(phihat)); omega = real(ifft2(omegahat)); dissipation = 2*nu*(real(ifft2(ddx.*uhat)).^2 + real(ifft2(ddy.*uhat)).^2 + real(ifft2(ddx.*vhat)).^2 + real(ifft2(ddy.*vhat)).^2); eta = (nu^3/mean(dissipation,'all'))^0.25; subplot(221); pcolor(x,y,omega'); title('Vorticity'); shading flat; axis equal tight; colorbar; drawnow subplot(222); pcolor(x,y,phi'); title('Scalar'); shading flat; axis equal tight; colorbar; drawnow subplot(223); pcolor(x,y,dissipation'); title('Dissipation'); shading flat; axis equal tight; colorbar; drawnow subplot(224); pcolor(x,y,u); title('u-velocity'); shading flat; axis equal tight; colorbar; drawnow fprintf(1,'step = %d time = %g dt = %g CFL = %g kmax*eta = %g %g\n', nstep, time, dt, CFL, eta.*kmax, eta.*kmax/sqrt(Sc)); [~, dim_time_len] = netcdf.inqDim(ncid,dimid_time); netcdf.putVar(ncid, varid_time, [dim_time_len], [1], time); netcdf.putVar(ncid, varid_phi, [0, 0, dim_time_len], [M, N, 1], phi); netcdf.putVar(ncid, varid_u, [0, 0, dim_time_len], [M, N, 1], u); netcdf.putVar(ncid, varid_v, [0, 0, dim_time_len], [M, N, 1], v); netcdf.putVar(ncid, varid_omega, [0, 0, dim_time_len], [M, N, 1], omega); netcdf.putVar(ncid, varid_dissipation, [0, 0, dim_time_len], [M, N, 1], dissipation); netcdf.sync(ncid); end dt = CFLmax/CFL*dt; %0.0005; end netcdf.close(ncid);
7
72
5,899
Computational Fluid Dynamics group retweeted
"教育的な" アプリの話が続きますが、もう1つのお気に入りはこれ。自然対流で遊べるアプリ🧐 中身を見ると CDF の基本も抑えられる・・かも。コードはこちら👇jp.mathworks.com/matlabcentr… Credit: Computational Fluid Dynamics group @me3250
2
9
1
37
Computational Fluid Dynamics group retweeted
#LookUp at the clouds. ☁ Did you know each one has a name? @UCAR_News can teach you all about cloud types and how to identify them. There's even an app for that: https://teapawt.net/t.co/01FaieTqYV #SkyAwareness #DarkSky #NSFfunded 📷: UCAR
1
18
2
62
Computational Fluid Dynamics group retweeted
Replying to @JBorrow
😯 Stunned at these! Was going to say @me3250 have some fantastic examples too
1
2
Computational Fluid Dynamics group retweeted
Please spread the word! I'm looking for Ph.D. students in my group to work on high-fidelity turbulence simulations for Fall 2022. For more information, contact me at [email protected] with your CV.
18
40
Computational Fluid Dynamics group retweeted
For the science writing enthusiasts & bloggers, we just launched a Fluids Writing Competition @JFluidMech and @flow_journal. Write a story based on a recent JFM paper. Entries open until the 19th March 2021. @cambUP_maths @CambUP_EarthSci. Details here: cambridge.org/core/blog/2021…
Computational Fluid Dynamics group retweeted
We're ONE day from @NASAPersevere's landing! Today’s #CountdownToMars events: ♦️ 12:30pm ET (5:30pm UTC): Elementary school student Q&A ♦️ 1pm ET (6pm UTC): Mission status update ♦️ 3pm ET (8pm UTC): Proof of ancient life & sample return overview Watch: nasa.gov/live
91
754
140
2,964
Computational Fluid Dynamics group retweeted
Where do you draw inspiration from? John Constable painted this view over the ocean on a family trip to Brighton, where he admired 'the magnificence of the sea'. It’s one of his only oil sketches completed outdoors in winter. https://teapawt.net/t.co/UNXpxb6Irx
11
90
9
482
Computational Fluid Dynamics group retweeted
If you’re looking for an out-of-this-world gift, then send that special someone’s name to Mars. @NASAPersevere is carrying almost 11 million names to the Red Planet and you, your family and friends can hop on the next trip to Mars. mars.nasa.gov/participate/se… #CountdownToMars
34
131
24
600
Computational Fluid Dynamics group retweeted
This week: The next Critical Looking is on Weds. 12/2 at 6:00pm. Tap your powers of observation and investigate a single work of art through close looking and discussion. Offered via Zoom. Register: https://teapawt.net/t.co/9xaYHZVS0D
1
1
Computational Fluid Dynamics group retweeted
Tired of looking at a computer screen all day? We’ve got you covered! Download FREE printable coloring pages, featuring new Fall themes--> https://teapawt.net/t.co/DnQ6q02fnw Share your creations and tag us #ThursdaysWithTheBenton
Computational Fluid Dynamics group retweeted
This is fantastic news for Connecticut. We've always been proud to be the home of @GDElectricBoat, maker of the best submarines in the world, and this announcement cements their future in our state. This shows, once again, that Connecticut's workforce is the best in the world.
Today the U.S. Navy awarded @gdelectricboat a $9.5 billion contract modification option for construction and test of the lead and second ships of the Columbia class, as well as associated design and engineering support. gdeb.com/news/news_archives/…
25
15
5
200
Computational Fluid Dynamics group retweeted
This is awesome. Nice job @emilyrsutton
Mammatus means “mammary cloud” because they look like....🙄🙄🙄 The udders or pouches form underneath the anvil of a cumulonimbus (sometimes other types of clouds) due to pockets of cold sinking air (localized downbursts). They often signify severe weather is in the area.
2
12
Computational Fluid Dynamics group retweeted
VIDEO: Here’s what you need to know about our 2020-2021 U.S. #WinterOutlook released today: https://teapawt.net/t.co/Lw8BLbwvVH (Video also at climate.gov/Winter2020 ) @NWSCPC @NOAAClimate #winter #SnowOrNo?
5
87
22
138
Computational Fluid Dynamics group retweeted
Weds 10/7 at 6:00pm: Tap your powers of observation and investigate a single work of art through close looking and discussion with Amanda Douberley, Assist. Curator/Academic Liaison. Register--> https://teapawt.net/t.co/z0mCNNkutv Alison Saar, Snake Man (1994).
3
4
Computational Fluid Dynamics group retweeted
The radar shows up some line convection today But what is line convection? 👇
1
3
16
Computational Fluid Dynamics group retweeted
Pour one out—it's #NationalCoffeeDay ☕ How do you take your coffee? With cream? Sugar? How about in a tiny saucer to allow the beverage to cool quickly, like this 18th-century drinker? Tell us how you take your cup o' Joe below. ⤵️
14
92
22
379