From 1588edcd3e183613481253c34388aaf9cc43b000 Mon Sep 17 00:00:00 2001 From: joergbuchwald Date: Mon, 24 Jun 2024 16:01:37 +0200 Subject: [PATCH] add specific_body_force keyword to processes --- ogs6py/classes/processes.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ogs6py/classes/processes.py b/ogs6py/classes/processes.py index 6870dee..8febd51 100644 --- a/ogs6py/classes/processes.py +++ b/ogs6py/classes/processes.py @@ -65,7 +65,7 @@ def set_process(self, **args): name : `str` type : `str` integration_order : `str` - darcy_gravity : `list` or `tuple` + darcy_gravity/specific_body_force : `list` or `tuple` holding darcy accelleration as vector any pair tag="value" translates to value in process section @@ -86,6 +86,8 @@ def set_process(self, **args): "axis_id",text =str(i)) self.populate_tree(self.process_baseentries["darcy_gravity"], "g",text = str(entry)) + if "specific_body_force" in args: + self.populate_tree(self.process, "specific_body_force", text=" ".join(str(x) for x in args['specific_body_force'])) for key, value in args.items(): if isinstance(value, str): self.populate_tree(self.process, key, text=args[key])