Classical
Laminate Analysis in Excel using the FeResPost COM Component
Purpose
of the Excel workbook
The Excel
workbook discussed here illustrates what can be done with Excel, VBA and the FeResPost COM component. Here, we are particularly interested in the classical laminate analysis capabilities of
FeResPost. On this page, we present the use of the Excel workbook, but not the programming of the VBA code. Information on this VBA code can be found
in the FeResPost User Manual, and of course, you can read the VBA code with the Excel VBA editor.
The workbook presented here is provided with the FeResPost COM examples, in the "COMEX/EX06/LaminateAnalysis.xls" Excel
file. To run this example, you need to properly register the corresponding version of the FeResPost COM component. The way to do it is explained in the FeResPost
User Manual.
Note that
the Excel workbook we describe here is used
to perform Classical Laminate Analysis (CLA) with FeResPost in Excel,
without
interaction with Nastran or Samcef finite element results
post-processing. It does, however, allow you to import CLA entities from Nastran and Samcef FE models.
But the
reader should be aware that FeResPost's CLA classes are more powerful
than what
is presented here. In particular, they can interact with other
FeResPost
classes and be used in FEM results post-processing, for example by:- Calculating
composite failure criteria from ply stresses or strains extracted from
Nastran OP2, XDB or HDF5 files, or from Samcef DES&FAC files.
- Calculating
ply stresses and strains from shell forces, shell curvatures, shell
moments... also extracted from Nastran OP2, XDB or HDF5 files, or from Samcef
DES&FAC files.
Excel
workbook
We simply present here the different worksheets that can be used to
perform
classical laminate analysis (CLA) calculations. (You can access the VBA
code of
the application via the Excel VBA editor, but we do not explain here how
this code
works.)
"ClaDb" worksheet
The "ClaDb" worksheet should be considered as the main worksheet of
the Excel workbook. Among other things, it allows you to:
- Import and
export CLA entities (materials, laminates or loads):
- The difference
between "importation" and "reading" is that reading is meant for an
entire CLA database and that the previously stored CLA entities are
removed before reading the new ones. On the other hand, importation adds entities to the previous database, or replaces existing ones.
- The
importation can be done for an entire database, or only for materials,
laminates or laminate loads.
- One can import
CLA entities from a FeResPost neutral data file (NDF), from an ESAComp
database, from a Nastran model or from a Samcef model. The Combo box in
the spreadsheet allows the specification of the type of file one wants
to read or import.
- The stored database can only be exported to an NDF file. This is
done by clicking on "Save FeResPost NDF file" button.
- The list of
available CLA entities (materials, laminates and laminate loads) is
visible in the "ClaDb" worksheet.
- When you open
the workbook, the list of entities is generally not empty:
- This is
because a hidden spreadsheet called "NeutralLines" stores a database in
NDF format, and the content of this hidden spreadsheet is read
automatically when the workbook is opened. (The spreadsheet can be made visible with the Excel VBA editor.)
- You can update
the content of this hidden spreadsheet by clicking on
"SaveDbToNeutralLines" button.
- On the other
hand, by clicking on "RetrieveDbFromNeutralLines" button, you retrieve
the previously stored composite database.
- When the workbook is closed, Excel proposes:
- To export the current composite database to an external NDF file.
- To save the
current composite database in the "NeutralLines" workbook.
- To save the
current workbook.
If you want to retrieve the current
composite database next time you open the workbook, you have to make
sure that
the two previous operations have been done. (Be careful with this
because it is
a common mistake to forget one of the operations.)
- You can remove
entities stored in the database by selecting the corresponding range in
the list of materials, laminates or loads and clicking on "Delete
Selected Entities" button.

"MatEdit" worksheet
The "MatEdit" worksheet allows you to create or modify materials
(ClaMat objects) in the composite database:
- The "Combo
box" allows you to select a material existing in the composite database
for examination or modification.
- The "Insert in
DataBase" is used to insert the current material in the composite
database. The inserted material is made active in the Combo box. If a
material with the same ID already exists in the database, it is
replaced by the new one.
Material properties are edited by filling the lower
tables in
the worksheet:
- "Material ID"
table allows you to define the ID (string and/or integer identification)
and the type of material (isotropic, anisotropic...).
- The columns
"Moduli, CTEs, CMEs..." are meant to contain information related to the
material stiffnesses, CTE, CME, thermal or moisture conductivity.
- The
"Allowables" columns are devoted to the definition of allowables used
in the calculation of composite failure criteria.
- The "Units"
columns specify the system of units associated with the material and its
data.
Note that the user is entirely responsible for the data inserted in the
different tables. Data that cannot be interpreted by FeResPost are
simply
ignored when the material is inserted in the composite database. The user is referred to the description of "ClaMat" class and theoretical
background in the FeResPost
User Manual to identify which data must be defined.

