Vorpal In File to XML tree structure

VorpalDOM 0.1

  • Parses Vorpal .in files to a XML DOM structure using xml.etree.ElementTree
  • Block finding functions (by type and by name)
  • Scale class to convert between grid and length coordinate systems

With a little fiddling about, python’s built in XML packages can be used to parse the vorpal .in file. xml.etree.ElementTree only needs the block titles (“” for instance) to be altered to “” and a wrapping tag added (the equivalent of an “” tag) for it to be able to parse the file.

Read More

SolidLink (CST Studio to Solidworks interface)

CST View

CST View

Sometimes the CAD features in CST Studio can be limiting especially with complex rounding. SolidWorks allows you to draw much more intricate geometries but exporting and importing .SAT files can be irritating, and parameter sweeps become very time consuming.

SolidWorks View

SolidWorks View

This macro links the parameters in CST to equations in SolidWorks and automates the .SAT link between the two programs. With the link established a parameter change in CST (and a history update from the History List diaglogue box) updates the SolidWorks model and imports the new version into CST. This allows parameter sweeps to be performed on models with imported geometries.

Read More

Condor password authentication (with windows nodes)

This guide doesn’t let you submit jobs. I’ll get back to you when I’ve sorted that problem.
For simplicity I’m using condor password authentication. It’s reasonably simple to setup once you’ve worked out what’s going on.

Just as a bit of background I have a Linux central server and windows nodes. I’m using condor 7.6.0 installed with the .deb package. I recommend you attempt this on a test pool of at least 2 as you will most likely kill it repeatedly. Make sure condor is running on both machines with debugging turned on.

Read More

Turn on condor debugging

It’s easy to turn on debugging. Remember to do this on both the central manager and at least one test node. Then you can see what you are doing and the logs say MUCH more useful things.

In condor_config set this flag (it’s around line 595)

##--------------------------------------------------------------------
##  Settings that control the daemon's debugging output:
##--------------------------------------------------------------------

##
## The flags given in ALL_DEBUG are shared between all daemons.
##
ALL_DEBUG = D_FULLDEBUG

If you want to you can always set this just for a single daemon.  You do of course need to have some idea of which daemon you think is wrong.

Read More

Build master document from child in LyX

When you’ve got a large document with lots of children it’s nice to be able to build the whole document from a child document with one click. You can add some buttons to the standard toolbar to let you do this.

First find this bit of code in $LyX$\Resources\ui\stdtoolbars.inc:

Toolbar "view/update" "View/Update"
   Item "View DVI" "buffer-view dvi"
   Item "Update DVI" "buffer-update dvi"
   Item "View PDF (pdflatex)" "buffer-view pdf2"
   Item "Update PDF (pdflatex)" "buffer-update pdf2"
   Item "View PostScript" "buffer-view ps"
   Item "Update PostScript" "buffer-update ps"
End

Then add these two lines:

  Item "View PDF (pdflatex)" "master-buffer-view pdf2"
  Item "Update PDF (pdflatex)" "master-buffer-update pdf2"

If you want image buttons rather than text, save the two images below to $LyX$\Resources\ui\Resources\images\ (it’s the file name that is important).

Enjoy!

Read More