ansys.net search results
quick file search:
    home » search results
 
 
Preprocessing Macros (161 entries)
 
A_FILMAX
  Ernst Hustedt (Air New Zealand Engineering)
  Calculate maximum possible fillet radius for lines 1 and 2 and store in variable FILMAX.
[permalink]
 
Average Rating: 9.7 (19 votes)  
Rate this item:
 
A_HYDRO1
  Ernst Hustedt (AMES Ltd.)
  "I wrote a macro years ago to calculate distributed loads. The idea behind it is to define a profile using 3-noded shells above the surface to be loaded and calculate the height of the profile above each node of the surface. The nodal force is the height calculated for each node. In a second macro the point loads are scaled proportionally to the area associated with each node.
"I guess ANSYS has some better functionality now to do this sort of thing. I add the code for what it's worth. It did the job for me at the time."

For A_HYDRO1 (part 1 of 2), this is a macro to calculate hydrostatic loads under an arbitrary profile. The procedure involves calculating the vertical distance from each point to be loaded to a ceiling of arbitrary shape, where the ceiling is defined by triangular patches.
[permalink]
 
Average Rating: 9.1 (51 votes)  
Rate this item:
 
A_HYDRO2
  Ernst Hustedt (AMES Ltd.)
  "I wrote a macro years ago to calculate distributed loads. The idea behind it is to define a profile using 3-noded shells above the surface to be loaded and calculate the height of the profile above each node of the surface. The nodal force is the height calculated for each node. In a second macro the point loads are scaled proportionally to the area associated with each node.
"I guess ANSYS has some better functionality now to do this sort of thing. I add the code for what it's worth. It did the job for me at the time."

For A_HYDRO2, this is a macro to modify nodal forces calculated in A_HYDRO1.MAC proportionally to their areas.
[permalink]
 
Average Rating: 9.4 (9 votes)  
Rate this item:
 
A_NUM
  Mitch Voehl (CEC Corp)
  Macro to get area number by keypoint number.
[permalink]
 
Average Rating: 7.7 (11 votes)  
Rate this item:
 
A2COMET
  Fern Thomassy (Southwest Research Institute)
  Creates a COMET/Acoustics model from an ANSYS model.
[permalink]
 
Average Rating: 9.5 (41 votes)  
Rate this item:
 
A2GLUE
  Eric Miller (PADT)
  Work around for standard AGLUE that avoids the "ungluing" that can occur
[permalink]
 
Average Rating: 8.9 (9 votes)  
Rate this item:
 
ACAL
  (Tech Inno)
  This macro calculates the sum of areas for all selected elements.

Macro amended by S. Kukula (Dyson Ltd) with *VMASK to account for non-consecutive area numbering.


[permalink]
 
Average Rating: 5.5 (20 votes)  
Rate this item:
 
ACMN
  Eric Miller (PADT)
  Looks for and then plots and lists any areas shared by two volumes
[permalink]
 
Average Rating: 10.0 (1 vote)  
Rate this item:
 
ACOMPLOT
  Eric Miller (PADT)
  Finds any areas that are shared by the selected set of volumes and plots them. Useful to check VGLUEs
[permalink]
 
Average Rating: 10.0 (9 votes)  
Rate this item:
 
AEXT
  Juha Tyllinen (KONE Corporation)
  This macro creates an area by 'extruding' line - Similar to ANSYS command VEXT.
[permalink]
 
Average Rating: 10.0 (6 votes)  
Rate this item:
 
AFACE
  John Crawford (Honeywell)
  Used to generate areas from selected shell elements. Useful to create volume from imported FE mesh.
[permalink]
 
Average Rating: 10.0 (21 votes)  
Rate this item:
 
ALOOP
  Stefano Lucarelli (Mannesmann VDO AG)
  This input file asks for selection of one or more areas and loops until all areas directly or indirectly connected to the original ones are selected then plots them
[permalink]
 
Average Rating: 10.0 (7 votes)  
Rate this item:
 
ALSM
  John Crawford (Honeywell)
  I ended up writing a macro that selects/reselects/unselects meshed areas, and then copied it and modified it for doing the same with volumes.
[permalink]
 
Average Rating: 10.0 (6 votes)  
Rate this item:
 
ANFOUT
  John Swanson (SAS, Inc./ANSYS, Inc.)
  Macro that traverses the solid model and writes an anf file.
Posted by Eric Miller (PADT)
[permalink]
 
Average Rating: 8.9 (14 votes)  
Rate this item:
 
ANFOUT2
  John Swanson (SAS, Inc./ANSYS, Inc.), slightly modified by John Crawford (Honeywell)
  Macro that traverses the solid model and writes an anf file. Modified by John Crawford to include not just highest level component (i.e., write both volumes and 'free' areas which are selected).
[permalink]
 
Average Rating: 10.0 (4 votes)  
Rate this item:
 
ANS2ABA
  Dave Lindeman (3M)
  This macro (actually, an input file of an ABAQUS verification problem) provides an example of using ANSYS to preprocess and write out an ABAQUS input deck. From the author: "Note that this is an APDL script that illustrates a translation procedure and NOT an independent macro (i.e., this is just a starting place for others -- customization IS required)."
[permalink]
 
Average Rating: 10.0 (109 votes)  
Rate this item:
 
ANS2PAT
  Gordon May (Rolls Royce Compressor Key System)
  ANSYS to Patran 2 Neutral File translator: this macro translates element and nodal data FOR THE CURRENTLY SELECTED SET OF ELEMENTS into Patran 2 Neutral File (PNF) format.
[permalink]
 
Average Rating: 9.8 (21 votes)  
Rate this item:
 
ANSYS2STL
  Iker Gómez Vázquez (ITP)
  This is a macro to convert an ANSYS structural mesh into an ASCI STL (stereolithography) file.

Since the STL format is based on a triangular surface mesh, this macro selects all external nodes, generates SURF154 elements, then exports these to the STL file.
Macro updated on 03/17/2009.
[permalink]
 
Average Rating: 1.4 (7 votes)  
Rate this item:
 
AREACAL
  Carl Ostervig (Tech Inno)
  This macro calculates the number and area for all selected elements.
[permalink]
 
Average Rating: 10.0 (2 votes)  
Rate this item:
 
AREATEST
  (ANSYS, Inc.)
  Tests areas for consistent normals (not needed at 5.6 since /PSYM,ADIR,1 allows plotting of normals). Also, you may need to rename this macro "ATEST" or "NORMALS" since "AREAS" is a status topic command.
[permalink]
 
Average Rating: 10.0 (2 votes)  
Rate this item:
 
ASLM_BW
  Bram Weisman (SBM-IMODCO)
  Based on ALSM macro, created by John Crawford to select/reselect/unselect meshed areas. Written to take advantage of vectors to execute faster.
[permalink]
 
Average Rating: 10.0 (1 vote)  
Rate this item:
 
ASWP
  Bram Weisman (SBM-IMODCO)
  Divides a picked area with the working plane, retaining the area attributes for the newly-created areas.
[permalink]
 
Average Rating: 10.0 (2 votes)  
Rate this item:
 
