ansys.net search results
quick file search:
    home » search results
 
 
Electromagnetics Macros (15 entries)
 
AC_ANGLE
  Mike Yaksh (NAC Int'l)
  Combines the real and imaginary components for a given load set to obtain the field at a specified electrical angle. This will only combine the nodal data and the SMISC element table items. For the NMISC element table items, use ac_anget.mac
[permalink]
 
Average Rating: 7.7 (28 votes)  
Rate this item:
 
COIL_EMF
  Bill Bulat (CSI)
  Used to report per-turn EMF induced in predefined closed loop paths.
[permalink]
 
Average Rating: 7.5 (12 votes)  
Rate this item:
 
EMF1
  Mike Yaksh (NAC Int'l)
  "Example of computing the emf in a coil for a 2D planar model. The last thing on the screen will be a plot of the EMF. This macro cycles thought difference positions. Some more details on the CEs can be found in the EMAG training guides. One of the problems in the training uses the CEs for a sliding type application. Hope this helps."
Please see updated EMF2 macro.
[permalink]
 
Average Rating: 8.8 (21 votes)  
Rate this item:
 
EMF2
  Bjoern Possner (VEM motors GmbH)
  Updated Mike Yaksh's EMF1 macro.
"The older version of the EMF1 macro doesn´t account for the speed or frequency with which the magnet is being mooved under the coil. In addition, this macro has a correction with the 3600rpm value."
[permalink]
 
Average Rating: 7.5 (12 votes)  
Rate this item:
 
EMTGEN
  Vladimir Zhulin (ANSYS, Inc.)
  TRANS126 elements may be used for simulating fully coupled electrostatic structural coupling between a MEMS device and ground provided the gap distance between the device and the ground is small compared to the overall surface area dimensions of the device. This assumption allows for a point-wise closed-form solution of capacitance between the surface nodes and ground -- ie CAP = EPS*AREA/GAP where EPS is the free-space permittivity, AREA is the area associated with the node, and GAP is the gap between the node and ground. The area for each node is computed using the ARNODE function in ANSYS.
This macro is used to attach TRANS126 elements from a set of surface nodes of a device to ground. The macro generates one TRANS126 element for every surface node. Nodes are created at a specfied offset representing the ground location.
See IN-3D input file for an example.
[permalink]
 
Average Rating: 8.8 (21 votes)  
Rate this item:
 
G_MUR
  Mike Yaksh (NAC Int'l)
  Loads the murx from the results for the active elements into material sets matching the element number +100 generates the macro chg_mat.mac
[permalink]
 
No rating yet  
Rate this item:
 
INDCTNC0
  Bill Bulat (ANSYS, Inc.)
  "You may be able to modify the following macro to suit your needs. I use it to calculate the inductance of excited MVP massive conductors. The volt DOF in ANSYS is not physical voltage, it's the time integral of voltage."
[permalink]
 
Average Rating: 10.0 (11 votes)  
Rate this item:
 
JB_FORC
  John Swanson (SAS, Inc./ANSYS, Inc.)
  A macro to apply JxB forces on a Flotran model. "FYI, here is a macro which I wrote for a Japan User Meeting. It calculates nodal forces from J X B and applies them as forces to the model. It is only for 8 node bricks, and it has NOT been tested."
[permalink]
 
Average Rating: -10.0 (4 votes)  
Rate this item:
 
PICKER
  Chris Masterson (University of Toronto)
  A while back I asked Bill Bulat for a pointer to a macro that could be used for meshing skin depths. He gave me some good pointers. I have since been working on a skin depth macro myself. I now have a first working beta". It is currently pretty crude since I'm relatively new to ANSYS, my geometry is pretty simple and the expansion algorithm I worked out is very simple. It will only mesh a line of rectangular prisms oriented with the current coordinate system. The end result is something similar to what a straight VSWEEP command could accomplish but with the difference that the user can specify exactly the thickness of the skin depth (or boundary layer if it suits) and how many layers of mesh should be contained in that skin depth. Suits my purposes for now so I thought that maybe somebody else might find a use as well. There are actually three macros: skin.mac - the main macro, and sorter.mac and picker.mac that are called from the main macro. The other caveat I guess is to mention that I wrote them for Ansys 5.5 and so some of the command names may be changed or obsolete (which includes jumping to a label which was already technically obsolete in 5.5) in newer versions."
"I posted some skin depth meshing macros to the Ansys egroup that you reproduced on your ansys.net page. Since then I have updated the macros significantly to make them more usable and a lot less buggy. The macro is now able to mesh full planes of rectangular prisms, instead of just a line of prisms. With the use of an extra coordinate system I use it to expand the mesh in both directions away from the surface of interest. The macros are now updated to Ansys version 5.6 as well (and in fact won't work in 5.5 due to VSWEEP no longer requiring source and target areas). Just thought I would send the new improved versions to save frustration if anyone ever uses them."
[permalink]
 
Average Rating: 8.1 (8 votes)  
Rate this item:
 
PLVLN
  Mike Yaksh (NAC Int'l)
  Macro for displaying vector plots with element outline overlay.
[permalink]
 
Average Rating: 10.0 (4 votes)  
Rate this item:
 
PUT_AMP
  Mike Yaksh (NAC Int'l)
  Applies J to selected elements for a specified current input (A). Model is assumed to be in SI units.
[permalink]
 
Average Rating: 10.0 (1 vote)  
Rate this item:
 
SKIN
  Chris Masterson (University of Toronto)
  A while back I asked Bill Bulat for a pointer to a macro that could be used for meshing skin depths. He gave me some good pointers. I have since been working on a skin depth macro myself. I now have a first working beta". It is currently pretty crude since I'm relatively new to ANSYS, my geometry is pretty simple and the expansion algorithm I worked out is very simple. It will only mesh a line of rectangular prisms oriented with the current coordinate system. The end result is something similar to what a straight VSWEEP command could accomplish but with the difference that the user can specify exactly the thickness of the skin depth (or boundary layer if it suits) and how many layers of mesh should be contained in that skin depth. Suits my purposes for now so I thought that maybe somebody else might find a use as well. There are actually three macros: skin.mac - the main macro, and sorter.mac and picker.mac that are called from the main macro. The other caveat I guess is to mention that I wrote them for Ansys 5.5 and so some of the command names may be changed or obsolete (which includes jumping to a label which was already technically obsolete in 5.5) in newer versions."
"I posted some skin depth meshing macros to the Ansys egroup that you reproduced on your ansys.net page. Since then I have updated the macros significantly to make them more usable and a lot less buggy. The macro is now able to mesh full planes of rectangular prisms, instead of just a line of prisms. With the use of an extra coordinate system I use it to expand the mesh in both directions away from the surface of interest. The macros are now updated to Ansys version 5.6 as well (and in fact won't work in 5.5 due to VSWEEP no longer requiring source and target areas). Just thought I would send the new improved versions to save frustration if anyone ever uses them."
[permalink]
 
Average Rating: 10.0 (2 votes)  
Rate this item:
 
SKNDPTH
  Bill Bulat (CSI)
  Used to calculate skin depth. Prompts for resistivity, relative permeability, and frequency.
[permalink]
 
Average Rating: 10.0 (3 votes)  
Rate this item:
 
SORTER
  Chris Masterson (University of Toronto)
  A while back I asked Bill Bulat for a pointer to a macro that could be used for meshing skin depths. He gave me some good pointers. I have since been working on a skin depth macro myself. I now have a first working beta". It is currently pretty crude since I'm relatively new to ANSYS, my geometry is pretty simple and the expansion algorithm I worked out is very simple. It will only mesh a line of rectangular prisms oriented with the current coordinate system. The end result is something similar to what a straight VSWEEP command could accomplish but with the difference that the user can specify exactly the thickness of the skin depth (or boundary layer if it suits) and how many layers of mesh should be contained in that skin depth. Suits my purposes for now so I thought that maybe somebody else might find a use as well. There are actually three macros: skin.mac - the main macro, and sorter.mac and picker.mac that are called from the main macro. The other caveat I guess is to mention that I wrote them for Ansys 5.5 and so some of the command names may be changed or obsolete (which includes jumping to a label which was already technically obsolete in 5.5) in newer versions."
"I posted some skin depth meshing macros to the Ansys egroup that you reproduced on your ansys.net page. Since then I have updated the macros significantly to make them more usable and a lot less buggy. The macro is now able to mesh full planes of rectangular prisms, instead of just a line of prisms. With the use of an extra coordinate system I use it to expand the mesh in both directions away from the surface of interest. The macros are now updated to Ansys version 5.6 as well (and in fact won't work in 5.5 due to VSWEEP no longer requiring source and target areas). Just thought I would send the new improved versions to save frustration if anyone ever uses them."n
[permalink]
 
Average Rating: 9.2 (6 votes)  
Rate this item:
 
TRQ_MSP
  Bill Bulat (CSI)
  Used to calculate torque about global Z axis for 3D MSP analyses.
[permalink]
 
Average Rating: 10.0 (5 votes)  
Rate this item: