.. _sec.cli: Command line interface ====================== You can run simulation from the command lines with ``DyssolC.exe``, which can be found in the installation directory. Usage: .. code-block:: shell DyssolC.exe --key[=value] [--key[=value] [...]] | +-----------------+-----------+--------------------------------------------+ | Key | Short key | Example | +=================+===========+============================================+ | \-\-script | -s | DyssolC.exe \-\-script="script.txt" | +-----------------+-----------+--------------------------------------------+ | \-\-version | -v | DyssolC.exe \-\-version | +-----------------+-----------+--------------------------------------------+ | \-\-models | -m | DyssolC.exe -m | +-----------------+-----------+--------------------------------------------+ | \-\-models_path | -mp | DyssolC.exe -m -mp="models1" -mp="models2" | +-----------------+-----------+--------------------------------------------+ | \-\-help | -h | DyssolC.exe \-\-help | +-----------------+-----------+--------------------------------------------+ ``--script`` defines a script file, and it is a required key needed to start simulation. Script is a text file describing all necessary parameters for your simulation file. Details about the script keys are described below. You can find exemplary script files in the installation directory under ``Example Scripts``. Only 3 script keys from the list are mandatory: ``SOURCE_FILE`` or ``RESULT_FILE``, ``MODELS_PATH``, and ``MATERIALS_DATABASE``. The rest are optional and will override parameters set in initial file, specified as ``SOURCE_FILE``. If ``SOURCE_FILE`` is not defined, the script should describe the entire flowsheet with all parameters, and ``RESULT_FILE`` is required. If ``RESULT_FILE`` parameter is not specified, results of the simulation will be written to a ``SOURCE_FILE``. script keys ``MODELS_PATH``, ``DISTRIBUTION_GRID``, ``UNIT``, ``STREAM``, ``UNIT_PARAMETER``, ``UNIT_HOLDUP_*``, ``EXPORT_STREAM_*``, ``EXPORT_HOLDUP_*``, ``EXPORT_UNIT_*`` can be mentioned several times in the script file, the rest should be places only once. Main ---- +--------------------+--------------------------------+--------------------------------------------------------------+ | Script key | Value | Description | +====================+================================+==============================================================+ | JOB | | Delimiter for a sequentially executed job within one script | +--------------------+--------------------------------+--------------------------------------------------------------+ | SOURCE_FILE | | Full path to a \*.dflw file with initial flowsheet | +--------------------+--------------------------------+--------------------------------------------------------------+ | RESULT_FILE | | Full path to a file where simulation results will be written | +--------------------+--------------------------------+--------------------------------------------------------------+ | MODELS_PATH | | Path to the directory with libraries of units and solvers | +--------------------+--------------------------------+--------------------------------------------------------------+ | MATERIALS_DATABASE | | Full path to the file with materials database | +--------------------+--------------------------------+--------------------------------------------------------------+ | Simulation ---------- Simulation options ^^^^^^^^^^^^^^^^^^ +------------------------------+-----------------------------------------+----------------------------------------------------------------------------------------------------------------------------+ | Script key | Value | Description | +==============================+=========================================+============================================================================================================================+ | SIMULATION_TIME | | End simulation time [s] | +------------------------------+-----------------------------------------+----------------------------------------------------------------------------------------------------------------------------+ | RELATIVE_TOLERANCE | | Global relative tolerance | +------------------------------+-----------------------------------------+----------------------------------------------------------------------------------------------------------------------------+ | ABSOLUTE_TOLERANCE | | Global absolute tolerance | +------------------------------+-----------------------------------------+----------------------------------------------------------------------------------------------------------------------------+ | MINIMAL_FRACTION | | Minimum significant fraction in MD matrices | +------------------------------+-----------------------------------------+----------------------------------------------------------------------------------------------------------------------------+ | SAVE_TIME_STEP_HINT | | Save time step hint [s] for streams | +------------------------------+-----------------------------------------+----------------------------------------------------------------------------------------------------------------------------+ | SAVE_FLAG_FOR_HOLDUPS | YES/NO | Apply save time step hint for holdups and internal streams | +------------------------------+-----------------------------------------+----------------------------------------------------------------------------------------------------------------------------+ | THERMO_TEMPERATURE_MIN | | Min of temperature range [K] where mixtures can be calculated | +------------------------------+-----------------------------------------+----------------------------------------------------------------------------------------------------------------------------+ | THERMO_TEMPERATURE_MAX | | Max of temperature range [K] where mixtures can be calculated | +------------------------------+-----------------------------------------+----------------------------------------------------------------------------------------------------------------------------+ | THERMO_TEMPERATURE_INTERVALS | | Number of intervals to calculate temperature of mixtures | +------------------------------+-----------------------------------------+----------------------------------------------------------------------------------------------------------------------------+ | INIT_TIME_WINDOW | | Initial time window [s] | +------------------------------+-----------------------------------------+----------------------------------------------------------------------------------------------------------------------------+ | MIN_TIME_WINDOW | | Min size of time window [s] | +------------------------------+-----------------------------------------+----------------------------------------------------------------------------------------------------------------------------+ | MAX_TIME_WINDOW | | Max size of time window [s] | +------------------------------+-----------------------------------------+----------------------------------------------------------------------------------------------------------------------------+ | MAX_ITERATIONS_NUMBER | | Max allowed number of iterations | +------------------------------+-----------------------------------------+----------------------------------------------------------------------------------------------------------------------------+ | WINDOW_CHANGE_RATE | | Rate of change of the time window | +------------------------------+-----------------------------------------+----------------------------------------------------------------------------------------------------------------------------+ | TERATIONS_UPPER_LIMIT | | Upper limit of iterations for adjusting time window size | +------------------------------+-----------------------------------------+----------------------------------------------------------------------------------------------------------------------------+ | ITERATIONS_LOWER_LIMIT | | Lower limit of iterations for adjusting time window size | +------------------------------+-----------------------------------------+----------------------------------------------------------------------------------------------------------------------------+ | ITERATIONS_UPPER_LIMIT_1ST | | Upper limit of iterations for adjusting time window size of the 1st window | +------------------------------+-----------------------------------------+----------------------------------------------------------------------------------------------------------------------------+ | RELAXATION_PARAMETER | | Relaxation parameter for DIRECT_SUBSTITUTION (0;1] | +------------------------------+-----------------------------------------+----------------------------------------------------------------------------------------------------------------------------+ | ACCELERATION_LIMIT | | Axxeleration parameter limit for WEGSTEIN (-5;1) | +------------------------------+-----------------------------------------+----------------------------------------------------------------------------------------------------------------------------+ | CONVERGENCE_METHOD | DIRECT_SUBSTITUTION/WEGSTEIN/STEFFENSEN | Convergence method | +------------------------------+-----------------------------------------+----------------------------------------------------------------------------------------------------------------------------+ | EXTRAPOLATION_METHOD | NEAREST_NEIGHBOR/LINEAR/CUBIC_SPLINE | Extrapolation method | +------------------------------+-----------------------------------------+----------------------------------------------------------------------------------------------------------------------------+ | Phases ^^^^^^ +------------+---------------------------------------------------------+----------------+ | Script key | Value | Description | +============+=========================================================+================+ | PHASES | SOLID/LIQUID/GAS [ SOLID/LIQUID/GAS [...]] | Defined phases | +------------+---------------------------------------------------------+----------------+ | Compounds ^^^^^^^^^ +------------+-----------------------------------+-------------------------------------------+ | Script key | Value | Description | +============+===================================+===========================================+ | COMPOUNDS | / [/ [...]] | Defined compounds from materials database | +------------+-----------------------------------+-------------------------------------------+ | Grids ^^^^^ +----------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------+ | Script key | Value | Description | +============================+======================================================================================================================================================================================================+========================================================================================================================================+ | KEEP_EXISTING_GRIDS_VALUES | YES/NO | Whether to keep grids defined in SOURCE_FILE. If set to NO, all grids are removed before applying any DISTRIBUTION_GRID. Default = YES | +----------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------+ | DISTRIBUTION_GRID | GLOBAL// SIZE/PARTICLE_POROSITY/FORM_FACTOR/COLOR/USER_DEFINED_** SYMBOLIC | Definition of a symbolic grid | +----------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------+ | DISTRIBUTION_GRID | GLOBAL// SIZE NUMERIC MANUAL/EQUIDISTANT/GEOMETRIC_INC/GEOMETRIC_DEC/LOGARITHMIC_INC/LOGARITHMIC_DEC DIAMETER/VOLUME | Definition of a numeric size grid | +----------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------+ | DISTRIBUTION_GRID | GLOBAL// PARTICLE_POROSITY/FORM_FACTOR/COLOR/USER_DEFINED_** NUMERIC MANUAL/EQUIDISTANT/GEOMETRIC_INC/GEOMETRIC_DEC/LOGARITHMIC_INC/LOGARITHMIC_DEC | Definition of a numeric non-size grid | +----------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------+ | Flowsheet structure ^^^^^^^^^^^^^^^^^^^ +---------------------+----------------------------------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------+ | Script key | Value | Description | +=====================+============================================================================================================================+===========================================================================================================================+ | KEEP_EXISTING_UNITS | YES/NO | Whether to keep units defined in SOURCE_FILE. If set to NO, all units are removed before applying any UNIT. Default = YES | +---------------------+----------------------------------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------+ | UNIT | // | Definition of a unit | +---------------------+----------------------------------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------+ | STREAM | / / / / | Definition of a stream | +---------------------+----------------------------------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------+ | Unit parameters ^^^^^^^^^^^^^^^ +----------------+---------------------------------------------------------------------------------------------------------------------------------------------+---------------------------------------------------------------------+ | Script key | Value | Description | +================+=============================================================================================================================================+=====================================================================+ | UNIT_PARAMETER | / [ [...]] | Definition of a constant/string/compound/flag/solver unit parameter | +----------------+---------------------------------------------------------------------------------------------------------------------------------------------+---------------------------------------------------------------------+ | UNIT_PARAMETER | /