AVGTEMP
  David Power (Mallett Technology Inc.)
  "Get average element temperature for each element from nodal body loads.
Unfortunately it's pretty slow for large models, and I haven't had any time to restructure it to make it run faster, although I'm sure I could make better use of the array operations."

[permalink]
 
Average Rating: 4.4 (8 votes)  
Rate this item:
 
AXIGET
  Rod Scholl (PADT)
  Selects axi-symmetric elements based upon their keyopts. (PLANE42/82 Only)
[permalink]
 
Average Rating: 10.0 (2 votes)  
Rate this item:
 
B188TO89
  René Fiege (Jos. L. Meyer GmbH)
  "I attached a little macro to define new BEAM189s on the nodes and properties of the existing 188 elements."
[permalink]
 
Average Rating: 10.0 (1 vote)  
Rate this item:
 
BBLDIV
  Bill Bulat (OMM)
  From the author:
"I whipped up the following simple macro (I call it bbldiv.mac) to help assign divisions to predefined lines when you don't know their direction, but you do know their end keypoints. Useful for bottom-up modeling with input scripts."
[permalink]
 
Average Rating: 6.0 (5 votes)  
Rate this item:
 
BEAFORCE
  Juha Tyllinen (KONE Corporation)
  Macro applies pressure distribution for approximation of bearing force. See contents of macro for details.
[permalink]
 
Average Rating: 9.7 (17 votes)  
Rate this item:
 
BEAMNET
  Artem Kulachenko (Mid Sweden University)
  Adds beam elements on outer edges of shell elements. From the author:
Attached please find a macro that creates a net of beam/link elements on 4/3 node shells.

An example of its use:
/prep7
et,1,41
rect,0,1,0,1
amesh,1
et,2,4
beamnet,41,2

[permalink]
 
Average Rating: 10.0 (3 votes)  
Rate this item:
 
BILINEAR
  John Swanson (SAS, Inc./ANSYS, Inc.)
  Used when specifying a material which has different tensile and compressive moduli. A test input file is also available.
[permalink]
 
Average Rating: 10.0 (10 votes)  
Rate this item:
 
CHECKIGES
  Julián Díaz (ITR México)
  "This is a very simple macro, but I've found it very useful when I have an iges file with common errors of duplicate geometry and small lines. All it does is look for lines smaller that .1 inches and plots them along with the attached areas, this can be useful to have a glipse of where could the problems be."
[permalink]
 
Average Rating: 10.0 (2 votes)  
Rate this item:
 
CIRCLE
  John Crawford (Honeywell)
  A UIDL function (granule file) to create circles by picking. To change the menu put the following in a menu granule:
:!
:N Men_CIRC
:S 0, 0, 0
:T Menu
:A Circles
:D Circles
Fnc_CIRCLEWP
Fnc_CIRCLEKP
:E END
:!

[permalink]
 
Average Rating: 10.0 (1 vote)  
Rate this item:
 
CLEAN
  Tom Glade (PACCAR Technical Center)
  "Here's a macro I use to clean up TYPEs, REALs, and MPs."
[permalink]
 
Average Rating: 9.4 (8 votes)  
Rate this item:
 
CLEAN_MODEL
  René Fiege (Meyer Werft GmbH)
  "The macro deletes not used attributes (real, mat, type, section), similar to the clean macro from Tom Glade, but with vector operations. It can easily be enlarged to document the used attributes (see macro).
"Do not use the macro with referencing attributes, like tapered beams. All attributes, which are not an attribute of an element will be deleted."

[permalink]
 
Average Rating: 0.0 (1 vote)  
Rate this item:
 
CLOSELINE
  Ernst Hustedt (Air New Zealand Engineering)
  The macro selects those lines that surround a picked point, or those lines that are exterior, depending on the case. Try the attached igs file and pick completely outside, inside but close to an outer line, inside outer loop but close to an inner line etc. and see what happens."

"Extending it to 3-D should be possible by starting with the WP aligned with the screen csys or so."
[permalink]
 
Average Rating: 0.0 (2 votes)  
Rate this item:
 
CMF
  Ernst Hustedt (Air New Zealand Engineering)
  Make a compound fillet at two straight lines.
[permalink]
 
Average Rating: 10.0 (1 vote)  
Rate this item:
 
CNF_FREQRESP
  Rick Morgans (Adelaide University)
  Outputs velocities for a single frequency analysis in COMET/Acoustics from an ANSYS harmonic analysis.
[permalink]
 
Average Rating: 10.0 (5 votes)  
Rate this item:
 
CNVG_TIME
  Mitch Voehl (CEC Corp)
  Macro to get last converged substep.
[permalink]
 
Average Rating: 10.0 (1 vote)  
Rate this item:
 
COMPMENU
  Jim Patterson (Hendrickson Trailer Suspension Systems)
  "I have a set of macros to generate toolbars based on the defined components in the db. You can then call these toolbars from the main toolbar to aid in the selecting of the components. This includes "select", "also select", and "unselect". You can also "remake" the components from the toolbar. As someone who works with assemblies of shell models almost constantly, this has been a huge time saver for me."
Tested on 5.7 through 6.1. Unzip the file and read the supplied Word document for instructions.
[permalink]
 
Average Rating: 10.0 (6 votes)  
Rate this item:
 
COMPTEN
  Carl Ostervig (Tech Inno)
  This macro analysis iteratively structures with different material properties (Youngs modulus) in tension and compression. [STI: Please note that this macro looks at SX and SY. See BILINEAR macro for a more general compression/tension macro based on principal stresses.]
[permalink]
 
Average Rating: 4.2 (6 votes)  
Rate this item:
 
CONTS2S
  G. N. S. Prakash
  "'conts2s.mac' macro creates surface to surface contact elements between nodal components with the default options. Only nodal components(target & contact), material number and coefficient of friction can be given as arguments. Use Contact wizard or your custom code to modify other properties. This macro is helpful when number of components in Ansys models are large or sometimes when the Contact wizard becomes slow with large db files and if we need to create a lot of contact pairs."
[permalink]
 
Average Rating: 7.0 (5 votes)  
Rate this item:
 
COUPCOIN
  Alex Komissarov (GEAE)
  A macro used to couple DOF of nodes in a given cylindrical coordinate system within a specified tolerance.
[permalink]
 
Average Rating: 6.9 (8 votes)  
Rate this item:
 
COUPLE_DOF
  Jyotis Sardar (IIT MADRAS)
  "Here's a macro I created, that will generate couples in the required DOF's, merely by prompting the user to pick the source and target lines."
[permalink]
 
Average Rating: 7.8 (9 votes)  
Rate this item:
 
CPJOINS
  Mark Kessler (BAE Systems)
  "A macro to create couples at coincident locations."
[permalink]
 
Average Rating: 10.0 (3 votes)  
Rate this item:
 
CPQUERY
  Sheldon Imaoka (ANSYS, Inc.)
  This macro counts the number of coupled sets associated with the current selected set of nodes.

If the first argument is 1, then the macro will count the total number of coupled sets if any of its nodes are selected. Otherwise, the coupled set will only be counted if all of its nodes are selected.
[permalink]
 
Average Rating: 9.4 (9 votes)  
Rate this item:
 
CTPIPE3
  Mark Kessler (BAE Systems)
  "A macro to create a series of elements from one picked node to all other selected nodes."
[permalink]
 
No rating yet  
Rate this item:
 
DGNR8
  Eric Miller (PADT)
  "Finds degenerate 2D and 3D elements (i.e., when nodes 3 and 4 are identical), selects them, and then plots them. This works for many cases, such as SOLID45 or PLANE82, etc. Does not work for lower- or higher-order pyramids, but macro can easily be modified for these cases."
[permalink]
 
Average Rating: 10.0 (2 votes)  
Rate this item:
 
DISTCALC
  Carl Ostervig (Tech Inno)
  This macro calculates the distance between two nodes, selected by picking. Normally this facility is available in the preprocessor only. This macro works in all processors.
[permalink]
 
Average Rating: 9.0 (5 votes)  
Rate this item:
 
DISTKP2L
  Wangming Lu (Impact Technologies, LLC)
  "I have developed the following macro: Given a key point level component,and a line number, it will evaluate the distance from each key point in this component to the input line. The result is returned in an array called distk (you can change into your name, of course). While using this, pls. be careful, it is not fully tested yet."
[permalink]
 
Average Rating: 10.0 (1 vote)  
Rate this item:
 
DistributedLoad
  Paris Altidis (Borg Warner)
  Zip file containing two example macros of applying distributed pressures.
[permalink]
 
Average Rating: 9.7 (18 votes)  
Rate this item:
 
E72TO142
  Tim Lansberry
  This is an ANSYS macro that converts solid72 elements to fluid142 elements. It defines a new element type for the fluid elements. Useful for creating models for FLOTRAN converted from other CAD packages which use a solid element type.
[permalink]
 
Average Rating: 10.0 (4 votes)  
Rate this item:
 
E72TO45
  Tim Lansberry
  This is an ANSYS macro that converts solid72 elements to solid45 elements. It defines a new element type for the solid45 elements.
[permalink]
 
Average Rating: 6.0 (5 votes)  
Rate this item:
 
E92TO142
  Tim Lansberry
  This is an ANSYS macro that converts solid92 elements to fluid142 elements. It defines a new element type for the fluid elements. Useful for creating models for FLOTRAN converted from other CAD packages which use a solid element type.
[permalink]
 
Average Rating: 10.0 (7 votes)  
Rate this item:
 
elastdata_Unix.zip
  Hursha Narayan (Robert Bosch Corporation)
  Macro for a fully automated procedure for calculating M-R coefficients from Test Data
"I have developed a macro that fully automates the importing of elastomer test data into ANSYS and calculate the Mooney-Rivlin coefficients. The macro uses Lagrange interpolation technique to calculate the stress data at equal intervals of strain. This can then be read into an array in ANSYS to evaluate the M-R coeffs. I'm sending you Windows and Unix version of the macro. The difference between the two versions are in the awk and script files that I use to manipulate data. The user needs to go through all the files just to change the directories where the files will be located and accessed. The files reformat(Unix) and reformat.csh(windows) should have rwx permissions. The reformat.csh used in windows can be converted to a batch file. Awk utility should be available under windows. The procedure expects Simple Tension, Planar Tension and Biaxial Extension data to be available."
Windows version can be downloaded here.
[permalink]
 
Average Rating: 6.2 (8 votes)  
Rate this item:
 
ELEM2PT
  S. Evans (University of New South Wales)
  "I made a quick n' dirty macro a while ago for finding the element centroid nearest to a point...it doesn't QUITE solve the problem, since adjacent elements differing greatly in size can screw things up. But here it is anyway...it's a brute-force job (I used it for a couple of thousand elements)."
[permalink]
 
Average Rating: 8.8 (4 votes)  
Rate this item:
 
ELLIPSE
  Janet Wolf (ANSYS, Inc.)
  Macro to make creating ellipses easier.
[permalink]
 
Average Rating: 9.6 (23 votes)  
Rate this item:
 
F3D
  Marcelo A Toledo (Multibrás S.A. Eletrodomésticos)
  "This is the macro i was writing about (named f3d.mac). For example ,if you want to aplly a pressure force of 450N at 45 degrees just type "f3d,450,1,1,0". The first argument is the magnitude and the last three are vector components in the same direction of the force . The macro will ask you to pick a area to aplly the force."
[permalink]
 
Average Rating: 10.0 (8 votes)  
Rate this item:
 
FILDEL
  John Crawford (Honeywell)
  A macro to remove a fillet radius and connect the neighboring two lines with a sharp corner.
[permalink]
 
Average Rating: 10.0 (1 vote)  
Rate this item:
 
FIXDIVS
  James Kosloski (CAEAI)
  "I have attached a macro that changes the 'next' divisions for all the meshed lines to the same as the current mesh divisions. So you can run this macro then choose /psym,ldiv,0"
[permalink]
 
Average Rating: 10.0 (1 vote)  
Rate this item:
 
FLDSURF (new)
  Jeroen Valensa (Modine Mfg. Co.)
  From the author:
"The reason for not using the afsurf macro is that it takes so long to generate the elements - on very large thermal models I have seen that method take 12 hours, where my macro will do the same thing in about 15 minutes. The way to do the coupling is to create the surf152 elements first, using esurf. Select the solid elements over which the 152's will be overlaid, and select the nodes on the surfaces of the solid elements where you want the 152's to be created. Set the type, mat, and real. Change keyopt 5 to 0 (no extra node) - this will be changed back to 1 by the macro. Then just issue the esurf command, with nothing after it (no extra node assignment). Now you are almost ready to run the macro! Just select the NODES of the fluid116 elements and the surf152 ELEMENTS. An easy way to do this in your model would be:

esel,s,type,,9
nsle
esel,s,type,,8

Now run the macro, it will automatically map the closes fluid node to each surf152 element to be the extra node for that element. It may take a while if you have a large number of 116s and 152s, so just be patient. You won't get any feedback while it is running."

[permalink]
 
Average Rating: 10.0 (1 vote)  
Rate this item:
 
FLDSURF (old)
  Simon Shang (Aerojet Propulsion), slightly modified by Jeroen Valensa (Modine Mfg. Co.)
  Another way of defining SURF152 elements with FLUID116 instead of using AFSURF. Use component names for surface area and line as input arguments to this macro.
Original XANSYS posting
[permalink]
 
Average Rating: 10.0 (2 votes)  
Rate this item:
 
GETA4L
  Mark Fahey (Lingk & Sturzebecher)
  "Here is a macro that I made for myself to get all areas that have four lines. From these areas I decide what to map mesh."
[permalink]
 
Average Rating: 10.0 (7 votes)  
Rate this item:
 
GETAL
  John Crawford (Honeywell)
  Loops through repeated ASLL, LSLA commands
[permalink]
 
No rating yet  
Rate this item:
 
GETEN
  John Crawford (Honeywell)
  A macro to loop through the esln and nsle commands to select related nodes/elements
[permalink]
 
Average Rating: 10.0 (1 vote)  
Rate this item:
 
