Skip to content
Snippets Groups Projects
MolDyn-v1.rst 1.19 KiB
Newer Older
.. algorithm::

.. summary::

.. alias::

.. properties::

Description
-----------

Dan Nixon's avatar
Dan Nixon committed
This algorithm is used to load and process simualtion data from the nMOLDYN
package.
Dan Nixon's avatar
Dan Nixon committed
Currently this supports loading the ``.cdl`` and ``.dat`` files created by
version 3 of nMOLDYN (using the :ref:`LoadNMoldyn3Ascii
<algm-LoadNMoldyn3Ascii>` algorithm).
Dan Nixon's avatar
Dan Nixon committed
When loading from a ``.cdl`` file from nMOLDYN 3 one or multiple functions can
be loaded, when loading a single function an instrument resolution workspace can
be provided which the loaded function is convoluted with to allow comparison
with actual instrument data.

When loading from a ``.dat`` file from nMOLDYN 3 function selection and
convolution with an instrument resolution are unavailable.
Dan Nixon's avatar
Dan Nixon committed
Workflow
========

.. diagram:: MolDyn-v1_wkflw.dot

Usage
-----

.. include:: ../usagedata-note.txt

Dan Nixon's avatar
Dan Nixon committed
**Example - Loading a simulation from a CDL file.**

.. testcode:: ExLoadCDLFile

Dan Nixon's avatar
Dan Nixon committed
    out_ws_group = MolDyn(Data='NaF_DISF.cdl',
Dan Nixon's avatar
Dan Nixon committed
                          Functions=['Fqt-total', 'Sqw-total'])

    for ws_name in out_ws_group.getNames():
      print ws_name

Output:

.. testoutput:: ExLoadCDLFile

Dan Nixon's avatar
Dan Nixon committed
    NaF_DISF_Fqt-total
Dan Nixon's avatar
Dan Nixon committed
    NaF_DISF_Sqw-total

.. categories::