ansys.net search results
quick file search:
    home » search results
 
 
Solution/Loads & B.C. Macros (29 entries)
 
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:
 
ACCURATE
  Vladimir Tkach (NPO Energomash)
  "This macro evaluate Mesh Discretization Error and Criteria for Accuracy of Finite Element Solutions based on Chandresh Shah’s article (2002). "
[permalink]
 
Average Rating: 9.4 (8 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:
 
BEAMPRES
  Bram Weisman (Alan C. McClure Associates, Inc.)
  Applies linearly varying pressure on beams.
[permalink]
 
Average Rating: 9.8 (22 votes)  
Rate this item:
 
BEARING
  Mark Kessler (BAE Systems)
  "Applies a bearing load using discreet forces. Written primarily to apply a bearing load to a model that has been tet meshed where using a pressure gradient would require rebuilding the model."
[permalink]
 
Average Rating: 8.7 (27 votes)  
Rate this item:
 
CBC_RAMP
  Bill Bulat (CSI)
  Macro for defining a cubic ramp for use w/ ANSYS/LS-Dyna for performing quasi-static explicit analyses.
[permalink]
 
Average Rating: 8.8 (17 votes)  
Rate this item:
 
DISTLOAD
  Nick Veikos (CAEAI), modified by Jim Kosloski (CAEAI)
  Attached is a macro for applying surface loads. You have to create a file with your own equation defining the load distribution as a function of x,y,z coordinates. You can use any equation possible with ADPL commands.
[permalink]
 
Average Rating: 9.7 (17 votes)  
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:
 
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:
 
FIX
  Kannan Sundararajan (General Electric-Power Systems)
  This macro uses the %_FIX% parameter to fix a particular nodal component after a load step.
For details on %_FIX%, see the Commands online help for the "D" command.
[permalink]
 
Average Rating: 2.5 (6 votes)  
Rate this item:
 
FLOHGEN
  (ANSYS, Inc.)
  Transfers joule heating loads from a harmonic analysis to Flotran analysis.
[permalink]
 
Average Rating: 10.0 (6 votes)  
Rate this item:
 
INITROT
  Sean Harvey (CSI)
  This macro takes in parameters to pass to the EDIVELO command for rotational input, this macro prompt the user for two points instead of 3 angles. Two point input is often times easier to enter than 3 direction angles
[permalink]
 
Average Rating: 10.0 (1 vote)  
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:
 
MOR for ANSYS
  Jan G. Korvink (University of Freiburg) and Evgenii B. Rudnyi (CADFEM)
  MOR for ANSYS (formerly mor4ansys) is "Model Order Reduction for ANSYS", useful to speed up transient or harmonic analyses.
[permalink]
 
Average Rating: -5.8 (6 votes)  
Rate this item:
 
PERI3D
  (EMI)
  This is an ANSYS macro that creates periodic boundary conditions for a 3D model. It is a modified version of Peri.mac that automatically determines the DOF per node and active coordinate system, therefore it can be used to couple structural symmetry model boundaries as well as FLOTRAN periodic boundaries.
[permalink]
 
Average Rating: 9.7 (18 votes)  
Rate this item:
 
PRESSURE
  Imad Tabsh (CompuSIM Inc.)
  Applies pressure from an equation onto a node or an area. User must modify macro with their own equation.
[permalink]
 
Average Rating: 10.0 (7 votes)  
Rate this item:
 
Pressure Load Macro [ZIP]
  Sheldon Imaoka (ANSYS, Inc.)
  "In ANSYS, pressure loading via the SFx family of commands allows users to apply a force per unit area in a direction normal to the surface. Structural surface effect elements SURF153 and SURF154 extend pressure loading capabilities by allowing users to specify normal, tangential, or arbitrary distributed loading. In fact, for an arbitrary ‘distributed loading vector,’ the full or projected area may be used, with or without the tangential component of load. This type of loading can be useful in mimicking a bearing load (include tangential component) or wind loading (no tangential component), to name a couple of examples.
"Because of the fact that the vector-type of pressure loading can be based on full or projected area, with or without the tangential component, trying to determine an appropriate value for the loading can be cumbersome. The author has written a simple macro which can be used as an example in utilizing surface effects more effectively by allowing the user to specify the total force instead of pressure – the macro calculates the appropriate pressure value to be applied on the surface effect elements."

(Week 27, week of 07/04/04.)
[permalink]
 
Average Rating: 8.9 (18 votes)  
Rate this item:
 
Pressure Mapping Example
  Bob Weathers (Trane)
  An example which demonstrates mapping between dissimilar meshes and element types.

At the bottom of the macro is an example of how to apply the mapped results from the first model onto the second using a TABLe. The TABLe uses the second model's node numbers (sorted and stored in ascending order) to index into the TABLe. This results in a very efficient way to map boundary conditions that's fast and uses minimum memory.


[permalink]
 
Average Rating: 7.7 (11 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:
 
RANDOM
  Jeff Strain (PADT)
  "Performs PSD base excitation analysis on a component in units of G^2/Hz.
Execute random,1 to perform a modal analysis prior to the PSD analysis. Execute random with no arguments to run the PSD solution only.
Apply constraints before running this macro"

[permalink]
 
Average Rating: 10.0 (9 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:
 
SUBCONT
  Joe Metrisin (Florida Turbine Technologies, Inc.)
  "Attached is a macro I wrote years ago which automates substructuring with contact. Just build the complete model with contact elements included, and create the component names as described in the macro header. The macro puts all the linear elements into a superelement and iterates on the contact elements only."
[permalink]
 
Average Rating: 10.0 (8 votes)  
Rate this item:
 
WFMIN107
  Jan Christian Anker (Anker-Zemer)
  Wavefront optimization. Original link can be found here on Anker-Zemer's website.
[permalink]
 
Average Rating: 10.0 (5 votes)  
Rate this item:
 
X_BCSLOPE
  Shen-Yeh Chen (Honeywell)
  "This macro will apply slope BC value on the selected nodes according to the active coordinate value in sepcified DOF."
[permalink]
 
Average Rating: 10.0 (5 votes)  
Rate this item:
 
X_NFOR2F
  Shen-Yeh Chen (Honeywell)
  "I usually use the following macro to "extract" element force, add a negative sign, and transfer into nodal force. This can sometimes be used to get the cross-section force on the cutting face, and do a force-controlled (instead of displacement-controlled) sub-model."
[permalink]
 
Average Rating: 9.5 (10 votes)  
Rate this item:
 
X_TH2ST
  Shen-Yeh Chen (Honeywell)
  "This macro transfers the temperature distribution from a thermal analysis into structural temperature load. Only pre-selected nodes are dumped. The output file name is x_th2st.tld." (Note that there is a built-in ANSYS command called LDREAD command which does similar functionality)
[permalink]
 
Average Rating: 9.3 (14 votes)  
Rate this item:
 
xPSD
  (PADT)
  "One of the most important types of mechanical simulation is the prediction of a system’s behavior due to random vibration. Almost every type of machinery, from computer circuit cards to satellite sub-assemblies, undergoes some type of random vibration, and it is the job of the analyst to determine if the system can stand up to this loading. xPSD is a tool from PADT that allows a user to take the results of a standard modal analysis and conduct fast, flexible studies on the behavior of the structure under just such loading.
"xPSD uses the "large mass method" to capture the modal response of a system to random vibration, expressed in terms of a Power Spectral Density (PSD) input. The user can quickly specify many different PSD input curves and extract the response of the system. The goal of the tool is to provide a simple - but fast and accurate - way for users to carry out PSD analyses. In fact, on a typical model (300,000 DOFs, 200+ modes), nodal response and 1-sigma values can be calculated in a matter of just minutes."

Although it is recommended to download the latest version from PADT's website above, there is an alternative download here.
[permalink]
 
Average Rating: 9.4 (8 votes)  
Rate this item: