Contents: VMoveCAE Help Contents Prev: Tutorials - Batch Execution  VCollab Logo

Translation Parameter Files

 

VMoveCAE can read the translation parameters from a file and use it for translation.  The translation parameters can include the locations of the model, results and cax files, settings for different features that user wants to create as well as the translation and filtering information of different parts, results and features.  VMoveCAE supports both text and xml formatted translation files.  These formats are explained in the below sections.

 

Text file format

 

The file format for specifying the translation parameters differs slightly in VMoveCAE to the format of VMoveCAE 2006.  A sample parameters file is shown in the following table.  The format is quite self-explanatory.

 

##########################################################################

#                                                                        

# VMoveCAE - Creates cax files from native CAE files                

# Copyright (C) 2008-13 Visual Collaboration Technologies Inc.               

#                                                                        

##########################################################################

 

[VMoveCAE]

    version = 2.0

 

    [translation]

        model file = "E:\Test\Ansys\new_file.rst"

        output file = "E:\Test\Ansys\new_file.cax"

 

        [defaults]

            parts = translate                             # translate unspecified parts

            results = filter                                 # filter unspecified results

        []

        [preferences]

            mid-nodes = turn on

        []

        [part]

            name = Head

            filter = true                                  # this is equivalent to “translate = true"

        []

        [result]

            name = Displacement

            instances = 3-6

            translate = true

        []

        [instance]

            id = 4

            results = Displacement, Stress

            translate = true

        []

        [feature-edge]

            name = Head

            angle = 60

            translate = true

        []

        [cut-section]

            plane equation = "X=50"

            translate = true

        []

        [cut-section]

            plane equation = "Y=5"

            translate = false

        []

        [iso-surface]

            result = Strain Energy

            value = 10

            translate = true

        []

        [iso-surface]

            result = Stress

            derived type = Von Mises

            value = 20

            translate = true

        []

    []

[]

 

VMoveCAE can also read and process the files generated by VMoveCAE 2006.  One thing to note during the use of translation parameters files generated by VMoveCAE 2006, the output file extension is specified as vcz.  VMoveCAE automatically modifies this into .cax.  For details on the translation parameters file format used by VMoveCAE 2006, please refer to VMoveCAE 2006 documentation.

 

XML file format

 

A sample xml file is shown below..

 

<?xml version="1.0" encoding="utf-8" ?>

<!-- VMoveCAE - Creates cax files from native CAE files -->

<!-- Copyright (C) 2008-13 Visual Collaboration Technologies Inc. -->

<VMoveCAE>

    <attribute key="version" value="2.0" />

    <translation>

        <attribute key="model file" value="E:\Test\Ansys\new_file.rst" />

        <attribute key="output file" value="E:\Test\Ansys\new_file.cax" />

 

        <defaults>

            <attribute key="parts" value="translate" />

            <attribute key="results" value="filter" />

        </defaults>

 

        <preferences>

            <attribute key="mid-nodes" value="turn on" />

        </preferences>

 

        <part>

            <attribute key="name" value="Head" />

            <attribute key="filter" value="true" />

        </part>

        <result>

            <attribute key="name" value="Displacement" />

            <attribute key="instances" value="3-6" />

            <attribute key="translate" value="true" />

        </result>

        <instance>

            <attribute key="id" value="4" />

            <attribute key="results" value="Displacement, Stress" />

            <attribute key="translate" value="true" />

        </instance>

        <feature-edge>

            <attribute key="name" value="Head" />

            <attribute key="angle" value="60" />

            <attribute key="translate" value="true" />

        </feature-edge>

        <cut-section>

            <attribute key="plane equation" value="X=50" />

            <attribute key="translate" value="true" />

        </cut-section>

        <cut-section>

            <attribute key="plane equation" value="Y=5" />

            <attribute key="translate" value="false" />

        </cut-section>

        <iso-surface>

            <attribute key="result" value="Strain Energy" />

            <attribute key="value" value="10" />

            <attribute key="translate" value="true" />

        </iso-surface>

        <iso-surface>

            <attribute key="result" value="Stress" />

            <attribute key="derived type" value="Von Mises" />

            <attribute key="value" value="20" />

            <attribute key="translate" value="true" />

        </iso-surface>

    </translation>

</VMoveCAE>