GETFACE
  Sheldon Imaoka (ANSYS, Inc.)
  This is a simple macro to group tetrahedral elements into element components based on the face number (1-4) that is exposed in selected surface(s). When using this macro, be sure that only a single face for a given element is exposed on selected surfaces.

This is useful for the EDLOAD command using ANSYS LS-DYNA when applying pressures since element faces must be used. Can also be used for general elements with the SFE command.

Feel free to customize/modify the macro for other element shapes (pyramid, wedge, hex) by increasing the number of faces checked.
[permalink]
 
No rating yet  
Rate this item:
 
GETFILE
  Matthew Sutton (PADT)
  Tcl script which opens a dialog box for a user to select an input file to read from (/INPUT).

Use ~eui,'source getfile.tcl' to run the Tcl script, after saving it to your working directory.


[permalink]
 
Average Rating: 9.6 (14 votes)  
Rate this item:
 
GETLK
  John Crawford (Honeywell)
  Loops through repeated LSLK, KSLL commands
[permalink]
 
No rating yet  
Rate this item:
 
GETMASS
  Sheldon Imaoka (CSI)
  This is a macro which *GET density and volume of selected elements and provides total volume and total mass of selected elements.
May be useful for 2D axisymmetric elements, too.
See Tips section for CSI's Tip of the Week on mass property calculation.
[permalink]
 
Average Rating: 10.0 (8 votes)  
Rate this item:
 
GETREAL
  Bob Weathers (Trane)
  An example of how to parse through real constants which have been previously defined.
[permalink]
 
Average Rating: 10.0 (2 votes)  
Rate this item:
 
GETSELTOL
  James Kosloski (CAEAI) and Bram Weisman (SBM Atlantia)
  "This macro gets the current value of SELTOL and stores it in the parameter SELTCUR"
[permalink]
 
No rating yet  
Rate this item:
 
GETTRIS
  Sheldon Imaoka (ANSYS, Inc.)
  This macro searches for triangular elements in the selected element set. It then puts the number of triangular elements in a scalar parameter and selects those triangular elements (if any).
[permalink]
 
Average Rating: 6.0 (5 votes)  
Rate this item:
 
GETVA
  John Crawford (Honeywell)
  Loops through repeated VSLA, ASLV commands
[permalink]
 
Average Rating: 10.0 (1 vote)  
Rate this item:
 
GPLT
  Eric Miller (PADT)
  Simplified interface for GPLOT command
[permalink]
 
No rating yet  
Rate this item:
 
HELIX
  Don Shaffer (Siemens Westinghouse Power Corp)
  "Here is a helix macro worked up from some xansys discussions several years ago. Several others on the list contributed parts of this."
[permalink]
 
Average Rating: 5.4 (12 votes)  
Rate this item:
 
HELIX2
  Raziel Vallejo (GE)
  A modified version of D. Shaffer's HELIX macro.
[permalink]
 
Average Rating: 10.0 (4 votes)  
Rate this item:
 
HOLE
  Zane Ullman (Dana Corp)
  This macro is from the ANSYS Solutions, Vol 4 No 1 article, "Repairing FEA Geometry with ANSYS Macros." This macro finds missing holes after the user provides the line number from a failed VA error message. This facilitates finding and fixing holes in imported geometry.
[permalink]
 
Average Rating: 10.0 (3 votes)  
Rate this item:
 
HORZ
  Rod Scholl (PADT)
  Generates a big long horizontal line at specified location
[permalink]
 
Average Rating: 10.0 (1 vote)  
Rate this item:
 
HPKP
  John Crawford (Honeywell)
  A macro which creates a hardpoint on an area using existing keypoints.
[permalink]
 
Average Rating: 10.0 (2 votes)  
Rate this item:
 
HSAREA
  Sheldon Imaoka (ANSYS, Inc.)
  Macro to get 'hotspot' of selected areas. Puts (x,y,z) and area numbers in an array, which can be used for selection, etc. of areas via APDL.

Note that while the 'hotspot' of areas should be the centroid, the actual hotspot slightly differs from this. Consequently, no ASUM/GSUM is required, and that is why an undocumented *VGET is used for obtaining hotspot locations.
[permalink]
 
Average Rating: 9.0 (5 votes)  
Rate this item:
 
HSVOLU
  Sheldon Imaoka (ANSYS, Inc.)
  Macro to get 'hotspot' of selected volumes. Puts (x,y,z) and volume numbers in an array, which can be used for selection, etc. of volumes via APDL.

Note that while the 'hotspot' of volumes should be the centroid, the actual hotspot slightly differs from this. Consequently, no VSUM/GSUM is required, and that is why an undocumented *VGET is used for obtaining hotspot locations.
[permalink]
 
Average Rating: 10.0 (6 votes)  
Rate this item:
 
IGESOUT
  Gabriel Arias (IDAC)
  "Macro for generating solid bodies in IGES file format directly from finite element meshes (nodes and elements) in ANSYS"
Alternative link here
[permalink]
 
Average Rating: 10.0 (9 votes)  
Rate this item:
 
IM60
  Steven Varnam (IDAC)
  IM60 modifies the currently selected line set to have an orientation keypoint, which is required for meshing the lines with either BEAM44 or BEAM188/189. The orientation keypoints are automatically generated and all the line attributes are kept.

[permalink]
 
Average Rating: 5.0 (5 votes)  
Rate this item:
 
IM63
  Steve Varnam (IDAC)
  Creates a spider between master and slave nodes.
[permalink]
 
Average Rating: 10.0 (2 votes)  
Rate this item:
 
IM82
  (IDAC)
  "A macro that avoids the need for repetitive work when creating areas from many closed loops of Line geometry in ANSYS. This is particularly useful when the analyst has been supplied Line geometry containing many closed loops via CAD or has created closed loops that need to be converted to Areas for element meshing purposes."
[permalink]
 
Average Rating: 10.0 (1 vote)  
Rate this item:
 
IM94
  Tim Atchison (IDAC)
  "A macro that makes it simple for users to apply a free moment to an area (or group of areas). It avoids the need to create "spider-webs" of stiff beams and only asks the user to enter the areas or component required and the magnitude of the moment. By providing simple access to the RBE3 command it doesn't stiffen the surface in the same way that stiff beams will and at the same time does all the setting up and implementing of RBE3 for you."
[permalink]
 
Average Rating: 10.0 (14 votes)  
Rate this item:
 
IMPORTPARA
  Sheldon Imaoka (ANSYS, Inc.)
  Example of use of Tcl/Tk to bring up custom dialog box to import parasolid files.
This could be used in an input file to automatically prompt the user to import a particular parasolid file through a dialog box.
It can be easily extended to include any Connection Kit product (ACIS/SAT, Pro/E, UG, CATIA, etc.).
[permalink]
 
Average Rating: 8.6 (18 votes)  
Rate this item:
 
INS_SEC
  Bill Bulat (CSI)
  Macro to convert instantaneous thermal coefficients of expansion to secant values, with example input file. (This is a zipped file)
[permalink]
 
Average Rating: 0.0 (2 votes)  
Rate this item:
 
