I am developing a code to simulate fluid flow with biological substances present in the flow. This involves the standard Navier-Stokes equations coupled to some additional biological models. There are many parameters/constants.
I have written functions to handle the major computations, but a problem I am having is the large number of constants/parameters that these computations depend on. It seems cumbersome to pass 10-20 arguments to a function.
One alternative is to make all the constants global variables, but I know this is frowned upon in C++.
What is the standard way of handling many inputs to a function? Should I make a struct and pass that instead?