In step-35 there are different subsections. One of the subsections of
the input parameters file is physical data in which we see Reynolds
number. My question is: how could I read the data if there was an array
of values for Reynolds number instead of just one value? Another
example: we have a special value for the output_interval in this file,
what if I want to use 10 different values in an array named
output_interval so that I can use different output_intervals during the
solution. I want to be able to read arrays in different subsections of
the input parameter file.

Then you need to take a pattern like Patterns::List or Patterns::MultipleSelection when declaring a parameter. When reading the list as a string using prm.get("...") you will then have to split the list into its components; there are functions in namespace Utilities that can do that.

Best
 W.


------------------------------------------------------------------------
Wolfgang Bangerth               email:            [email protected]
                                www: http://www.math.tamu.edu/~bangerth/

_______________________________________________
dealii mailing list http://poisson.dealii.org/mailman/listinfo/dealii

Reply via email to