rest

    The rest macro controls the content and format of the initial condition file.

    FEHM writes a restart file for each run. The restart output file name may be given in the input control file or as terminal input, or if unspecified will default to fehmn.fin. The restart file is used on a subsequent runs by providing the name of the file. It is recommended that the restart input file name be modified to avoid confusion with the restart output file. For example, by changing the suffix to .ini, the default restart output file, fehmn.fin would be renamed fehmn.ini. Values from the restart file will overwrite any variable initialization prescribed in the input file. The initial time of simulation will also be taken from the restart file unless specified in the macro time input.

    Keywords can be used to define the restart and final condition files. Use 'rsti:' filename and/or 'rsto:' filename. For example,

    rsti:  input/doe.ini
    will use the file "input/doe.ini" as a restart file.


    • Group 1 - CHDUM
    Input Variable Format Description
    CHDUM character*80 Keyword(s). Keywords are entered one per line and terminated with ‘end’ or a blank line.

    Keywords are entered one per line and terminated with ‘end’ or a blank line.

    Two keywords ‘read’ and ‘write’ are followed by a list of variables; all others stand alone.

    Valid keywords (case insensitive) are:

    • Keywords that control format:
      • ‘ascii’ - both read and write restart files are ascii (default)
      • ‘binary’ - both read and write restart files are unformatted
      • ‘rbinary’ - unformatted read restart file
      • ‘wbinary’ - unformatted write restart file
      • ‘old’ use old format (input / output format and content is hard-wired)
      • ‘new’ use new format (input / output format and content is controlled by restart macro keywords)
    • Keywords that control flux output:
      • ‘noflux’ - do not output flux
      • ‘flux’ - output liquid and vapor flux
      • ‘lflux’ - output liquid flux
      • ‘vflux’ - output vapor flux
    • Keywords that control the list of variables to read / write (default is to read all variables in restart file; write all variables in current simulation)
      • ‘read’ (followed by list of variables, on same line)
      • ‘write’ (followed by list of variables, on same line)

    Possible read/write variables:

    • none
    • all
    • temp
    • pres
    • poro
    • trac
    • ptrk
    • gasp
    • pini
    • saturation
    • co2
    • mass
    • disp (disx, disy, disz)
    • strs or stre or strs (strx, stry, strz, stxy, stxz, styz)


    The following is an example of rest. In this example restart data will be written to an unformatted file and liquid flux will be output. If a read restart file is used it will be in ascii format and if liquid flux data is present in the file it will be read.

    rest
    wbinary
    lflux
     


    © Copyright 2018, Los Alamos National Laboratory