Sunteți pe pagina 1din 9

Using Command Script to Obtain Surface Solution on Selected Solid Faces

Jay Shi & Sheldon Imaoka


1 2011 ANSYS, Inc. February 21, 2013

Problem Description
Stresses and strains are calculated at integration points and are extrapolated or copied to surface nodes, which reduces their accuracy. Surface solution is critical for some post-analysis calculation, e.g., fatigue life assessment. There is an option to output surface solution for certain legacy solid elements (// Feature Archive // I. Legacy Features // 5. Surface Solution) with limitations: Legacy types are not used by default in Workbench Mechanical; It cannot be used with nonlinear material models, nor large-strain effects, either. To address the above issues, one can use currenttechnology shell elements stress/strain evaluation only option to obtain accurate stresses & strains on surfaces.
2 2011 ANSYS, Inc. February 21, 2013

Solution
Use APDL command objects with ESURF to overlay a shell skin on selected solid face(s) using Named Selections; then, use ETABLE to collect stress/strain quantities on the shell skin. The procedure can be applied to linear or quadratic solid elements with quad or triangular surface mesh. It can be used with nonlinear materials and large deflection. The example also demonstrates how to: obtain element areas of the selected face; pass geometry/solution quantities to user-defined arrays; and calculate area-weighted average of stress over the selected face.

2011 ANSYS, Inc.

February 21, 2013

1. Define a surface Named Selection


The model features a solid, cantilever beam.

One section from the top surface of the beam is selected and named area in the Named Selections.

2011 ANSYS, Inc.

February 21, 2013

2. Overlay a shell skin on faces


Develop a command script with following procedure: 1. Select elements attached to the faces nodes 2. Determine the proper element/section/material type IDs for the shell skin. Note that the element type ID will be stored in variable MY_MAX_ETYP for later reference in the Solution command object. The material used should be the same as the underlying solid 3. Choose the correct shell element based on the solid element type 4. Use Keyoption (1) = 2 for shells in stress/strain evaluation only (no contribution to structural stiffness). Note that thickness will be one by default 5. Use ESURF command to generate the shell skin.

2011 ANSYS, Inc.

February 21, 2013

2. Over-lay a shell skin on area


Insert a command object that implements the procedure described in the previous slide:

2011 ANSYS, Inc.

February 21, 2013

3. Obtain surface quantities from the overlaid shell skin


Develop an APDL command script for post-processing: 1. Select shell elements based on element type ID 2. Use ETABLE to fill element Mises stresses and volumes. Note the element area equals to volume in value, due to unitary thickness. 3. Pass element table values to properly dimensioned array parameters: V_S, V_A 4. Calculate weight average of stresses:


5.

Shells:I

I AI
AI

Shells:I

Return result in parameter: MY_S_AVG.

2011 ANSYS, Inc.

February 21, 2013

3. Obtain surface quantities from the overlaid shell skin


Insert a command object in the Solution branch for procedure in the previous slide:

2011 ANSYS, Inc.

February 21, 2013

4. Results
Note that the result MY_S_AVG is returned automatically into the Details view, due to its prefix my_. The created Shells are not available in Mechanical but can be processed and visualized using commands such as PLESOL.

2011 ANSYS, Inc.

February 21, 2013

S-ar putea să vă placă și