INT_AREAS
  Mitch Voehl (CEC Corp)
  From the author: "I've attached a macro which can find interior areas (holes) in some circumstances. Prior to running the macro, first create all of your areas and then perform and area overlap or area partition to divide them up. Then run the macro. The macro will save the interior areas as the component 'int_a'."
[permalink]
 
Average Rating: 0.0 (2 votes)  
Rate this item:
 
INVTCHG
  Peter Frei (Rockwell Automation AG)
  Converts 10-node SOLID87 tetrahedra to 20-node degenerate SOLID117 tetrahedra (need to specify element type for SOLID117 beforehand and enter that ID as the parameter "etMag").
[permalink]
 
Average Rating: 3.3 (3 votes)  
Rate this item:
 
JUSTMESHIT
  Prasad S. (QuEST Pvt. Ltd.)
  "The macro meshes all the areas after getting the specifications from the user.
You can change the element type in the macro as per your requirement. At present shell63 is being used for the area mesh. In this macro a muliplication factor has been considered for the bent curves, so that when compared to the straight curves, bent curves will have element edge length smaller based on the input factor.
If the factor is >1, the bent curves contain finer divisions,
If the factor is <1, the bent curves contain coarser divisions."

[permalink]
 
Average Rating: 9.2 (12 votes)  
Rate this item:
 
JWASEL
  Joe Woodward (PADT)
  This macro allows you to select the 'inside' surface of a volume, in case your volume has a 'void' inside of it.
[permalink]
 
Average Rating: 10.0 (4 votes)  
Rate this item:
 
KCOR
  Don Shaffer (Siemens Westinghouse Power Corp)
  Lists selected keypoints in CSYS 0 and 1.
[permalink]
 
Average Rating: 10.0 (1 vote)  
Rate this item:
 
KLL
  G. N. S. Prakash
  " The macro kll.mac adds the broken lines of the selected volumes. Normally some of the complex curves from the CAD software become segmented after importing into Ansys and also due to Boolean operations and require considerable effort in joining these segments into single curves. Typing 'kll' just after import would recognize and add all these segments. It works on the principle that the keypoints on edges have only 2 lines attached to them and keypoints at corners have 3 or mores lines attached to them. Hence, if it finds any keypoint on a edge, it would be removed by joining the adjoining lines.
" Please note, it works on lines attached to volumes only and not for independent areas or lines."

[permalink]
 
Average Rating: 6.2 (4 votes)  
Rate this item:
 
KPMV
  Don Shaffer (Siemens Westinghouse Power Corp)
  "Macro moves keypoint arg1 to the location of keypoint arg2 and if arg3 equals 1 merges them."
[permalink]
 
Average Rating: 10.0 (2 votes)  
Rate this item:
 
L_NLIST
  Chris Bridge (2H Offshore Engineering Ltd)
  A macro to list selected nodes but in a specified format without repeated header information.
[permalink]
 
Average Rating: 10.0 (5 votes)  
Rate this item:
 
LCOLOR
  Jimmy Carlsson (AF Group)
  This macro colors lines as follows:
  • Red: Line connected only to one of selected areas
  • Yellow: Line connected to two of the selected areas
  • Blue: Line connected to three or more selected areas
  • Magenta: Line is not connected to any of the selected areas

[permalink]
 
Average Rating: 5.0 (4 votes)  
Rate this item:
 
LISTTYPE
  Sheldon Imaoka (ANSYS, Inc.)
  Macro used to list all unique combinations of element type, real constant, section type, and material properties of currently selected elements. Useful, for example, when importing mesh from Workbench or other software into ANSYS and confirming settings.
[permalink]
 
Average Rating: 10.0 (6 votes)  
Rate this item:
 
LPROJ
  John Crawford (Honeywell)
  Here is a macro I wrote several years ago that projects lines onto the working plane. It's a little crude, but works okay. I use it all the time to project IGES geometry onto the working plane (placed at global Z=0) to straighten lines that are slightly bent or not at Z=0. You still have to recreate your areas and all that sort of stuff, which is kind of a pain.
[permalink]
 
Average Rating: 10.0 (6 votes)  
Rate this item:
 
LREGEN
  John Crawford (Honeywell)
  Recreates selected lines by fitting b-splines through points on line. Useful with some imported IGES geometry
[permalink]
 
Average Rating: 10.0 (3 votes)  
Rate this item:
 
MAKEMESH
  John Crawford (Honeywell)
  This macro is from John's article, "Meshing Complex Solids" from ANSYS Solutions Vol 4 No 1. The input file creates the geometry, then meshes it using steps outlined in his article (e.g., mapped meshing, sweep meshing, transition meshing).
[permalink]
 
Average Rating: 10.0 (6 votes)  
Rate this item:
 
MAPME
  Sheldon Imaoka (ANSYS, Inc.)
  General macro used to map one set of values & (x,y,z) coordinates to another. Uses *MOPER,,,MAP.

Example input file can be found here which uses this macro. In this input example, *VPUT is used to compare mapping UX, UY, and UZ from one mesh to another. This can be used to map pressures, heat flux, convection, etc. from CFD codes to ANSYS, for example.

Alternate macro also available here.
[permalink]
 
Average Rating: 10.0 (27 votes)  
Rate this item:
 
MASSPROP
  Bill Bulat (CSI)
  Calculates accurate mass properties via inertial relief method.
[permalink]
 
Average Rating: 10.0 (6 votes)  
Rate this item:
 
MG
  John Crawford (Honeywell)
  Zooms in, out or autoscales images then does a replot
"When I want to zoom in by a factor of two I enter MG,2. If I want to zoom out I enter something like MG,.1. If I want to autoscale I just enter MG. It replots the last display, which is usually what I want to do anyway."
[permalink]
 
Average Rating: 10.0 (4 votes)  
Rate this item:
 
MKWEB
  Mark Krueger (Goodrich Corporation)
  "Macro to connect a single node by a 'web' of beams using an area"
Be sure that you have defined the beam element type and made it active (TYPE, REAL/SECNUM, MAT) prior to using this macro.
[permalink]
 
Average Rating: 10.0 (1 vote)  
Rate this item:
 
MPC_GEN
  Ted Harris (PADT)
  Creates MPC184 elements between a master node and the other selected nodes. Can be modified for other 2-node line element types. Example of the use of *VMASK.
[permalink]
 
Average Rating: 9.5 (11 votes)  
Rate this item:
 
MPSCALE
  (CAEAI)
  Macro to scale linear material property and put into new material number.
[permalink]
 
Average Rating: 10.0 (2 votes)  
Rate this item:
 
MSHDVOLS
  Bob Weathers (Trane)
  Selects meshed volumes.
[permalink]
 
Average Rating: 10.0 (2 votes)  
Rate this item:
 
MULTP2
  Sean Harvey (CSI)
  Macro that facilitates importing multiple parts using the Connection product for Pro/E at 5.5.x. Note that from 5.6.1, importing of Pro/E assembly is supported (it is a beta feature in 5.6.0)

[permalink]
 
Average Rating: 3.3 (3 votes)  
Rate this item:
 
