Skip to content
Snippets Groups Projects
Commit 0e3ad9fe authored by Malte Nyhuis's avatar Malte Nyhuis
Browse files

validation implementation

parent 05f07dfe
No related branches found
No related tags found
No related merge requests found
......@@ -9,6 +9,7 @@ import warnings
from ntrfc.utils.dictionaries.dict_utils import setInDict
from ntrfc.utils.dictionaries.dict_utils import nested_dict_pairs_iterator
#todo: at least the next two lines have to be fixed
TEMPLATEDIR = r"D:\CodingProjects\NTRfC\ntrfc\database\case_templates"
path_to_sim=r"D:\CodingProjects\NTRfC\examples\gwk_compressor_casegeneration\01_case"
TEMPLATES = [i for i in os.listdir(TEMPLATEDIR) if os.path.isdir(os.path.join(TEMPLATEDIR, i))]
......
case_params:
case_type: "trace-compressor-cascade-ras"
parameters:
TRACE_CONTROLINPUT : nope
MESHNAME: nope
OUTFLOW_PRESSURE: nope
GLOBAL_TOLERANCE: nope
LENGTH_YPER: nope
STAGPOINT_ANNOMALLYFIX: nope
QUASIUNSTEADYMODEL: nope
WAVINESSMODEL: nope
VERSION_TWONULLNULLNINE: nope
HEATFLUXMODEL: nope
PRANDTLTURBULENT: nope
ROTATIONAL_EFF: nope
TRANSITIONMODEL: nope
VGJMODEL: nope
ACCURACY_ORDER: nope
OUTLET_MFLOW: nope
OUTLET_RADIAL_EQUI: nope
INLET_TOTAL_PRESSURE: nope
VEL_YANGLE: nope
ABS_STAGN_TEMP: nope
TURBULENTINTENSITY: nope
TURBULENTLENGTHSCALE: nope
INLET_TEMP: nope
INLET_VELX: nope
INLET_VELY: nope
INLET_VELZ: nope
OUTFLOW_TEMP: nope
OUTFLOW_PRESSURE: nope
OUTFLOW_VELX: nope
OUTFLOW_VELY: nope
OUTFLOW_VELZ: nope
LENGTH_YPER: 0.0765
$schema : "http://json-schema.org/draft-06/schema#"
description : Config file for the parPE snakemake optimization workflow
$schema: "http://json-schema.org/draft-06/schema#"
description: snakemake configuration file
properties :
case_params :
type : object
description : definition of the case and its parameterspace
type: object
case_type :
type : string
description : name of the case-template
pattern : trace-compressor-cascade-ras
properties:
case_params:
type: object
properties:
case_type:
type: string
parameters:
type: object
properties:
TRACE_CONTROLINPUT:
type: string
default: ""
OUTFLOW_PRESSURE:
type: number
default: 101350
GLOBAL_TOLERANCE:
type: number
default: 0.00000012
LENGTH_YPER:
type: number
STAGPOINT_ANNOMALLYFIX:
type: string
default: "yes_placeholder"
QUASIUNSTEADYMODEL:
type: string
default: "no_placeholder"
STAGPOINT_ANNOMALLYFIX:
type: string
default: "yes_placeholder"
QUASIUNSTEADYMODEL:
type: string
default: "yes_placeholder"
WAVINESSMODEL:
type: string
default: "no_placeholder"
VERSION_TWONULLNULLNINE:
type: string
default: "no_placeholder"
HEATFLUXMODEL:
type: string
default: "no_placeholder"
PRANDTLTURBULENT:
type: string
default: "no_placeholder"
ROTATIONAL_EFF:
type: string
default: "no_placeholder"
TRANSITIONMODEL:
type: string
default: "no_placeholder"
VGJMODEL:
type: string
default: "no_placeholder"
ACCURACY_ORDER:
type: number
default: 2
OUTLET_MFLOW:
type: number
default: 0.00035
min: 0
OUTLET_RADIAL_EQUI:
type: string
default: "no_placeholder"
INLET_TOTAL_PRESSURE:
type: number
default: 283.15
min: 0
VEL_YANGLE:
type: number
default: 0
ABS_STAGN_TEMP:
type: number
default: 300
min: 0
TURBULENTINTENSITY:
type: number
default: 0.04
min: 0
TURBULENTLENGTHSCALE:
type: number
default: 0.002
min: 0
INLET_TEMP:
type: number
default: 300
INLET_VELX:
type: number
default: 30
INLET_VELY:
type: number
default: 40
INLET_VELZ:
type: number
default: 0
OUTFLOW_TEMP:
type: number
default: 290
OUTFLOW_VELX:
type: number
default: 40
OUTFLOW_VELY:
type: number
default: 30
OUTFLOW_VELZ:
type: number
default: 0
required:
- LENGTH_YPER
required:
- case_type
- parameters
required:
- case_params
import snakemake
c = snakemake.load_configfile("casesettings.yaml")
snakemake.utils.validate(c,'config.schema.yaml')
snakemake.snakemake(snakefile="Snakefile",)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment