Updated Mesh Input And Output (markdown)
authorLuca Heltai <luca.heltai@sissa.it>
Thu, 8 Nov 2018 21:33:11 +0000 (22:33 +0100)
committerLuca Heltai <luca.heltai@sissa.it>
Thu, 8 Nov 2018 21:33:11 +0000 (22:33 +0100)
Mesh-Input-And-Output.md

index 26e53b2..97abc51 100644 (file)
@@ -671,7 +671,7 @@ However, there `cubit.get_block_hexes(block_id)` does not return anything other
 By contrast the script verified to work with `Cubit v15.2` includes this logic as the bug has been corrected in later versions of the software. 
 
 The following version of the above script, instead, produces a VTK file:
-```
+```python
 #!python
 #!python
 # This script will output whatever mesh you have currently in CUBIT
@@ -965,3 +965,7 @@ if True:
     print n_quads, "quads"
     print n_edges, "edges"
 ```
+In principle, it should be possible to add a shortcut in a Custom Toolbar to load the script into memory. Then when you are
+ready to export, you can type the following command in the script tab:
+
+       saveVTK("filename.vtk")
\ No newline at end of file

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.