PHYEX 0.9.5
PHYsique EXternalisée
Loading...
Searching...
No Matches
pyphyex.phyex1d.experiment_runner Namespace Reference

Classes

class  ExperimentRunner
class  _ExistingResult
class  ExistingResults

Functions

 var_legend (var, mfactor)
 string2filename (string)
 physics_options (cls)
 list_experiments (output_dir='.', comp_name=DEFAULT_COMP_NAME)

Variables

str DEFAULT_CLASS = 'PhysicsAromeTQ'
dict PHYSICS_CLASSES
str DEFAULT_COMP_NAME = 'phyex1dcomp'
tuple RUNNER_ARGUMENTS = ('dt', 'method', 'name', 'tag', 'case', 'grid', 'attrs')
dict BUDGET_UNITS = {'U': 'm s-2', 'V': 'm s-2', 'W': 'm s-2', 'TH': 'K s-1', 'TKE': 'm2 s-3'}

Detailed Description

ExperimentRunner is the main object of the phyex1d package; it deals with the execution

Function Documentation

◆ list_experiments()

pyphyex.phyex1d.experiment_runner.list_experiments ( output_dir = '.',
comp_name = DEFAULT_COMP_NAME )
Existing results of a comparison
:param output_dir: output directory
:param comp_name: comparison name
:return: list of tuples (experiment name, physics class, result file); the name and
         class are '?' for results produced by older versions

Definition at line 140 of file experiment_runner.py.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ physics_options()

pyphyex.phyex1d.experiment_runner.physics_options ( cls)
Options of a physics class: the arguments of its constructor having a default
value, except the ones set by ExperimentRunner
:param cls: physics class
:return: dictionary {option name: default value}

Definition at line 63 of file experiment_runner.py.

◆ string2filename()

pyphyex.phyex1d.experiment_runner.string2filename ( string)
Tag (usable in file names) corresponding to a comparison or an experiment name:
quotes are removed, spaces and slashes are replaced by underscores

Definition at line 55 of file experiment_runner.py.

Here is the caller graph for this function:

◆ var_legend()

pyphyex.phyex1d.experiment_runner.var_legend ( var,
mfactor )
String used in the plot legends for a variable (replaces the PPPYComp method to
deal with the budget variables)
:param var: name of the variable
:param mfactor: multiplying factor applied to data

Definition at line 39 of file experiment_runner.py.

Variable Documentation

◆ BUDGET_UNITS

dict pyphyex.phyex1d.experiment_runner.BUDGET_UNITS = {'U': 'm s-2', 'V': 'm s-2', 'W': 'm s-2', 'TH': 'K s-1', 'TKE': 'm2 s-3'}

Definition at line 36 of file experiment_runner.py.

◆ DEFAULT_CLASS

str pyphyex.phyex1d.experiment_runner.DEFAULT_CLASS = 'PhysicsAromeTQ'

Definition at line 20 of file experiment_runner.py.

◆ DEFAULT_COMP_NAME

str pyphyex.phyex1d.experiment_runner.DEFAULT_COMP_NAME = 'phyex1dcomp'

Definition at line 30 of file experiment_runner.py.

◆ PHYSICS_CLASSES

dict pyphyex.phyex1d.experiment_runner.PHYSICS_CLASSES
Initial value:
1= {'PhysicsAromeTQ': PhysicsAromeTQ,
2 'PhysicsAromeThetaR': PhysicsAromeThetaR,
3 'SimplePhysicsTQ': SimplePhysicsTQ,
4 'SimplePhysicsThetaR': SimplePhysicsThetaR}

Definition at line 23 of file experiment_runner.py.

◆ RUNNER_ARGUMENTS

tuple pyphyex.phyex1d.experiment_runner.RUNNER_ARGUMENTS = ('dt', 'method', 'name', 'tag', 'case', 'grid', 'attrs')

Definition at line 33 of file experiment_runner.py.