MULTREAD
  Sean Harvey (CSI)
  Macro that facilitates importing multiple part iges files into ANSYS at 5.5.x
[permalink]
 
Average Rating: 10.0 (3 votes)  
Rate this item:
 
MVSUM
  Alex Ng (ASM Assembly Automation Ltd.)
  Calculates total mass of selected volumes.
[permalink]
 
Average Rating: 6.7 (3 votes)  
Rate this item:
 
NAS2ANS
  Diego Gorriz (Skycross Engineers)
  Example of a macro to convert Nastran input to ANSYS input. Works on shells only, so it should be used as an example.
[permalink]
 
Average Rating: 10.0 (13 votes)  
Rate this item:
 
NASTEXP
  Barry O'Donnell (ODCS Ltd.)
  "The macro uses logic (primariliy extracted from a previously published macro) to identify the unique combinations of ETYPE, REAL and MAT for non-section based elements and ETYPE, SECTYPE and MAT for secrion based elements. It then gathers the relevant data into arrays (primarily vector based arrays), and outputs the following NASTRAN cards:

CONM2 (mass21 element)
PSHELL (based on real data only, i.e. shell63)
CTRIA3 (shell63 degenerate elements recognised)
CQUAD4 (shell63 elements)
PBAR (beam4 element or beam188 element, A/Iyy/Izz supported)
CBAR (beam4 element or beam188 element, orientation node exported if it exists and default vector of <0 1 0> exported otherwise)
CELAS2 (combin14, spring option, linear 2 node version only)
PROD (link180 element, A supported)
CROD (link180 element)
PSOLID (solid element property definition card, fully supported)
CHEXA (solid 185 and solid 45 fully supported, solid 186 & solid 95 not working correctly)
CPENTA (solid 185/45/186/95 fully supported, degenerate elements recognised)
CTETRA (solid 185/45/186/95 & solid 186 & 95 fully supported)
GRID (nodal coordinates, note: nodal csys = 0) MAT1 (E, nu, dens supported - non temp dependent, initial value supported only)"

[permalink]
 
Average Rating: 8.9 (9 votes)  
Rate this item:
 
NDGROUP
  John Crawford (Honeywell)
  From the author:
"ndgroup.mac a macro which creates a macro of nsel commands for the currently selected nodes. this group of nodes can be recovered by running the macro that this macro creates.
The macro will prompt the user for the name of the file which will be created. The default name is 'ndgrp1.mac'.
You might check the implementation of *ASK to see if it works okay. I think they changed the way *ASK uses character parameters a few revisions ago and I may not have updated this macro. There is a chance that it will always create a file named "fname.mac" regardless of the name you entered at the *ASK prompt."
[permalink]
 
Average Rating: 10.0 (1 vote)  
Rate this item:
 
NFIXDEL
  John Crawford (Honeywell)
  "A macro that removes the selected nodes that are mistakenly associated with nonexistent geometry in ANSYS."
[permalink]
 
Average Rating: 6.2 (4 votes)  
Rate this item:
 
NOD2KP
  (EMI)
  This is an ANSYS macro to move an existing node to the location of an existing keypoint. User picks single node to be moved, then picks single keypoint to move it to.
[permalink]
 
Average Rating: 6.7 (3 votes)  
Rate this item:
 
NUMTOG
  John Crawford (Honeywell)
  A macro that toggles ID numbers off and on for keypoints, lines, areas, volumes, nodes, and elements.
[permalink]
 
Average Rating: 10.0 (2 votes)  
Rate this item:
 
P_NLIST
  Chris Kennedy (Think PEAK, Inc.)
  A special version of NLIST to list nodes in the active coordinate system.
[permalink]
 
Average Rating: 10.0 (1 vote)  
Rate this item:
 
PARA-2
  Mike Rife (CSI)
  Creates parabola, ellipse, or hyperbola.
[permalink]
 
Average Rating: 8.8 (12 votes)  
Rate this item:
 
PRESSURE_MAC
  Hursha Narayan (Robert Bosch Corporation)
  "I have written a macro that calculates the total force along the three axes from applied pressure. I find this macro to be useful just to make sure that the pressure I'm applying on a curved surface is accurate and also it gives a feel for the mesh discretization where the pressure is applied. The user has to basically identify the elements with a particular magnitude of pressure and save the list file (SFELIS.lis). The macro does everything else automatically. The downside to the macro is:
1. Right now it only handles 10 node tet elements.
2. The pressure has to be uniform
The user will have to modify some of the fields in the macro as well as the c-shell file prescalc."

[permalink]
 
Average Rating: 7.9 (7 votes)  
Rate this item:
 
PRONY
  John Thompson (ANSYS, Inc.)
  Macro to do curve-fitting for TB,PRONY constants for given relaxation data.
[STI: Note that, at 8.0 and above, curve-fitting of TB,PRONY is directly available in ANSYS with the TBFT command.]
[permalink]
 
Average Rating: 10.0 (4 votes)  
Rate this item:
 
ROTATE
  Joe Metrisin (Florida Turbine Technologies, Inc.)
  Here's a UIDL function (Granule file) I wrote a while back to rotate any geometric or finite element entity about any local or global coordinate system axis.
[permalink]
 
Average Rating: 10.0 (6 votes)  
Rate this item:
 
ROTV
  John Crawford (Honeywell)
  A macro to rotate the currently selected volumes about an axis.
[permalink]
 
Average Rating: 10.0 (3 votes)  
Rate this item:
 
RPAREA
  (CAEAI)
  "This macro uses the ASUB command to replace/repair old areas with new areas to repair them in preparation for meshing."
[permalink]
 
Average Rating: 5.0 (1 vote)  
Rate this item:
 
SASEL
  Sheldon Imaoka (ANSYS, Inc.)
  Macro used to select areas based on the value of the area itself (=length^2). Can be used to select all areas of a certain surface area or a range of surface area (with tolerance).
[permalink]
 
Average Rating: 10.0 (4 votes)  
Rate this item:
 
SCOPY
  Dave Rea (ANSYS, Inc.)
  Macro used to copy a meshed sector to a full 360 degree model. Copies meshed solid model and merges nodes (can also edit to merge keypoints). Also, an example file is supplied.
[permalink]
 
Average Rating: 10.0 (1 vote)  
Rate this item:
 
SELLOC
  Don Shaffer (Siemens Westinghouse Power Corp)
  "This is a utility tool to speed up selection of model entities by location." Please read the comments in the macro file for more details on usage.
[permalink]
 
Average Rating: -5.0 (4 votes)  
Rate this item:
 
SFMAP
  (CAEAI)
  "This macro is used to map pressure from a CFD mesh onto a structural mesh. The point XYZ locations from the CFD analysis must exist in an array called cfdxyz(npts,3). A corresponding array called "cfdpres" must be exist also. This array contains the pressure values corresponding to the point locations."
Useful example of the use of *MOPER,,,MAP.
[permalink]
 
Average Rating: 6.9 (16 votes)  
Rate this item:
 
SLICEPLN
  Don Shaffer (Siemens Westinghouse Power Corp)
  "This macro moves the working plane origin to the specified keypoint and orients it with wz normal to the specified cartesian axis with x=1,y=2 and z=3."
