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

don't know whats the right structure for Snakemake. this is nothing but a try (and error)

parent 55fb8e14
No related branches found
No related tags found
No related merge requests found
from snakemake.utils import validate
from ntrfc.preprocessing.geometry_creation.profile_pointcloud import hello
configfile : "casesettings.yml"
validate("config","config.schema.yaml")
rule from_pointcloud:
input:
"00_resources/profile_pointcloud.txt"
output:
"01_geometry/ssPoly.pkl", "01_geometry/psPoly.pkl"
run:
hello
rule from_naca_generator:
# input:
# "input/helloworld.txt"
# output:
# "output/heythere.txt"
shell:
"python helloworld.py"
rule create_parsec_generator:
# input:
# "input/helloworld.txt"
# output:
# "output/heythere.txt"
shell:
"python helloworld.py"
blade:
algorithm: "from_pointcloud"
ptcloud_profile: "00_Ressources/profile_pointcloud.txt" #Name of the pointcloud-file
ptcloud_profile_unit: "mm" #m vs mm
geometry:
pitch : 0.0765 #Pitch [m]
alpha : 0.01 #Geometric parameter used for hull-calculations
midline_tolerance : 5 #Tolerance coefficient for midline-generation
x_inlet : -0.13 #Shift Inlet along x [m]
x_outlet : 0.26 #Shift Outlet along x [m]
shift_domain : 0.015 #Shift Domain to have probes inside domain [m]
$schema: "http://json-schema.org/draft-06/schema#"
description: Config file for the parPE snakemake optimization workflow
type: dict
properties:
blade:
type: dict
description: settings for the generation of the profile-splines
properties:
algorithm:
type: string
description: definition of the generation-algorithm (from_pointcloud, nacagen, parsecgen)
ptcloud_profile:
type: string
description: in case from_pointcloud is picked, one has to define a path to the pointcloudfile
ptcloud_profile_unit:
type: string #m vs mm
description: in case from_pointcloud is picked, one has to define the right unit (a default-value for m should be defined)
alpha:
type: string #Geometric parameter used for hull-calculations
description: an alpha-value for the alphashape has to be defined
geometry:
type: dict
properties:
pitch:
type: string #Pitch [m]
description: the pitch of the cascade-blades has to be defined
x_inlet:
type: string
description: position of the inlet x-position has to be defined. LE is the zeroposition
x_outlet:
type: string
description: position of the outlet x-position has to be defined. LE is the zeroposition
shift_domain:
type : string
description: shift the blade in the domain, so that probes can be placed in the passage-midline
required:
- blade
- geometry
def hello():
print("hello")
configfile : "casesettings.yml"
rule from_pointcloud: rule from_pointcloud:
# input: # input:
# "input/helloworld.txt" # "input/helloworld.txt"
...@@ -14,6 +16,7 @@ rule from_naca_generator: ...@@ -14,6 +16,7 @@ rule from_naca_generator:
shell: shell:
"python helloworld.py" "python helloworld.py"
rule create_parsec_generator: rule create_parsec_generator:
# input: # input:
# "input/helloworld.txt" # "input/helloworld.txt"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment