Professional Documents
Culture Documents
How the API was utilized for the model construction is discussed. Some
of the results of the analysis output are shown, and the implications of
this output is briefly shared.
Two other uses of the API are also briefly shown and discussed.
Femap V93 2007
Secondary
P
Surface
Primary
Surface
P
Rubber Gasket
Femap V93 2007
A way was needed to import these point locations, associate them with geometry and then
to create a mesh that included nodes at each of these point locations. After this was
accomplished, a way was needed to enforce contact between these bumps and the
secondary surface.
Bump Modeling Approach
Bump Stiffness
Initial Gap
Overall Algorithm Flow
Load and
Meshing & Gap Element Boundary
Mesh Copying Creation Condition
Specification
Submit the
Femap V93 2007
Model to Solver
Example Code: Specifying of Hard Points
Cycles through all areas, Scurr is the identifying variable for the current
While Scurr < SLast surface
LastInterest = hardSet.Last
I=0
rc = hardSet.Reset
Do
t = hardSet.Next() Cycles through each point contained in the set named hardSet
rc = pt.Get(t)
Pcurr(0) = pt.x
Pcurr(1) = pt.y
Pcurr(2) = pt.z
rc = su.XYZToParam(Pcurr, uuu, vvv)
Changes the current points coordinates from Global Cartesian to Parametric
If rc = su.Inside(uuu, vvv) Then
Uses a function associated with the surface object to check if the current point
su.MeshPoint(I) = t lies within the boundaries of the current surface
I = I+1
rc = hardSet.Remove(t) Uses a function associated with the surface object to check if the current point
End If lies within the boundaries of the current surface
Loop Until t = LastInterest
su.Put( su.ID )
Femap V93 2007
rc = su.Next()
Scurr = su.ID This bit of code cycles through each area searching
rc = femap.feAppStatusUpdate(Scurr) for points that lie in its boundaries.
Wend
If the program finds a point to be within the
boundaries of the area, it sets the point as a hard
point.
Because of the inefficiency of
performing an analysis on the
entire model, the program was
written to allow the user to
specify what their region of
interest was.
Femap V93 2007
Desired Outputs
The Tet Time Step Calculator was written to be used with LS-DYNA. The API calculates the
characteristic speed of a stress wave through the selected elements, and then creates an
output vector so that the speeds can be contoured. The API makes preparing a mesh for
use in LS-DYNA much easier.
API Functionality: Two More Examples
2. ASME Pressure Vessel
Femap V93 2007
Femap V93 2007
ASME Div VIII requires stress outputs for Stress Intensity and tensile membrane stresses.
Femaps powerful API language provides an elegant solution to provide additional post-
processing capabilities.
Author Biography