Three-dimensional finite element model to simulate secondary flows: development and validation