C++ software for forward simualtion