"LamEdit" worksheet
The "LamEdit" worksheet is used to create new laminates (ClaLam
objects) or modify existing ones. The worksheet has three form controls:
- The "Existing
Laminate Selector" Combo box is used to select a laminate from the
composite database in order to modify it.
- The "Existing
Material Search" Combo box is used to find materials existing in the
composite database. This Combo box has been added to facilitate the
identification of materials already defined in the database.
- The "Insert in
DataBase" button inserts the defined laminate in the composite
database. If a laminate with the same ID already exists in the
database, it is replaced by the new one. The inserted laminate is made
the active one in the "Existing Laminate Selector" Combo box.
The data defining the laminate must be introduced in the tables below
the
controls:
- When a new
laminate is defined, it must be identified with an integer/string ID.
- The reference
temperature (refT) and moisture content (refH) can be defined.
These values correspond to the temperature or moisture content at which
the laminate is assumed to be stress-free. (The use of temperature or
moisture in laminate load response is optional.)
- The biggest
table contains the definition of the laminate layup. Each ply is
characterized by:
- A ply ID
(integer and/or string).
- A material
identified by its integer and/or string ID.
- A thickness.
- An angle
defining the orientation of the ply with respect to the laminate axes.
- An interlaminar shear stress (ILSS) allowable.
- One table is
devoted to the definition of laminate allowables. It is the same table
as for the material allowables. These allowables must be defined if one
wants to calculate laminate failure criteria using laminate allowables
instead of ply material allowables. (This is not very common though,
except for strain cut-off or combined strain criteria for which the
allowable is also often related to laminate thickness and not only to
ply materials.) The user is referred to the description of "ClaLam" class
and theoretical background in the FeResPost
User Manual to identify which data must be defined.
- As for
material definition, you can define the system of units in which
laminate definition quantities are expressed.

"LoadEdit" worksheet
The composite database also allows you to define and store "ClaLoad"
objects. The "LoadEdit" worksheet allows you to define or modify these
"ClaLoad" objects. The worksheet has two form controls:
- The "Existing
Load Selector" Combo box allows you to select a ClaLoad object already
defined in the composite database in order to modify it.
- The "Insert in
DataBase" button inserts the defined load in the composite database. If
a load with the same ID already exists in the database, it is replaced
by the new one. The inserted load is made the active one in the
«Existing Load Selector" Combo box.
The following data allow the definition of the load object:
- A load ID
(integer and/or string) must be associated with the ClaLoad object.
- The in-plane
force or strain components are defined by three real values.
- The bending
moments or curvature components are defined by three real values.
- The
out-of-plane shear force or strain components are defined by two real
values.
- Temperature
and/or moisture content can also be considered in the definition of
laminate loading.
- Finally, as for the material or laminate definition, a system of units can be
associated with the ClaLoad object.
For all the mechanical components of laminate loading, one can choose
to define
the component as strain or curvature, or as force or moment. This is
the reason
why a Combo box is associated with each component. The Combo box has two
values:
"SC" (strain/curvature) or "FM" (force/moment).

"DbUnitsEdit" worksheet
This worksheet allows you to modify the system of units associated with
entities
stored in the composite database. In the spreadsheet, one finds the
following
elements:
- The "Current
Db Units" table gives the system of units associated with the current
composite database. Note that this system of units is associated with the
database, but not to all the entities stored in the database.
- The "New
Units" table contains the definition of a new system of units one wishes to
associate to the composite database, or to entities stored in the
database.
- Several Combo
boxes allow you to select the new units. This facilitates the choice of a
valid unit for the different physical quantities.
- Several
buttons allow you to modify the composite database using the new units:
- The
"SetDbUnits" button allows you to associate a new unit system to the
composite database. This button does not modify the units of entities
stored in the database.
- The
"SetUnitsAllEntities" and "ChangeUnitsAllEntities" allow you to modify the
systems of units associated with all the entities stored in the database
(materials, laminates and loads).
- Then three
"SetUnits*" and "ChangeUnits*" allow you to modify the units of materials,
laminates or loads separately.
Note the difference between the "setting" and "changing" of
units:
- When units are
"set", the numerical values of corresponding entities are not modified.
This means that one really changes the physical quantities.
- On the other
hand, when units are "changed", the numerical values associated with
these units are converted. This means that the physical object
remains the same.

