Skip to content

Commit

Permalink
add specific_body_force keyword to processes
Browse files Browse the repository at this point in the history
  • Loading branch information
joergbuchwald committed Jun 24, 2024
1 parent 0442c1e commit 1588edc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ogs6py/classes/processes.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
<tag>value</tag> in process section
Expand All @@ -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])
Expand Down

0 comments on commit 1588edc

Please sign in to comment.