Mechanical APDL Basic Analysis Guide - Ansys

Mechanical APDL Basic Analysis Guide - Ansys Mechanical APDL Basic Analysis Guide - Ansys

www1.ansys.com
from www1.ansys.com More from this publisher
15.11.2012 Views

Chapter 7:The General Postprocessor (POST1) transformation of results data), you may see some unexpected results such as negative values after a square operation or negative values even when you request absolute values. This feature is mainly intended for reading in data from your own, special-purpose program. By writing output data from that program in the form of the above commands, you can read them into POST1 and process them the same way you would ANSYS results. If you do have an ANSYS results file, it will not be affected by these commands. 7.4.6. Splitting Large Results Files If you have a results file that is too large for you to postprocess on your local machine (such as from running a large model on a server or cluster), you can split the results file into smaller files based on subsets of the model. You can then process these smaller files on your local machine. For example, if your large model is an assembly, you can create individual results files for each part. You can also use this capability to create a subset of results for efficient postprocessing. For example, you could take the results file from a large model that had all results written, and create a smaller results file containing only stresses on the exterior surface. This smaller file would load and plot quickly, while not losing any of the detailed data written to the full results file. When you use this feature, the subset geometry is also written to the results file so that you do not need the database file (no SET required). However, you must not resume any database when postprocessing one of these results files, and your original results file must have the geometry written to it (i.e., do not issue /CONFIG,NORSTGM,1). To use the results file splitting feature: Command(s): RSPLIT GUI: Main Menu> General Postproc> You can use this feature in conjunction with INRES to limit the amount of data written to the results files. A brief example of how you might use this feature is shown below: /POST1 FILE,jobname,rst ! Import *.rst file ESEL,all INRES,nsol,strs ! Write out only nodal solution and stresses RSPLIT,ext,esel,myexterior ! Write the results for the exterior of the whole model to a file ! named myexterior.rst FINISH /EXIT ... /POST1 FILE,myexterior PLNS,s,eqv ! Postprocess the myexterior.rst file as usual PLNS,u,sum FINISH 7.4.7. Magnetics Command Macros The following ANSYS magnetic command macros are also available for calculating and plotting results from a magnetic analysis: • CURR2D (Main Menu> General Postproc> Elec&Mag Calc> Element Based> Current) calculates current flow in a 2-D conductor. • EMAGERR (Main Menu> General Postproc> Elec&Mag Calc > Element Based> Error Eval) calculates the relative error in an electrostatic or electromagnetic field analysis. 182 Release 13.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.

• EMF (Main Menu> General Postproc> Elec&Mag Calc> Path Based> EMF) calculates the electromotive force (emf ) or voltage drop along a predefined path. • EMFT (Main Menu> General Postproc> Elec&Mag Calc> Path Based> EMF) summarizes electromagnetic forces and torques on a selected set of nodes. • FLUXV (Main Menu> General Postproc> Elec&Mag Calc> Path Based> Path Flux) calculates the flux passing through a closed contour. • FMAGBC (Main Menu> Preprocessor> Loads> Define Loads> Apply> Electric> Flag> Comp. Force) applies force boundary conditions to an element component. • FMAGSUM (Main Menu>General Postproc>Elec&Mag Calc> Component Based> Force) summarizes electromagnetic force calculations on element components. • FOR2D (Main Menu> General Postproc> Elec&Mag Calc> Path Based> Mag Forces) calculates magnetic forces on a body. • HMAGSOLV (Main Menu> Solution> Solve> Electromagnet> Harmonic Analys> Opt&Solv) specifies 2-D harmonic electromagnetic solution options and initiates the solution for a harmonic analysis. • IMPD (Main Menu> General Postproc> Elec&Mag Calc> Path Based> Impedance) calculates the impedance of a device at a particular reference plane. • LMATRIX (Main Menu> Solution> Solve> Electromagnet> Static Analysis> Induct Matrix) calculates the inductance matrix and the total flux linkage in each coil for an arbitrary set of coils. • MAGSOLV (Main Menu> Solution> Solve> Electromagnet> Static Analysis> Opt&Solv) specifies magnetic solution options and initiates the solution for a static analysis. • MMF (Main Menu> General Postproc> Elec&Mag Calc> Path Based> MMF) calculates magnetomotive force along a path. • PERBC2D (Main Menu> Preprocessor> Loads> Define Loads> Apply> Magnetic> Boundary> Vector Poten> Periodic BCs) generates periodic constraints for 2-D planar analysis. • PLF2D (Main Menu> General Postproc> Plot Results> Contour Plot> 2D Flux Lines) generates a contour line plot of equipotentials. • PMGTRAN (Main Menu> TimeHist Postpro> Elec&Mag> Magnetics) summarizes electromagnetic results from a transient analysis. • POWERH (Main Menu> General Postproc> Elec&Mag Calc> Element Based> Power Loss) calculates the RMS power loss in a conducting body. • QFACT (Main Menu> General Postproc> Elec&Mag Calc> Cavity> Q-factor) calculates the quality factor for high-frequency electromagnetic resonators from a mode-frequency solution. • RACE (Main Menu> Preprocessor> Modeling> Create> Racetrack Coil) defines a "racetrack" current source. • SENERGY (Main Menu> General Postproc> Elec&Mag Calc> Element Based> Energy) determines the stored magnetic energy or co-energy. • SPARM (Main Menu> General Postproc> Elec&Mag Calc> Port> S-Parameters) calculates the scattering parameters between two ports of a rectangular waveguide with a TE10 mode excitation or a coaxial waveguide. • TORQ2D (Main Menu> General Postproc> Elec&Mag Calc> Path Based> Torque) calculates torque on a body in a magnetic field. • TORQC2D (Main Menu> General Postproc> Elec&Mag Calc> Path Based> Circular Torq) calculates torque on a body in a magnetic field based on a circular path. Release 13.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates. 7.4.7. Magnetics Command Macros 183

