ogs5py.fileclasses.PQCdat
- class ogs5py.fileclasses.PQCdat(**OGS_Config)[source]
Bases:
ogs5py.fileclasses.base.LineFile
Class for the ogs PHREEQC dat file.
- Parameters
Notes
This is just handled as a line-wise file. You can access the data by line with:
PQCdat.lines
- Keyword documentation:
https://ogs5-keywords.netlify.com/ogs/wiki/public/doc-auto/by_ext/pqc
- Reading routines:
https://github.com/ufz/ogs5/blob/master/FEM/rf_react.cpp#L2136
- Attributes
Methods
add_copy_link
(path[, symlink])Add a link to copy a file instead of writing.
check
([verbose])Check if the given text-file is valid.
Remove a former given link to an external file.
Get the OGS file class name.
read_file
(path[, encoding, verbose])Read an existing OGS input file.
reset
()Delete every content.
save
(path)Save the actual line-wise file in the given path.
Write the actual OGS input file to the given folder.
- add_copy_link(path, symlink=False)
Add a link to copy a file instead of writing.
Instead of writing a file, you can give a path to an existing file, that will be copied/linked to the target folder.
- check(verbose=True)
Check if the given text-file is valid.
- del_copy_link()
Remove a former given link to an external file.
- get_file_type()
Get the OGS file class name.
- read_file(path, encoding=None, verbose=False)
Read an existing OGS input file.
- reset()
Delete every content.
- save(path)
Save the actual line-wise file in the given path.
- Parameters
path (str) – path to where to file should be saved
- write_file()
Write the actual OGS input file to the given folder.
Its path is given by “task_root+task_id+file_ext”.