User profile: lastchance

User info
User name:lastchance
Location:Manchester, England
Bio:University lecturer in engineering

Teaching: fluid dynamics, mechanics, CFD, numerical methods.

Research: computational fluid dynamics (CFD), renewable energy (marine and wind), aerodynamics, heat transfer, hydraulic engineering.

I have a first degree in Maths and a PhD in Mechanical Engineering. I do a lot of mathematical modelling in the physical sciences.

I program mainly in Fortran at work, but I enjoy improving my C++ in this forum.
Statistical data
Gender:Male
Occupation:Teacher
Skills:C++
Python
Fortran
MPI
History
Joined:
Number of posts:6715
Latest posts:

FFT results of c++ vs MATLAB
@JamieAl, Are you sure that the MatLab output that you gave is really for a TWO-dimensional FFT? It ...

FFT results of c++ vs MATLAB
That "desired input" looks a lot more plausible: it's clearly now of the form (function of x) * (fun...

FFT results of c++ vs MATLAB
Thank-you @mbozzi. I've coded up a 2-d DFT from first principles (i.e. definition sum) and checked ...

FFT results of c++ vs MATLAB
@JamieAl, Why are you using nx+1 when you should be using nx, ny+1 when you should be using ny? Why ...

Creating a jagged array using a txt file?
Just use a vector<vector<int>> Specify the format of your input file. (e.g. by giving an example).