[permalink]
 
No rating yet  
Rate this item:
 
SPIDER
  Marco Perucchi (Delta JS AG)
  "I have a macro that might be useful for you. It creates spider webs between 1 center and a group of surrounding nodes. Before starting the macro you have to collect the center node in one component and the group of surrounding nodes in another component. If you are able to do that with your model you should be able to create the link elements without problems."
[permalink]
 
Average Rating: 10.0 (8 votes)  
Rate this item:
 
SPIDER2
  Donald Cummings (GE Transportation Systems)
  "This macro creates a spider-web that connects a center node with a group of surrounding nodes on the inside surface of a hole with line elements (beam or link). The modeling objective is to provide attachment of a single point to the inside surface of a hole for the transfer of loads or boundary conditions to the model. This is an approximate method of modeling a shaft support in a hole."
[permalink]
 
Average Rating: 10.0 (2 votes)  
Rate this item:
 
SPIDER3
  Barry O'Donnell (ODCS Ltd.)
  "I attach the macro which I was working on, for which I recieved help from the group for. It is called as:
spider,arg1,arg2
where arg1 is the washer diameter and arg2 is the centre node number. It is intended to connect all the nodes on the attached area that are within the washer diameter (arg1) to the central node (arg2) using RBE3 eleemnts. Useful if you haven't specific areas which correspond to the bolt head dimension etc. It would be easy to modify, though currently it is intended for bolts aligned with the global x-axis."

[permalink]
 
Average Rating: 9.4 (8 votes)  
Rate this item:
 
SPIRAL
  Keith DiRienz (PADT)
  A macro to generate a spiral.
[permalink]
 
Average Rating: 7.1 (7 votes)  
Rate this item:
 
SPLTARCS
  John Crawford (Honeywell)
  A macro that splits the selected arcs into two pieces. this is done to avoid problems when using NUMM,KP with circles made from two 180 degree arcs..
[permalink]
 
Average Rating: 10.0 (4 votes)  
Rate this item:
 
SPOKES
  Pat Cunningham (CAEAI)
  "The macro will create a connection between a selected set of nodes and a master node typically located at the center of curvature of a line connecting the selected nodes."
Used for generating CERIG, MPC184, or RBE3.
[permalink]
 
Average Rating: 10.0 (12 votes)  
Rate this item:
 
SPOKES_MPC
  R. Balasubramanian (Brakes India Ltd - TVS)
  "This Macro forms a 'spider web' like Multipoint constraint for a given set of nodes. The user has to just place the clusters of nodes in separate components by names 'NODES1','NODES2'..etc., The macro automatically finds the 'centre-node' for each node cluster and links it with the surrounding nodes in the cluster to form a 'spokes' pattern using MPC 184 elements with 'Rigid-beam' option (the element option can be changed by user for his/her requirements)."
[permalink]
 
Average Rating: 7.5 (12 votes)  
Rate this item:
 
STIICEMFLOTRAN
  Sheldon Imaoka (ANSYS, Inc.)
  MESH200 supports a 4-node tetrahedral option (KEYOPT(1)=8), but the node numbering is different from a degenerate 8-node tetrahedral element, such as FLUID142.
If a user exports a lower-order tetrahedral mesh using MESH200, conversion to an actual element, such as FLUID142, may be required. Use of this macro allows a user to perform this relatively easily (it is customized to convert 4-node MESH200 tetrahedral elements to Flotran FLUID142 tetrahedral elements, although the user can modify the macro to suit his/her needs).
[permalink]
 
Average Rating: 10.0 (6 votes)  
Rate this item:
 
SVSEL
  Sheldon Imaoka (ANSYS, Inc.)
  Macro used to select solids based on the value of the volume itself (=length^3). Can be used to select all volumes of a certain value or a range of values (with tolerance).
[permalink]
 
Average Rating: 5.0 (3 votes)  
Rate this item:
 
TCHKPLOT
  Sung-Chul Lee (Engineering Systems & Consulting, Inc.)
  Macro to create shell thickness plot into 8-color contour band by respecifying element color properties.
[permalink]
 
Average Rating: 10.0 (5 votes)  
Rate this item:
 
THICKPLT
  Bram Weisman (SBM-IMODCO)
  "Plots shell element thickness by utilizing surface pressures. I recommend plotting nodes with a contour or outline plot of pressure for best results. Element plot can also be used, but pressure colors will conflict with element colors."
[permalink]
 
Average Rating: 8.3 (3 votes)  
Rate this item:
 
THICPLOT
  Bill Newland (Bell Helicopter)
  "This macro assigns pressures based on real constant thickness values of shell elements. The shell elements are then plotted with pressure contours having the same values as the thicknesses."
"Select the desired shell elements to be plotted before running macro. After running macro, DO NOT SAVE. Exit without saving as erronious pressures will be applied to model."

[permalink]
 
Average Rating: 10.0 (1 vote)  
Rate this item:
 
THREAD
  Ernst Hustedt (Air New Zealand Engineering)
  "For what it's worth, here is a macro I made some years ago ('94) for doing thread profiles for axisym analysis. Looking at it now, I am not sure if the UN thread option works correctly, I can't remember that I actually used it, but the ISO should be O.K. You can spin the profile along Don's helix."
[permalink]
 
Average Rating: 10.0 (2 votes)  
Rate this item:
 
TRIM1
  G.N.S. Prakash
  Macro entry for "APDL Guru" contest by PADT. "Here is the scenario. I have a number of straight lines in the XY plane. I would like a macro that does the following:
  1. Allows me to select any two lines, but only two.
  2. If the two lines intersect, they are both divided at the intersection point and the resulting four lines are connected such that they share a common keypoint at the intersection point.
  3. If the lines do not intersect, the first line is extended until it is tangent to the second line.
The macro should be capable of handling the special case in which the second line needs to be extended in order for intersection to occur. If this case should occur, the macro should extend both lines to a common intersection point and then join the two lines together. However, if the second line does not require extension, then the macro should divide the second line at the intersection point and join the two pieces of the original second line together with the first line, which has been extended."

[permalink]
 
Average Rating: 6.0 (5 votes)  
Rate this item:
 
TRIM2
  Vlad Suprunov
  Macro entry for "APDL Guru" contest by PADT. "Here is the scenario. I have a number of straight lines in the XY plane. I would like a macro that does the following:
  1. Allows me to select any two lines, but only two.
  2. If the two lines intersect, they are both divided at the intersection point and the resulting four lines are connected such that they share a common keypoint at the intersection point.
  3. If the lines do not intersect, the first line is extended until it is tangent to the second line.
The macro should be capable of handling the special case in which the second line needs to be extended in order for intersection to occur. If this case should occur, the macro should extend both lines to a common intersection point and then join the two lines together. However, if the second line does not require extension, then the macro should divide the second line at the intersection point and join the two pieces of the original second line together with the first line, which has been extended."

[permalink]
 
Average Rating: 6.7 (3 votes)  
Rate this item:
 
