Return to the examples

 


Post-processing an entire structure with excel using FeResPost COM component

 

 

Purpose of the excel workbook

 

The excel workbook presented here automates a whole set of post-processing operations including:


The example presented here corresponds to "COMEX/EX10/Postproject.xls" workbook distributed in the FeResPost examples. 

 

Worksheets

 

FeResPost  examples are provided with the Nastran finite element model of a small satellite and analysis decks that allow the user to produce all the result files needed to run the "PostProject.xls" macros. In order to run a post-processing, you first need to ensure that the paths to the model files, and result files are properly set up.

The workbook can be modified and adapted to the post-processing of  other structures and with other selection of load cases. One presents and explains below the purpose and structure of each type of worksheet needed in the definition of post-processing data.

"DefDbLc" worksheet


The "DefDbLc" worksheet contains the data needed to properly define the model databases and the results access (load case definitions). Each line in the worksheet corresponds to the definition of a model or load case:

o    The cell that follows defines the name of the database.

o    Keyword "GMSH" is followed by the name of GMSH mesh file in which the model will be exported after its creation for later visualization.

o    Keyword "BDF" is followed by the path to a BDF file from which Nastran BDF model is read.

o    Keyword "SESSION" is followed by the path(s) to one (several) Patran groups session file(s) from which groups are read.

o    Keyword 'CLADB" is followed by the path(s) to one (several) NDF files from which a composite database is build. One can also put the name of the current model database. Then, all the materials and laminates found in corresponding model are also used in the construction of the composite database.

o    The cell that follows is the name of the load case in the post-processing project.

o    The third cell in the line contains the name of the post-processing database that shall be used for the post-processing of the load case.

o    Then keyword XDB is followed by three cells that contain the path to XDB file name, the load case name in Nastran result file, and the sub-case name (usually "Statics"). Note that the elementary load case name in post-processing project is usually the same as Nastran load case name, but it is not an obligation.

o    The cell that follows is the name of combined load case. Note that no elementary or combined load cases can share the same name.

o    The third cell contains the number of elementary load cases used in the linear combination.

o    Then pairs of factors and elementary load case names define the linear combinations.

Note that several load case definition worksheets can co-exist in the post-processing project.

"Selection" worksheets


The load cases defined in the active load case definitions worksheet are not necessarily all post-processed. The selection worksheets allow to select a sub-set of these load cases for post-processing. The selection worksheet also allows to associate each load case to one or several parameters, as shown below:

 

"post***" worksheets


The post-processing worksheets define the extraction of results and associated operations that are done for different parts of the structures for each post-processed load case.

The post-processing is done by calling VBA functions defined in one or several modules of the workbook. In the example below, the function calculates a Von Mises failure criterion. The data of the function are:


Information for the saving of results in GMSH files (GMSH file name and GMSH result name).


The function returns an array of one line and several columns containing the identification of critical FEM entity, maximum Von Mises stress and minimum RF.

The right part of the image shows that the results are reformatted. Then the call to a "saveArchive" specifies what must be saved in the excel result file.

Note that the parameters associated with current load cases are obtained by calling the "getParameter" function that has two arguments: the name of the current load case that ensures the function is recalculated each time the load case is changed, and the name of the parameter.

 

"LcSelector" worksheet


The "LcSelector" worksheet is used to control the automated calculation of a selection of load cases. The first steps of the operations are:


The value of the Combo box is then automatically set to the first load case in the selection, and the corresponding calculations are done. (We assume here that the "automatic calculation" option has been selected.) This means that the corresponding finite element model database is build, the current load case is set, and all the formulas in the "post_***" worksheets that refer directly or indirectly to the value of cell E6 are recalculated.

 

Then, the user can do several things:

 


Results


One presents below several examples of results that are produced by the automated post-processing with excel:

 

Note that GMSH is a program that allows several manipulation of results like:

Example of results archived in an excel workbook

insert strength ratios

Example of connection strength ratios in a GMSH file. Results presented here correspond to insert failure criterion.

Tsai-hill strength ratios

Example of strength ratios in a GMSH file. Results presented here correspond to Tsai-Hill failure criterion.

Core strength ratios

Example of strength ratios in a GMSH file. Results presented here correspond to core failure criterion.

 

Possible improvements


Reader should keep in mind that the "PostProject.xls" workbook is only an example of what is possible to do with FeResPost COM component and excel. This project can be improved and we list below some examples of what can be done (has been done) with the project:

References

 

More information on this example, and the manual explaining the functions used in this example are given in FeResPost Reference Manual.

 


 

FeResPost Home Page

 

ferespost_gg.gif