Analysis Modeler |
Creating Virtual Parts |
![]() |
This macro shows you how to create an
Analysis document for a generative structural analysis. With this
scenario, you will cover all the steps of a generative analysis
application.
It creates an Analysis document, imports a Part document provided with the sample. An Analysis Case is created as for modal analysis. Some pre-processing data is defined by using the publication defined on the part. This example will focus on the creation of virtual parts. Then the virtual parts are clamped. On top of the design some additional mass is added. This example will also illustrate how to read pre-processing data.
|
||||||||
![]() |
CAAAniPreproOnVirtual is launched in CATIA
[1]. No open document is needed.
CAAAniPreproOnVirtual.catvbs is located in the CAAScdAniUseCases module. Execute macro (Windows only).
|
||||||||
![]() |
CAAAniPreproOnVirtual includes the
following steps:
Prolog
Create the Analysis document. The use of StartWorkbench will customize the analysis document as a generative one. it mean's that a 3D meshpart and an isotropic property will be automatically created as in the Generative workbench. Importing the Part DocumentIn order to import the document you have to give the path of this document, the late type which implements CATISamImportDefine and an array of CATVariant if you want to customize the import.
The Part document is fetched in the documentation installation path,
this path has already been stored in the [Top] Creating an Analysis Case for Frequency AnalysisAccording to the general Analysis Document structure, this macro uses some standard procedures to navigate or retrieve the required objects. First, from the document, we find the Analysis manager Object, the Analysis models and the Analysis cases Objects. From both last object (Analysis Model and Analysis case), you can get access to Analysis Sets and Analysis entities that defines the preprocessing actions. Inserting a new Frequency Case allows you to create objects sets for the new environmental specifications, and to implicitly require a normal modes solution procedure for the computation of the system vibration frequencies and normal modes for a given non-structural mass distribution under given restraints
[Top] Creating Virtual Parts inside the Property SetVirtual Parts are structures created without a geometric support. They represent bodies for which no geometry model is available, but which play a role in the structural analysis of single part or assembly systems. Virtual Parts are used to transmit action at a distance. Therefore they can be thought of as rigid bodies, except for the case where a lumped flexibility is explicitly introduced by the means of a spring element. For each hole we, will create a Rigid virtual part in order to fix the global structure.
[Top] Defining Boundaries
From the restraint set defined on the analysis case, we retrieve the collection of analysis entities. We add to this collection a fix (clamp) boundary condition and apply it on the virtual part. For this we have to create a reference on the analysis feature and use the AddSupportFromReference method. Then, same is done for the 3 other virtual parts. [Top] Defining Non Structural MassesDistributed Masses are used to model purely inertial (non-structural) system characteristics such as additional equipment. They represent scalar point mass fields equivalent to a total mass concentrated at a given point, distributed on a virtual part or on a geometric selection. We apply this mass of the top surface.
Note that to valuate the parameters, you can SetValue method and to read them again, you can use the GetValue that will return the value stored in the document. [Top] Computing the Case
This method will launch the mesher, generate the finite element model for preprocessing and launch the solver to generate the finite element results. [Top] Epilog
|
[Top]
This use case has shown how to produce in VB a complete analysis document with a generative way.
[Top]
[1] | Replaying a macro |
[2] | Physical types for structural analysis |
[Top] |
Copyright © 2001, Dassault Systèmes. All rights reserved.