out3Plot.outAna1Plots.plotComparisonDam

plotComparisonDam(cfg, simHash, fields0, fieldsT, header, solDam, tSave, limits, outDirTest)[source]

Generate plots that compare the simulation results to the analytical solution

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

  • simHash (str) – simulation hash

  • fields0 (dict) – initial time step field dictionary

  • fieldsT (dict) – tSave field dictionary

  • header (dict) – fields header dictionary

  • solDam (dict) –

    analytic solution dictionary:
    tAna: 1D numpy array

    time array

    h0: float

    release thickness

    hAna: 2D numpy array

    Flow thickness (rows for x and columns for time)

    uAna: 2D numpy array

    flow velocity (rows for x and columns for time)

    xAna: 2D numpy array

    extent of domain in the horizontal plane coordinate system (rows for x and columns for time)

    xMidAna: 1D numpy array

    middle of the material in x dir in the horizontal plane coordinate system (used to compute the error)

  • tSave (float) – time step of analaysis

  • limits (dict) – y extend for profile plots

  • outDirTest (pathli path) – path to output directory