ana1Tests.damBreak.analyzeResults

analyzeResults(avalancheDir, fieldsList, timeList, solDam, fieldHeader, cfg, outDirTest, simHash, simDFrow)[source]

Compare analytical and com1DFA results, compute error

Parameters
  • avalancheDir (pathlib path) – path to avalanche directory

  • fieldsList (list) – list of fields dictionaries

  • timeList (list) – list of time steps

  • solDam (dict) – analytic solution dictionary

  • fieldHeader (dict) – header dictionary with info about the extend and cell size

  • cfg (configParser object) – configuration setting for avalanche simulation including DAMBREAK section

  • outDirTest (pathlib path) – path output directory (where to save the figures)

  • simHash (str) – com1DFA simulation id

  • simDFrow (pandas object) – com1DFA simulation rox coresponding to simHash

Returns

  • hErrorL2Array (numpy array) – L2 error on Flow thickness for saved time steps

  • hErrorLMaxArray (numpy array) – LMax error on Flow thickness for saved time steps

  • vErrorL2Array (numpy array) – L2 error on flow velocity for saved time steps

  • vErrorLMaxArray (numpy array) – LMax error on flow velocity for saved time steps

  • tSave (float) – time corresponding the errors