ana1Tests.simiSolTest.analyzeResults¶
- analyzeResults(avalancheDir, fieldsList, timeList, solSimi, fieldHeader, cfgMain, cfgSimi, outDirTest, simHash, simDFrow)[source]¶
Compare analytical and com1DFA results :Parameters: * avalancheDir (pathlib path) – path to avalanche directory
fieldsList (list) – list of fields dictionaries
timeList (list) – list of time steps
solSimi (dictionary) –
- similarity solution:
time: time array (without dimension) time: time array (with dimension) g_sol: g array g_p_sol: first derivativ of g array f_sol: f array f_p_sol: first derivativ of f array
fieldHeader (dict) – header dictionary with info about the extend and cell size
cfgMain (dict) – main confguration
cfgSimi (dict) – simisol confguration including SIMISOL section
outDirTest (pathlib path) – path output directory (where to save the figures)
simHash (str) – com1DFA simulation id
- 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