コード例 #1
0
"""

import argparse
import os

import matplotlib.pyplot as plt

from HbO2.plot.diffusiveinteraction import DiffusiveInteractionParameterStudyPlotter
from HbO2.plot.styles import set_COSH_rc_params
from HbO2.postprocess.factory.case import load_settings_file
from HbO2.postprocess.parameterstudy import ParameterStudyPostProcessor
from HbO2.setup.parameterStudy import ParameterStudyFactory
from plot.figureoptions import FigureOptions
from plot.utils import annotate_axis_corner

set_COSH_rc_params()

path_to_parameter_studies = "/local/aluecker/OpenFOAM/aluecker-2.3.0/run/cbf/HbO2/eulerGraph/COSH/straightCapillaryArray/diffusiveInteraction"

studies = ["domainHeightStudy", "M0Study", "RBCVelocityStudy", "LDMeanStudy"]
annotations = ['A', 'B', 'C', 'D']

parser = argparse.ArgumentParser()
parser.add_argument('--paramFile',
                    help='Path to parameter study file',
                    default='params.json')
parser.add_argument('--methodName',
                    '-m',
                    help='Name of the plotting method to call')
parser.add_argument('--modelNames',
                    nargs='+',
コード例 #2
0
"""

import argparse
import matplotlib.pyplot as plt
from matplotlib.ticker import MultipleLocator, FormatStrFormatter
import os
import string

from HbO2.COSH.plotCOSH import COSHParamStudyPlotter
from HbO2.plot import styles
from HbO2.postprocess.factory.parameterstudy import make_param_study_post_processor
from HbO2.setup.parameterStudy import ParameterStudyFactory
from plot.figureoptions import FigureOptions
from plot.utils import annotate_axis_corner, add_panel_layout_parser_options

styles.set_COSH_rc_params()


path_to_parameter_studies = "/local/aluecker/OpenFOAM/aluecker-2.3.0/run/cbf/HbO2/eulerAxisymmetric/COSH"

studies = ["LD_U_study/paramStudyShort2_slices/paramStudyShort2_LD_0.3",
           "LD_U_study/paramStudyShort2_slices/paramStudyShort2_U_0.001",
           "sigmaSStudy",
           "O2ConsumptionStudyShort"]
annotations = string.ascii_uppercase

parser = argparse.ArgumentParser()
parser.add_argument('--paramFile',
                    help='Path to parameter study file', default='params.json')
parser.add_argument('--methodName', '-m', help='Name of the plotting method to call')
add_panel_layout_parser_options(parser)