Excel fit formulas
Reference for the equation coefficients on best fit lines.
Continue Reading →By willblatt|excel|Be the first to comment!
Reference for the equation coefficients on best fit lines.
Continue Reading →By willblatt|ANSYS, ANSYS Tcl|Be the first to comment!
Reading a file into APDL and parsing to make keypoints is painful at best (IMHO). Writing this in something like ANSYS Tcl isn’t quite as bad.
Continue Reading →By willblatt|ANSYS, ANSYS Tcl|Be the first to comment!
Being able to call the tcl scripts from the ANSYS command line is awesome but irritating to use the ~eui, command.
Continue Reading →By willblatt|ANSYS, APDL|Be the first to comment!
*vget is a handy way to get array values from nodes and elements but it can be clunky. This was just to make it simpler to get those values out of ANSYS and store them as a parameter or into a file.
Continue Reading →By willblatt|ANSYS, ANSYS Tcl|Be the first to comment!
It’s helpful in ANSYS to read in data files and I can’t always remember what people name their files.
Continue Reading →By willblatt|ANSYS, ANSYS Tcl|Be the first to comment!
Some models that use area meshes on curved ends (like airfoils) are good candidates for soccer ball meshes. This was a simple method I needed to mesh them quickly
Continue Reading →By willblatt|ANSYS, ANSYS Tcl|Be the first to comment!
Running meshes in batch usually need some way to check the mesh quality. Here’s one approach I took.
Continue Reading →By willblatt|python|Be the first to comment!
this was a project to sync my local images with my flickr library
Continue Reading →By willblatt|python|Be the first to comment!
There is no excerpt because this is a protected post.
Continue Reading →By willblatt|python|Be the first to comment!
What good is a facebook game if you can’t cheat? For this to work you’ll need a file full of everyword
By willblatt|python|Be the first to comment!
There is no excerpt because this is a protected post.
Continue Reading →By willblatt|python|Be the first to comment!
Calling Ansys as part of bigger python program can come in pretty handy.
Continue Reading →By willblatt|bash|Be the first to comment!
I’ve always wondered how to send an email w/ an attachment from the cli.
Continue Reading →By willblatt|html, javascript, Wordpress|Be the first to comment!
So I needed a ‘Download’ Button on my wordpress photoblog, and I needed it to be conditional (e.g. I needed promo pictures to be downloadable). I also wanted it to be easy to trigger. The idea here, is to paste the above code into the Show Event Callback for the FancyBox plugin. This will replace the normal title on pictures with a link to the download script (php in this case). This only happens however, if the meta tag for downloading is set to true. This tag is set based on the category checkboxes when you make a wordpress post.
Continue Reading →By willblatt|python, wxPython|Be the first to comment!
These are handy when you just need a simple dialog box for errors or warnings from within your GUI.
Continue Reading →By willblatt|python, wxPython|Be the first to comment!
One more wx dialog example
Continue Reading →By willblatt|ANSYS, APDL|Be the first to comment!
Not that this happens a lot but sometimes its nice to get the results of a dos command back into ANSYS. This one for example, returns the number of lines in a text file back to ANSYS as the variable asdf.
Continue Reading →By willblatt|excelVBA|Be the first to comment!
Sometimes you just really want to use that best fit line equation in the chart. But outside of copy and past and replace there’s not much you can do with it. Until now…
Continue Reading →By willblatt|html, javascript|Be the first to comment!
This is an awesome script by Jehiah Czebotar that allows you to bypass the onmouseover/onmouseout, preload stuff for images. Just add the ‘oversrc’ attribute and the script does the rest!
Continue Reading →By willblatt|python|Be the first to comment!
Script to call Ansys from python
Continue Reading →By willblatt|python|Be the first to comment!
Quick line intersection method in Line class
Continue Reading →By willblatt|python|Be the first to comment!
set up command line options easily.
Continue Reading →By willblatt|python|Be the first to comment!
Sorts photos into folders based on exif data. uses – destination/year/year_month_day format
Continue Reading →By willblatt|python|Be the first to comment!
Nice little object that can be used anywhere. Just initialize it and then call it when you need it to update.
Continue Reading →By willblatt|python|Be the first to comment!
Simple multiplot example in pylab (condensed matplotlib).
Continue Reading →By willblatt|python|Be the first to comment!
‘walks’ through the directories starting with the current working directory and performs a system command on each file (in this case convert flac to ogg)
Continue Reading →By willblatt|ANSYS C|Be the first to comment!
How to make an array with the ANSYS C API.
Continue Reading →By willblatt|html|Be the first to comment!
Creates a link to the RSS of the webpage.
Continue Reading →By willblatt|matlab|Be the first to comment!
Example that uses ode45
Continue Reading →By willblatt|C|Be the first to comment!
This will take an integer and print out its binary string
Continue Reading →By willblatt|APDL|Be the first to comment!
This imports an NX part file
Continue Reading →By willblatt|HyperMesh Tcl|Be the first to comment!
When you simply need to know the hm filename and path…
Continue Reading →By willblatt|HyperMesh Tcl|Be the first to comment!
Uses Hypermesh built in panel for node selection and for each node returns the X/Y/Z values
Continue Reading →By willblatt|NX Open C|Be the first to comment!
Shows the type of a certain object. This is useful when you’re getting errors because of the type of tag you’re passing.
Continue Reading →By willblatt|NX Open C|Be the first to comment!
Give this function a tag address and it will return the work part tag or open a new part and return that tag.
Continue Reading →By willblatt|NX Open C|Be the first to comment!
This can be used in a UIStyler dialog button callback in order to open any type of file and display the file path in a text field. This is common in dialogs where various input files are needed. Often the button is shown only with “…” as the text.
Continue Reading →By willblatt|NX Open C|Be the first to comment!
Get a simple yes/no or yes to all from the user. (returns 0 for no, 1 for yes). Just keep calling this same function and it will remember if they clicked “Yes to All”.
Continue Reading →By willblatt|NX Open C|Be the first to comment!
this code can be used to get the value of a dialog item. The correct item value should be queried. This is something you should know from creating the dialog in the UIStyler.
Continue Reading →By willblatt|APDL|Be the first to comment!
This is a simple example on how to write to a file (myTextFileName.txt) scalar values (myValue), and full arrays (myArray). The formatting is similar to printf’s in C, number of figures, number after the decimal (i.e. f10.5 -> 12345.67890)
Continue Reading →By willblatt|ANSYS, ANSYS Tcl|Be the first to comment!
This creates a 2D array (myArray) and stores the nodal principle stresses in columns based on load steps (i.e. if you only have one load step, you get a single column of nodal stresses).
Continue Reading →This is the primary sidebar area. Go to your Widgets Panel and start dragging in widgets to make the sidebar active.