Source code for ogs5py.fileclasses.st.core

# -*- coding: utf-8 -*-
"""Class for the ogs SOURCE_TERM file."""
from ogs5py.fileclasses.base import BlockFile


[docs]class ST(BlockFile): """ Class for the ogs SOURCE_TERM 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 (#): - SOURCE_TERM Sub-Keywords ($) per Main-Keyword: - SOURCE_TERM - AIR_BREAKING - CHANNEL - COMP_NAME - CONSTRAINED - DISTRIBUTE_VOLUME_FLUX - EPSILON - DIS_TYPE - EXPLICIT_SURFACE_WATER_PRESSURE - FCT_TYPE - GEO_TYPE - MSH_TYPE - NEGLECT_SURFACE_WATER_PRESSURE - NODE_AVERAGING - PCS_TYPE - PRIMARY_VARIABLE - TIME_INTERPOLATION - TIM_TYPE Standard block: :PCS_TYPE: "GROUNDWATER_FLOW" :PRIMARY_VARIABLE: "HEAD" :GEO_TYPE: ["POINT", "WELL"] :DIS_TYPE: ["CONSTANT_NEUMANN", -1.0e-03] Keyword documentation: https://ogs5-keywords.netlify.com/ogs/wiki/public/doc-auto/by_ext/st Reading routines: https://github.com/ufz/ogs5/blob/master/FEM/rf_st_new.cpp#L221 See Also -------- add_block """ MKEYS = ["SOURCE_TERM"] # sorted SKEYS = [ [ "PCS_TYPE", "PRIMARY_VARIABLE", "COMP_NAME", "GEO_TYPE", "EPSILON", # new dec 2018 "DIS_TYPE", "NODE_AVERAGING", "DISTRIBUTE_VOLUME_FLUX", "NEGLECT_SURFACE_WATER_PRESSURE", "EXPLICIT_SURFACE_WATER_PRESSURE", "CHANNEL", "AIR_BREAKING", "TIM_TYPE", "TIME_INTERPOLATION", "FCT_TYPE", "MSH_TYPE", "CONSTRAINED", ] ] STD = { "PCS_TYPE": "GROUNDWATER_FLOW", "PRIMARY_VARIABLE": "HEAD", "GEO_TYPE": [["POINT", "WELL"]], "DIS_TYPE": [["CONSTANT_NEUMANN", -1.0e-03]], } def __init__(self, **OGS_Config): super().__init__(**OGS_Config) self.file_ext = ".st"