Chapter 7:The General Postprocessor (POST1)<br />

transformation of results data), you may see some unexpected results such as negative values after a square<br />

operation or negative values even when you request absolute values.<br />

This feature is mainly intended for reading in data from your own, special-purpose program. By writing<br />

output data from that program in the form of the above commands, you can read them into POST1 and<br />

process them the same way you would ANSYS results. If you do have an ANSYS results file, it will not be<br />

affected by these commands.<br />

7.4.6. Splitting Large Results Files<br />

If you have a results file that is too large for you to postprocess on your local machine (such as from running<br />

a large model on a server or cluster), you can split the results file into smaller files based on subsets of the<br />

model. You can then process these smaller files on your local machine. For example, if your large model is<br />

an assembly, you can create individual results files for each part.<br />

You can also use this capability to create a subset of results for efficient postprocessing. For example, you<br />

could take the results file from a large model that had all results written, and create a smaller results file<br />

containing only stresses on the exterior surface. This smaller file would load and plot quickly, while not losing<br />

any of the detailed data written to the full results file.<br />

When you use this feature, the subset geometry is also written to the results file so that you do not need<br />

the database file (no SET required). However, you must not resume any database when postprocessing one<br />

of these results files, and your original results file must have the geometry written to it (i.e., do not issue<br />

/CONFIG,NORSTGM,1).<br />

To use the results file splitting feature:<br />

Command(s): RSPLIT<br />

GUI: Main Menu> General Postproc><br />

You can use this feature in conjunction with INRES to limit the amount of data written to the results files.<br />

A brief example of how you might use this feature is shown below:<br />

/POST1<br />

FILE,jobname,rst ! Import *.rst file<br />

ESEL,all<br />

INRES,nsol,strs ! Write out only nodal solution and stresses<br />

RSPLIT,ext,esel,myexterior ! Write the results for the exterior of the whole model to a file<br />

! named myexterior.rst<br />

FINISH<br />

/EXIT<br />

...<br />

/POST1<br />

FILE,myexterior<br />

PLNS,s,eqv ! Postprocess the myexterior.rst file as usual<br />

PLNS,u,sum<br />

FINISH<br />

7.4.7. Magnetics Command Macros<br />

The following ANSYS magnetic command macros are also available for calculating and plotting results from<br />

a magnetic analysis:<br />

• CURR2D (Main Menu> General Postproc> Elec&Mag Calc> Element Based> Current) calculates<br />

current flow in a 2-D conductor.<br />

• EMAGERR (Main Menu> General Postproc> Elec&Mag Calc > Element Based> Error Eval) calculates<br />

the relative error in an electrostatic or electromagnetic field analysis.<br />

182<br />

Release 13.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information<br />

of ANSYS, Inc. and its subsidiaries and affiliates.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!