|  |  | There are two ways to output the mpio format from Ansa, with or without GUI. | 
|  |  | There are two ways to output the mpio format from Ansa, with or without GUI. | 
|  |  |  | 
|  |  | ## Using the GUI | 
|  |  |  | 
|  |  | **Ansa2mpio.py** is set to create a button in the Ansa User Script Button. Addtionally, it can be modified to use it with the options explained in [Running-Python-scripts-in-Ansa](Ansa-tools-documentation/Running-Python-scripts-in-Ansa). | 
|  |  |  | 
|  |  | #### USF button | 
|  |  |  | 
|  |  | In this case, a symbolik link has to be added to your Ansa installation folder. | 
|  |  | ``` | 
|  |  | cd /path/ansa/intalation/folder/scripts/CFD/ | 
|  |  | ln -fs /path/to/stranger-tools/Ansa/Ansa2mpio/Ansa2mpio.py Ansa2mpio.py | 
|  |  | ``` | 
|  |  | Then edit the file which reads these functions. | 
|  |  | ``` | 
|  |  | cd /path/ansa/intalation/folder/config/ | 
|  |  | vi CFD_TRANSL.py | 
|  |  | ``` | 
|  |  | Finally add the following lines. | 
|  |  | ``` | 
|  |  | ##Alya | 
|  |  | import Ansa2mpio | 
|  |  | ``` | 
|  |  | #### As python script | 
|  |  | This option is much more tedious because every time you start a session in Ansa you have to reload it. That is why I discourage it. In any case, it is explained what to do if you want to use this route. | 
|  |  |  | 
|  |  | First edit **Ansa2mpio.py** and comment the following lines: | 
|  |  | ``` | 
|  |  | linked_folder = os.path.dirname(__file__) | 
|  |  | path = os.readlink(str(linked_folder) + '/Ansa2mpio.py') | 
|  |  | ansa2mpio_folder = os.path.dirname(path) | 
|  |  |  | 
|  |  | @session.defbutton('ALYA', 'Ansa2mpio', 'Output the MPIIO Alya format') | 
|  |  | ``` | 
|  |  |  | 
|  |  | ## From the terminal | 
|  |  |  | 
|  |  | The tool for this purpose is nogui_Ansa2mipo.py and is located in the Ansa/Ansa2mpio folder. An explanation to how to run python tools can be found in [Running-Python-scripts-in-Ansa](Ansa-tools-documentation/Running-Python-scripts-in-Ansa). | 
|  |  | Before running the case, we have to edit the input data file nogui_input.dat located in Ansa/Ansa2mpio/Auxiliaries is an example. This must content the setting of your case. All options are listed and explained below. | 
|  |  | The tool for this purpose is **nogui_Ansa2mpio.py** and is located in the **Ansa/Ansa2mpio** folder. An explanation to how to run python tools can be found in [Running-Python-scripts-in-Ansa](Ansa-tools-documentation/Running-Python-scripts-in-Ansa). | 
|  |  |  | 
|  |  | Before running the case, we have to edit the input data file **nogui_input.dat**. Located in **Ansa/Ansa2mpio/Auxiliaries** is an example. This must content the setting of your case. All options are listed and explained below. | 
|  |  |  | 
|  |  | ``` | 
|  |  | ansafile = /path/to/ansa/file.ansa | 
| ... | ... | @@ -67,9 +101,9 @@ checkInt8 | 
|  |  |  | 
|  |  | **checkSurface**: Option to write surface meshes. | 
|  |  |  | 
|  |  | **check2D**: Option to specify that the surface is 2 dimensional. In case this option is enabled the plane which contains the mesh should by specified by the keywords **planeXY**, **planeYZ** or **planeZX**. | 
|  |  | * **check2D**: Option to specify that the surface is 2 dimensional. In case this option is enabled the plane which contains the mesh should by specified by the keywords **planeXY**, **planeYZ** or **planeZX**. | 
|  |  |  | 
|  |  | **check3D**: Option to specify that the surface is 3 dimensional. | 
|  |  | * **check3D**: Option to specify that the surface is 3 dimensional. | 
|  |  |  | 
|  |  | **checkDat**: Write the .dom.dat Alya file. | 
|  |  |  | 
| ... | ... | @@ -97,25 +131,25 @@ checkInt8 | 
|  |  |  | 
|  |  | **checkCharacteristics**: Write the elements characteristics in mpio format. | 
|  |  |  | 
|  |  | **characteristicSET**: Set ID for the elements characteristics. | 
|  |  | * **characteristicSET**: Set ID for the elements characteristics. | 
|  |  |  | 
|  |  | **checkCsys**: Write the elements local coordinate system in mpio format. | 
|  |  |  | 
|  |  | **checkLMAST**: Write the periodic nodes in mpio format. | 
|  |  |  | 
|  |  | **checkperPID**: Option that specify that the periodic nodes have to be collected from PID's. | 
|  |  | * **checkperPID**: Option that specify that the periodic nodes have to be collected from PID's. | 
|  |  |  | 
|  |  | **checkperSET**:  Option that specify that the periodic nodes have to be collected from SET's | 
|  |  | * **checkperSET**:  Option that specify that the periodic nodes have to be collected from SET's | 
|  |  |  | 
|  |  | **MasterSET**: List of master PID's or SET's number, space separated. | 
|  |  | * **MasterSET**: List of master PID's or SET's number, space separated. | 
|  |  |  | 
|  |  | **ChildSET**: List of child PID's or SET's number, space separated. In case this option is enabled the plane which contains the nodes should by specified by the keywords **checkXY**, **checkYZ** or **checkZX**. | 
|  |  | * **ChildSET**: List of child PID's or SET's number, space separated. In case this option is enabled the plane which contains the nodes should by specified by the keywords **checkXY**, **checkYZ** or **checkZX**. | 
|  |  |  | 
|  |  | **checkWitness**: Option to write withnes points. | 
|  |  |  | 
|  |  | **checkZeroThincknessWall**. Option to duplicate nodes at zero thickness walls. | 
|  |  |  | 
|  |  | **interfaces**: List of PID's number which nodes will duplicate. | 
|  |  | * **interfaces**: List of PID's number which nodes will duplicate. | 
|  |  |  | 
|  |  | **checkRenumber**: Option to renumber nodes and elements in proper Alya numbering. | 
|  |  |  | 
| ... | ... | @@ -133,8 +167,9 @@ checkInt8 | 
|  |  |  | 
|  |  | **checkSCale**: Enables mesh scaling. | 
|  |  |  | 
|  |  | **scaleFactor**: Factor for mesh scaling if scaling is enable. | 
|  |  | * **scaleFactor**: Factor for mesh scaling if scaling is enable. | 
|  |  |  | 
|  |  | **checkInt4**: Write the mesh using int4. | 
|  |  |  | 
|  |  | **checkInt8**: Write the mesh using int8. | 
|  |  | \ No newline at end of file | 
|  |  | **checkInt8**: Write the mesh using int8. | 
|  |  |  | 
|  |  | \ No newline at end of file |