

The result of an error check on the Named Selection, where “1” means OK.Time of the result that was loaded by the SET command as a result of the Input arguments.The Commands Object creates three Output parameters that report: If ARG1 is nonzero and ARG2 is zero, the SET command reads the last substep of the Load Step number in ARG1.If ARG1 is nonzero, then ARG3 for time will be ignored.If ARG1 and ARG3 are zero, the SET,LAST command is used to get the result at the end of the analysis results file.The macro is written to apply the following logic to loading a result: If the Input arguments are all blank, then SET,LAST is used to read the final result. The macro is written to accept three Input arguments to indicate Load Step, Substep, or Time for the result to be formed. The named selection must exist and represent a set of faces on Bodies in the user’s Workbench Mechanical thermal model.Īrguments can be passed to a Commands Object in its Input details. In the following macro, the Named Selection “ Temp_Here” (not case sensitive) is used to indicate the nodes on one or more faces that are to be used to form an average. In order for a Workbench Mechanical Commands Object to find a portion of a model that is of interest to a user, a Named Selection can be used since it is turned into a Component in the Ansys APDL analysis. Using a Commands Object for Average Value on a Face This article illustrates an APDL Commands Object for Workbench Mechanical that can output the average temperature over a selected face or set of faces in a thermal model. Fortunately, the ARNODE function in Ansys can find the area on element faces associated with each node, and a weighted average can be formed.


To return an average temperature on the face of a body is not just a matter of finding a simple average over a number of nodes-the node temperature values need to be weighted by the amount of element face area associated with each node. If this is returned as an output parameter, it can be used in design studies. Users sometimes wish to measure an average value of a result on selected geometry. Temperature Monitoring and Perioperative Thermo-regulation Computing Average Temperature on One or More Faces of Bodies in Mechanical WorkbenchĪ Probe in Ansys Mechanical Workbench can return a maximum or minimum result on associated geometry, however it does not produce an average value of the result. Industrial Equipment and Rotating Machinery.Torsional Vibration Measurements Testing.Fluid Flow & Thermal Applications (CFD).Electronic and Electrical Applications (EM).