"MatProperties" worksheet
The "MatProperties" worksheet allows you to examine material
properties:
- A Combo box
allows you to select a material defined in the database.
- A Scroll bar
allows you to select an angle corresponding to the direction with respect to which
the different properties will be displayed.
Then, the following properties are displayed:
- The system of
units associated with the material.
- The stiffness
and compliance matrices.
- The CTE and
CME properties.
- The thermal
and moisture conductivity matrices.

"LamProperties" worksheet
The "LamProperties" worksheet allows you to examine material
properties:
- A Combo box
allows you to select a laminate defined in the database.
- A Scroll bar
allows you to select an angle corresponding to the direction with respect to which
the different properties will be displayed.
Then, the following properties are displayed:
- The system of
units associated with the laminate.
- The stiffness
and compliance matrices ABBD and abbd.
- The
out-of-plane shear stiffness and compliance matrices G and g.
- The laminate
thickness, areal mass and average densities.
- The CTE and
CME properties.
- The thermal
and moisture conductivities.
- A list of
engineering constants.

"LamLoadResponse_A"
worksheet
The "LamLoadResponse_A" worksheet allows the calculation of laminate
load response and ply failure indices for a specified loading. The
loading is
selected among the loads stored in the composite database.
The calculation data are defined as follows:
- A Combo box
allows you to select a laminate stored in the composite database.
- A Combo box
allows you to select a load stored in the composite database.
- A Scroll bar
allows you to specify an angle corresponding to the orientation of the
loading with respect to the laminate.
- Three Combo
boxes allow you to specify whether ply results are estimated at lower face,
mid-thickness and/or upper face of each ply.
- A Combo box
allows you to specify whether ply stress and strain results are given in
ply axes, or in a coordinate system defined with respect to laminate axes.
- A Scroll
bar allows you to define an angle with respect to laminate axes. This angle corresponds
to the coordinate system in which laminate stresses-strains are
expressed, and ply stresses and strains if required with respect to laminate axes.
- The
spreadsheet allows you to calculation of up to five failure criteria. For
each criterion, three Combo boxes define the calculation data:
- The selected
criterion.
- One can
require failure indices, reserve factors or an equivalent scalar stress
(when applicable).
- One can also
specify whether the calculation of failure criterion is done with
laminate or material allowables.
- For each
criterion, a cell contains the safety factor used in the calculation of
reserve factor.
The following results are calculated:
- The laminate
in-plane and bending or out-of-plane shear stress-strain state.
- Ply stresses,
strains and failure indices.

"LamLoadResponse_B" worksheet
This worksheet performs the same calculations as "LamLoadResponse_A",
but the loading applied to the laminate is directly defined in the
spreadsheet.
One no longer selects a loading defined in the composite database.
The definition of loading is done by specifying the different
components by
filling the corresponding cells. Combo boxes allow you to define whether
the
component is defined as shell forces or moments, or as average strain or
curvature. For the other data, please refer to the description of "LamLoadResponse_A" worksheet
for
more information.

"LamMinMaxCalcArray" worksheet
In "LamMinMaxCalcArray" worksheet, one calculates critical (i.e. the
value for most critical ply) failure indices, reserve factors or
equivalent
stresses, for several composite failure criteria and several load cases.
The calculation data are defined as follows:
- A Combo box
allows you to select a laminate stored in the composite database.
- A Scroll bar
allows you to specify an angle corresponding to the orientation of the
loading with respect to the laminate.
- Three Combo
boxes allow you to specify whether ply results are estimated at lower face,
mid-thickness and/or upper face of each ply.
- The
spreadsheet allows you to calculation of up to five failure criteria. For
each criterion, three Combo boxes define the calculation data:
- The selected
criterion.
- One can
require failure indices, reserve factors or an equivalent scalar stress
(when applicable).
- One can also
specify whether the calculation of failure criterion is done with
laminate or material allowables.
- For each
criterion, a cell contains the safety factor used in the calculation of
reserve factor.
- A "MIN" or
"MAX" value that specifies whether one wishes the most critical or least critical criterion.
(In the spreadsheet that calculates
the most critical ply, the "MIN/MAX" value is calculated by a formula
that depends on the type of result that is calculated. Its result is
"MAX" for equivalent stress, and "MIN" otherwise.)
The calculation is done by calling "calcPliesMinMaxCriterionArray"
that returns a matrix that performs the array calculation by a single
function
call. Note that a "LamMinMaxCalcArray" scalar version of the
spreadsheet
exists. In that version, each calculated value is obtained by a
separate call
to "calcPliesMinMaxCriterionArray" VBA function.

References
More information on this example, and on the functions it uses, is given in the FeResPost User Manual.