This is a go implementation that is inspired by the Flopy package and is intended to help write out MODFLOW 6 that can be found in this repo files for model execution. This package is not intended to be run directly, but integrated into other GO programs that require MODFLOW file outputs.
The initial release will preform one activity which is to create output WEL6 and RCH files used by MODFLOW 6.
The initial release will create WEL and RCH files in MODFLOW 6 format. New releases will seek to be able to support all the model files and download and execute the code to run the model.
The MODFLOW 6 files conform to follow the following document MODFLOW 6 Description of Input/Output
To use the package the entry function is the Input
function in the "input.go" file. This function will create any of the
files (WEL or RCH). The function includes the follow requirements for arguments:
Input is a function that returns and error but otherwise creates a file of a MODFLOW WEL or RCH file in the local directory. Data must be passed as a slice of interface{} with the Date(), Node(), Value(), and RowCol() methods.
- WEL => boolean if you want to make a wel file
- RCH => boolean if you want to make a RCH file
- Rc => boolean if you want to use row - column format (true) in list files or node (false)
- fileName => string file name of the file
- data => the data needs to be in a struct and include Data, Node, Value methods, but also rowColumn() method if Rc == true
- path => a string path of where to save the file
- mDesc => a string of the model description for the file header
- modelStartDate => the start date of the model in a time.Time format.