-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b9c64fa
commit 94ec5c5
Showing
1 changed file
with
99 additions
and
97 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,97 +1,99 @@ | ||
# -*- coding: utf-8 -*- | ||
""" | ||
Class for the ogs BOUNDARY CONDITION file. | ||
""" | ||
|
||
from __future__ import absolute_import, division, print_function | ||
from ogs5py.fileclasses.base import BlockFile | ||
|
||
|
||
class BC(BlockFile): | ||
""" | ||
Class for the ogs BOUNDARY CONDITION file. | ||
Parameters | ||
---------- | ||
task_root : str, optional | ||
Path to the destiny model folder. | ||
Default: cwd+"ogs5model" | ||
task_id : str, optional | ||
Name for the ogs task. | ||
Default: "model" | ||
Notes | ||
----- | ||
Main-Keywords (#): | ||
- BOUNDARY_CONDITION | ||
Sub-Keywords ($) per Main-Keyword: | ||
- BOUNDARY_CONDITION | ||
- COMP_NAME | ||
- CONSTRAINED | ||
- COPY_VALUE | ||
- DIS_TYPE | ||
- DIS_TYPE_CONDITION | ||
- EPSILON | ||
- EXCAVATION | ||
- FCT_TYPE | ||
- GEO_TYPE | ||
- MSH_TYPE | ||
- NO_DISP_INCREMENT | ||
- PCS_TYPE | ||
- PRESSURE_AS_HEAD | ||
- PRIMARY_VARIABLE | ||
- TIME_CONTROLLED_ACTIVE | ||
- TIM_TYPE | ||
Standard block: | ||
:PCS_TYPE: "GROUNDWATER_FLOW" | ||
:PRIMARY_VARIABLE: "HEAD" | ||
:DIS_TYPE: ["CONSTANT", 0.0] | ||
:GEO_TYPE: ["POLYLINE", "boundary"] | ||
Keyword documentation: | ||
https://ogs5-keywords.netlify.com/ogs/wiki/public/doc-auto/by_ext/bc | ||
Reading routines: | ||
https://github.com/ufz/ogs5/blob/master/FEM/rf_bc_new.cpp#L228 | ||
See Also | ||
-------- | ||
add_block | ||
""" | ||
|
||
MKEYS = ["BOUNDARY_CONDITION"] | ||
SKEYS = [ | ||
[ | ||
"PCS_TYPE", | ||
"PRIMARY_VARIABLE", | ||
"COMP_NAME", | ||
"GEO_TYPE", | ||
"DIS_TYPE", | ||
"TIM_TYPE", | ||
"FCT_TYPE", | ||
"MSH_TYPE", | ||
"DIS_TYPE_CONDITION", | ||
"EPSILON", | ||
"TIME_CONTROLLED_ACTIVE", | ||
"EXCAVATION", | ||
"NO_DISP_INCREMENT", | ||
"COPY_VALUE", | ||
"PRESSURE_AS_HEAD", | ||
"CONSTRAINED", | ||
] | ||
] | ||
|
||
STD = { | ||
"PCS_TYPE": "GROUNDWATER_FLOW", | ||
"PRIMARY_VARIABLE": "HEAD", | ||
"DIS_TYPE": ["CONSTANT", 0.0], | ||
"GEO_TYPE": ["POLYLINE", "boundary"], | ||
} | ||
|
||
def __init__(self, **OGS_Config): | ||
super(BC, self).__init__(**OGS_Config) | ||
self.file_ext = ".bc" | ||
self.force_writing = True | ||
# -*- coding: utf-8 -*- | ||
""" | ||
Class for the ogs BOUNDARY CONDITION file. | ||
""" | ||
|
||
from __future__ import absolute_import, division, print_function | ||
from ogs5py.fileclasses.base import BlockFile | ||
|
||
|
||
class BC(BlockFile): | ||
""" | ||
Class for the ogs BOUNDARY CONDITION file. | ||
Parameters | ||
---------- | ||
task_root : str, optional | ||
Path to the destiny model folder. | ||
Default: cwd+"ogs5model" | ||
task_id : str, optional | ||
Name for the ogs task. | ||
Default: "model" | ||
Notes | ||
----- | ||
Main-Keywords (#): | ||
- BOUNDARY_CONDITION | ||
Sub-Keywords ($) per Main-Keyword: | ||
- BOUNDARY_CONDITION | ||
- COMP_NAME | ||
- CONSTRAINED | ||
- COPY_VALUE | ||
- DIS_TYPE | ||
- DIS_TYPE_CONDITION | ||
- EPSILON | ||
- EXCAVATION | ||
- FCT_TYPE | ||
- GEO_TYPE | ||
- MSH_TYPE | ||
- NO_DISP_INCREMENT | ||
- PCS_TYPE | ||
- PRESSURE_AS_HEAD | ||
- PRIMARY_VARIABLE | ||
- TIME_CONTROLLED_ACTIVE | ||
- TIME_INTERVAL | ||
- TIM_TYPE | ||
Standard block: | ||
:PCS_TYPE: "GROUNDWATER_FLOW" | ||
:PRIMARY_VARIABLE: "HEAD" | ||
:DIS_TYPE: ["CONSTANT", 0.0] | ||
:GEO_TYPE: ["POLYLINE", "boundary"] | ||
Keyword documentation: | ||
https://ogs5-keywords.netlify.com/ogs/wiki/public/doc-auto/by_ext/bc | ||
Reading routines: | ||
https://github.com/ufz/ogs5/blob/master/FEM/rf_bc_new.cpp#L228 | ||
See Also | ||
-------- | ||
add_block | ||
""" | ||
|
||
MKEYS = ["BOUNDARY_CONDITION"] | ||
SKEYS = [ | ||
[ | ||
"PCS_TYPE", | ||
"PRIMARY_VARIABLE", | ||
"COMP_NAME", | ||
"GEO_TYPE", | ||
"DIS_TYPE", | ||
"TIM_TYPE", | ||
"FCT_TYPE", | ||
"MSH_TYPE", | ||
"DIS_TYPE_CONDITION", | ||
"EPSILON", | ||
"TIME_CONTROLLED_ACTIVE", | ||
"TIME_INTERVAL", | ||
"EXCAVATION", | ||
"NO_DISP_INCREMENT", | ||
"COPY_VALUE", | ||
"PRESSURE_AS_HEAD", | ||
"CONSTRAINED", | ||
] | ||
] | ||
|
||
STD = { | ||
"PCS_TYPE": "GROUNDWATER_FLOW", | ||
"PRIMARY_VARIABLE": "HEAD", | ||
"DIS_TYPE": ["CONSTANT", 0.0], | ||
"GEO_TYPE": ["POLYLINE", "boundary"], | ||
} | ||
|
||
def __init__(self, **OGS_Config): | ||
super(BC, self).__init__(**OGS_Config) | ||
self.file_ext = ".bc" | ||
self.force_writing = True |