Skip to content

Commit

Permalink
Added XY-periodic boundary condition
Browse files Browse the repository at this point in the history
  • Loading branch information
Ruben Horn committed Nov 27, 2024
1 parent 708d9e0 commit f3fe587
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tools/mamico-cfg-src/assets/configuration_template.json
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,9 @@
"selected": true,
"value": "reflecting"
},
{
"value": "XY-periodic"
},
{
"value": "periodic"
}
Expand Down
5 changes: 5 additions & 0 deletions tools/mamico-cfg-src/generators/boundary.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ def apply(partial_xml, get_config_value) -> None:
boundary_condition_xml = """
<particle-insertion type="none" />
<boundary-force type="none" west="no" east="no" north="no" south="no" bottom="no" top="no" density="0.81" temperature="1.1"/>
""".strip()
elif boundary_condition == "XY-periodic":
boundary_condition_xml = """
<particle-insertion type="none" />
<boundary-force type="zhou-boundary-force" west="no" east="no" north="no" south="no" bottom="yes" top="yes" density="0.81" temperature="1.1" />
""".strip()
else:
raise ValueError(f'Invalid boundary condition "boundary_condition"')
Expand Down

0 comments on commit f3fe587

Please sign in to comment.