TRIM3
  Charles Wong
  Macro entry for "APDL Guru" contest by PADT. "Here is the scenario. I have a number of straight lines in the XY plane. I would like a macro that does the following:
  1. Allows me to select any two lines, but only two.
  2. If the two lines intersect, they are both divided at the intersection point and the resulting four lines are connected such that they share a common keypoint at the intersection point.
  3. If the lines do not intersect, the first line is extended until it is tangent to the second line.
The macro should be capable of handling the special case in which the second line needs to be extended in order for intersection to occur. If this case should occur, the macro should extend both lines to a common intersection point and then join the two lines together. However, if the second line does not require extension, then the macro should divide the second line at the intersection point and join the two pieces of the original second line together with the first line, which has been extended."

[permalink]
 
Average Rating: 10.0 (2 votes)  
Rate this item:
 
TRIM4
  Navaneeth Bashyam
  Macro entry for "APDL Guru" contest by PADT. "Here is the scenario. I have a number of straight lines in the XY plane. I would like a macro that does the following:
  1. Allows me to select any two lines, but only two.
  2. If the two lines intersect, they are both divided at the intersection point and the resulting four lines are connected such that they share a common keypoint at the intersection point.
  3. If the lines do not intersect, the first line is extended until it is tangent to the second line.
The macro should be capable of handling the special case in which the second line needs to be extended in order for intersection to occur. If this case should occur, the macro should extend both lines to a common intersection point and then join the two lines together. However, if the second line does not require extension, then the macro should divide the second line at the intersection point and join the two pieces of the original second line together with the first line, which has been extended."

This macro won the above contest.
[permalink]
 
Average Rating: 10.0 (2 votes)  
Rate this item:
 
TRIM5
  Rod Scholl & Jeff Strain (PADT)
  Macro entry for "APDL Guru" contest by PADT. "Here is the scenario. I have a number of straight lines in the XY plane. I would like a macro that does the following:
  1. Allows me to select any two lines, but only two.
  2. If the two lines intersect, they are both divided at the intersection point and the resulting four lines are connected such that they share a common keypoint at the intersection point.
  3. If the lines do not intersect, the first line is extended until it is tangent to the second line.
The macro should be capable of handling the special case in which the second line needs to be extended in order for intersection to occur. If this case should occur, the macro should extend both lines to a common intersection point and then join the two lines together. However, if the second line does not require extension, then the macro should divide the second line at the intersection point and join the two pieces of the original second line together with the first line, which has been extended."

[permalink]
 
Average Rating: 3.3 (3 votes)  
Rate this item:
 
V_BY_2A
  Michael W. Hiller (In2 Solutions, Inc.)
  Creates a volume by picking two opposed areas. From the author:
"It was meant for the case where you have two opposite areas each area having 4 lines (4 keypoints). It will automate volume creation from 2 areas, or you can modify it as necessary. It includes logic to (try to) avoid unnecessary twisting (bowtie)."

[permalink]
 
Average Rating: 10.0 (2 votes)  
Rate this item:
 
V2COMET
  Fern Thomassy (Southwest Research Institute)
  Creates a COMET/Acoustics results file of velocity results.
[permalink]
 
Average Rating: 10.0 (1 vote)  
Rate this item:
 
V2GLUE
  Eric Miller (PADT)
  Work around for standard VGLUE that avoids the "ungluing" that can occur
[permalink]
 
Average Rating: 10.0 (7 votes)  
Rate this item:
 
VARTHK
  (CAEAI)
  "This macro applies a varying shell thickness based on a given function."
[permalink]
 
Average Rating: 10.0 (3 votes)  
Rate this item:
 
VERT
  Rod Scholl (PADT)
  Generates a big long vertical line at specified location
[permalink]
 
Average Rating: 10.0 (2 votes)  
Rate this item:
 
VGET_SUBS
  Kiran Sreeram (GE Power Systems)
  "This macro stores the information requested by the user for a selected set of nodes or elements in an array called RESULT_COMP. This information can be any thing that is in the command *vget,for nodes & elements. The reason for this macro is that when using *vget the node or elem numbers must be sequential, in order to get any information. This macro deals with that i.e. by using *vmask, one can always do this manually, however this macro is helpful when needed to use regularly.
This macro also creates a txt file for the requested information."

[permalink]
 
Average Rating: 10.0 (14 votes)  
Rate this item:
 
VLSM
  John Crawford (Honeywell)
  I ended up writing a macro that selects/reselects/unselects meshed areas, and then copied it and modified it for doing the same with volumes.
[permalink]
 
No rating yet  
Rate this item:
 
VOL
  John Swanson (SAS, Inc./ANSYS, Inc.)
  Used to calculate total volume of selected elements.
[permalink]
 
Average Rating: 10.0 (6 votes)  
Rate this item:
 
VOLSATELEM
  Doug Scott (Honeywell)
  "This macro basically takes the selected elements (8-noded bricks), creates volumes at the elements, assigns the appropriate attributes to the volumes, and then deletes the selected elements."
[permalink]
 
Average Rating: 10.0 (3 votes)  
Rate this item:
 
VSLM_BW
  Bram Weisman (SBM-IMODCO)
  Based on VLSM macro, created by John Crawford to select/reselect/unselect meshed volumes. Written to take advantage of vectors to execute faster.
[permalink]
 
No rating yet  
Rate this item:
 
VTHICK
  Rick Fischer (Marconi Communications)
  "This macro sets variable shell thickness based on thicknesses at corners of a surface. Only problem is that the attributes are being applied as a real constant. But, rthick creates r cards, one for each element, with real numbers the same as the argument. This could overwrite the reals used for the attributes, depending on how the model is numbered."
[permalink]
 
Average Rating: 10.0 (1 vote)  
Rate this item:
 
X_CECYC
  Shen-Yeh Chen (Honeywell)
  "This macro will create CE for cyclic sysmtric sector, even if the mesh on the two sectors interfaces are dissimillar."
[permalink]
 
Average Rating: 10.0 (3 votes)  
Rate this item:
 
X_ESUM
  Shen-Yeh Chen (Honeywell)
  "Calculate and print the summary of (selected) elements area or volume, and centroid. The result will be saved in the parameter _ParName."
[permalink]
 
Average Rating: 10.0 (4 votes)  
Rate this item:
 
X_NOFFST
  Shen-Yeh Chen (Honeywell)
  Copies nodes (and elements) by x, y, z offset. Example of the use of a vector command with NMODIF.
[permalink]
 
Average Rating: 10.0 (2 votes)  
Rate this item:
 
X_SHL2SLD
  Shen-Yeh Chen (Honeywell)
  "This macro will sweep the currently selected or assigned SHELL elements into SOLID elements."
[permalink]
 
Average Rating: 10.0 (11 votes)  
Rate this item:
 
YZCURV
  Bill Bulat (OMM)
  "Here's something I used recently (NOT FULLY TESTED!!). Edit as needed to obtain curvature in other global planes (I wrote this to obtain curvature in global yz plane - a symmetry plane in a half symmetry model I recently created). Also reports the average radius of curvature if you're inclined to ignore the speed control bumps. My intention was to make this applicable to arbitrarily large deformations."
[permalink]
 
Average Rating: 8.8 (4 votes)  
Rate this item: