ScriptOutput.exe

ScriptOutput.exe is a console program that lets you output DIC results to a text file.

The program is located under the “scriptout” folder.

The first input argument to ScriptOutput.exe is a text-based input file (Not the DIC input file!). The description of the input file will be given here.

Here is an example of the input file for ScriptOutput.exe:

//*DicInp               C:\Experiments\2014\2014_03\2014_03_13\A31\dic25\input.txt
*DicInp                 C:\Experiments\2014\20140206\test2_20140206_141932\dic_aug2014\input.txt
*OutFile                log
*FrameId
*CorrId
//*Delim                        ": "
*Delim                  Structured(20)
*Log                    Force
*NodeLoc                0               0
*NodeLoc                0               1
*NodeDisp               0               0
*NodeDisp               0               1
*Strain                 0               0
*Vector                 elm(22,0.5,0.5)         node(30)
//*Vector               node(22)                node(30)
*Vector3D               node(22)                node(30)

Note

All keywords should start with a *. Thus, all lines that do not start with a * is disregarded.

ScriptOutput can be run with the following command in windows command window:

ScriptOutput c:\path\to\script\inputfile.txt

If you want to make a batch file (*.bat) with multiple ScriptOutput-commands it is preferred to do it like this:

ScriptOutput c:\path\to\script\inputfile1.txt flag(noConsoleRead)
ScriptOutput c:\path\to\script\inputfile2.txt flag(noConsoleRead)
ScriptOutput c:\path\to\script\inputfile3.txt flag(noConsoleRead)
ScriptOutput c:\path\to\script\inputfile4.txt flag(noConsoleRead)
...
...

The argument “flag(noConsoleRead)” prevents the program to wait for the user to press ‘Enter’ before exiting

KeyWords

The following keywords can be used in a ScriptOutput-inputfile.

DicInp

The DIC input file to collect data from 1. argument: The full path to the DIC input file

OutFile

The output text file that will be written by ScriptOutput.exe 1. argument: The path to the output file that will be written (Note: If the file already exist, it will be overwritten)

FrameId

Generates a column in the output-file of the frame id in the DIC analysis. The frame Id is the index seen in the image file names.

CorrId

Generates a column in the output-file of the correlation id in the DIC analysis. The correlation Id is a counter starting at 0 and increases by 1 for each image in the DIC input file.

Delim

This keyword controls the delimiter between each value in a row in the output file. The 1. argument is the character or string that you will use as delimiter. If you want to use a delimiter containing empty/space characters use “” (Example: ”, ”). If you write “Structured(20)” as the 1. argument, each column in the output file will have 20 characters of width.

Log

Generates a column in the output-file of any parameters in the Log-file defined in the DIC Input file. The first argument is the name of the parameter in the log-file. For instance, if you have a parameter in the log-file called “Force”, you can write “Force” (witout the “”) as 1. argument.

NodeLoc

Generates a column in the output file of the node location (x or y) in pixels of a specified node.

1. argument: The node Index

2. argument: The axis (0 = x, 1 = y)

NodeDisp

Generates a column in the output file of the node displacement (x or y) in pixels of a specified node.

1 argument: The node Index

2 argument: The axis (0 = x, 1 = y)

Strain

Generates a column in the output file of the strain of a specified element.

1. argument: The element index

2. argument: The strain type:

        0 = 1. principal strain
        1 = 2. principal strain
        2 = 3. principal strain
        3 = Effective strain
        4 = 1.principal strain angle in degrees
        5 = 2.principal strain angle in degrees
        6 = Infinitesimal strain (e_xx)
        7 = Infinitesimal strain (e_xy)
        8 = Infinitesimal strain (e_yx)
        9 = Infinitesimal strain (e_yy)
        10 = Rotationless strain (e_xx)
        11 = Rotationless strain (e_xy)
        12 = Rotationless strain (e_yx)
        13 = Rotationless strain (e_yy)
        14 = Green strain (e_xx)
        15 = Green strain (e_xy)
        16 = Green strain (e_yx)
        17 = Green strain (e_yy)

Vector

Generates a column in the output file of the length of a vector in pixels. You have to specify two arguments for this keyword, that is the location of the endpoints of the vector. The end points can eiter be defined in a node, i.e. node(nodeIndex), or in an element, i.e. elm(elementIndex, normalizedCoordinateHorizontal, normalizedCoordinateVertical). The normalized coordinate for the element has the range from 0 to 1, i.e. elm(22, 0.5, 0.5) means the center of element with index 22.

NodeLoc3D

Generates a column in the output file of the node location (X, Y or Z) in millimeters of a specified node.

1. argument: The node Index

2. argument: The axis (0 = X, 1 = Y, 2 = Z)

NodeDisp3D

Generates a column in the output file of the node displacement (x or y) in millimeters of a specified node.

1 argument: The node Index

2 argument: The axis (0 = X, 1 = Y, 2 = Z)

Strain3D

Generates a column in the output file of the strain (calculated from the 3D locations and displacements) of a specified element.

1. argument: The element index

2. argument: The strain type:

        0 = 1. principal strain
        1 = 2. principal strain
        2 = 3. principal strain
        3 = Effective strain
        4 = 1.principal strain angle in degrees (Not Implemented!)
        5 = 2.principal strain angle in degrees (Not Implemented!)
        6 = Infinitesimal strain (e_xx) (Not Implemented!)
        7 = Infinitesimal strain (e_xy) (Not Implemented!)
        8 = Infinitesimal strain (e_yx) (Not Implemented!)
        9 = Infinitesimal strain (e_yy) (Not Implemented!)
        10 = Rotationless strain (e_xx) (Not Implemented!)
        11 = Rotationless strain (e_xy) (Not Implemented!)
        12 = Rotationless strain (e_yx) (Not Implemented!)
        13 = Rotationless strain (e_yy) (Not Implemented!)
        14 = Green strain (e_xx)
        15 = Green strain (e_xy)
        16 = Green strain (e_yx)
        17 = Green strain (e_yy)

Vector3D

Generates a column in the output file of the length of a vector in millimeters (calculated from the 3D displacements and locations). You have to specify two arguments for this keyword, that is the location of the endpoints of the vector. The end points can eiter be defined in a node, i.e. node(nodeIndex), or in an element, i.e. elm(elementIndex, normalizedCoordinateHorizontal, normalizedCoordinateVertical). The normalized coordinate for the element has the range from 0 to 1, i.e. elm(22, 0.5, 0.5) means the center of element with index 22.