In the previous post “First steps in parallel file access using MPI I/O“, we discussed how to write some simple data in parallel using MPI I/O. Here we shall read back that data in parallel. The entire code is given in my GitHub repo MPI_Notes. Essentially, we have the following text data in a file: … Read more Reading data in parallel using MPI I/O
If your code uses MPI for parallelization, then you may want to use MPI I/O for writing and reading data from files in parallel. It is common to see the use of POSIX parallel approach where each MPI process reads/writes a separate file. This approach has the following drawbacks: Not efficiently scalable for very high … Read more First steps in parallel file access using MPI I/O
When it comes to parallel computing, there are many ways to solve any complex scientific computing problem. Some are more suitable than others. The method and approach should be determined on a case by case basis with an understanding of the computational algorithm and data structures involved. In this series of articles, I will describe … Read more Parallel computing approaches for CFD
The last few weeks, I have been engrossed with the oceans and navigation in their vast expanse. It all started with a couple of movies I watched. The first movie “Kon-Tiki” beautifully portrays the 1947 expedition by Norwegian explorer and ethnographer Thor Heyerdahl across the south pacific, from Peru to polynesia. The remarkable thing was that … Read more An invitation to fluid dynamics from the oceans
Previous article: 1. Fourier transform for confused engineers What is the Fourier transform, really? For some, it is the magic of seeing everything as waves. For others, it is like holding a prism in a beam of sunlight and seeing what it contains, a rainbow of colors. For some others, it is a tool to … Read more What is the Fourier transform?
If you are an engineer, you most likely encountered one of the following situations: Plot the power spectral density of a signal you have Find the dominant frequency/mode in a signal A journal paper stating, “It is obvious(?!) that this operation is straightforward to carry out in wave space”. I have been in many such … Read more Fourier transform for confused engineers
If you are a computational fluid dynamics (CFD) practitioner, at some point, you would have to use Hierarchical Data Format 5 (HDF5) and CFD General Notation System (CGNS) libraries in your programs. HDF5 format provides an advanced way of organizing any data and allows efficient access to the data. CGNS prescribes specific methods and practices … Read more Installing HDF5 and CGNS in Ubuntu 18.04 LTS
Falkner – Skan equation is a third order non-linear ordinary differential equation which arises in the laminar boundary layer flow past wedge-like objects. (More details here). The equation reads, where m is a constant representing the pressure gradient parameter. Our objective is to solve this differential equation for , for a given value of m … Read more Numerical Solution of the Falkner – Skan Equation
“Give me some example for waves in nature! ” “Sound is a wave.. Light is a wave.. Of course we see water waves.. ” Thats the usual answer we think about when asked that question. Moreover, we are told that sound waves are longitudinal waves (compression waves) and light waves are transverse waves. But we … Read more Why are sound waves longitudinal?
All through my life, I have always felt that I have been playing catch up with the rest of the world’s learning curve, in terms of depth in understanding or mastery of subjects that matter the most. Comparison is not a good thing to do in many cases. But even if I do not compare … Read more On teaching