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:6720
Latest posts:

Palindrome program
[code]#include <iostream> #include <cstring> #include <cctype> using namespace std; bool isPalindro...

Vector<int,2> origin;
[quote]Do you have any recommendation?[/quote] Learn C++ with the standard library first. Understan...

Vector<int,2> origin;
https://www.openlb.net/DoxyGen/html/da/dfb/classolb_1_1Vector.html

FFT results of c++ vs MATLAB
@JamieAl, If you use y indices 0:Ny then that is 11 points. You then use x indices 0:Nx-1 which is ...

FFT results of c++ vs MATLAB
OK, this finally reproduces @JamieAl's Matlab output. It's using a straight DFT for simplicity, not ...