Jump to content

FEM Анализ

From FreeCAD Documentation
This page is a translated version of the page FEM Analysis and the translation is 53% complete.
Outdated translations are marked like this.

FEM Analysis

Расположение в меню
Model → Блок анализа
Верстаки
FEM
Быстрые клавиши
N A
Представлено в версии
-
См. также
FEM tutorial

Описание

The FEM Analysis command creates an Analysis container to hold all objects of a Finite Element Analysis. This container is mandatory. At least one of the following objects (apart from the mesh) is necessary for a mechanical analysis:

Применение

  1. There are several ways to invoke the command:
    • Press the New Analysis button.
    • Select the Model → New Analysis option from the menu.
    • Use the keyboard shortcut: S then A.
  2. A new Analysis container is created and set to active.
  3. Other objects can be added or removed from the Analysis container by drag and drop.
  4. To add new FEM objects to the document the analysis has to be active. Double-clicking on the Analysis container activates the analysis.

Свойства

  • ДанныеOutpuDir: Specifies the working directory of the analysis

Программирование

most code here is deprecated in 0.17.

  • new analysis
MechanicalAnalysis.makeMechanicalAnalysis( name )
  • add object to the analysis
App.ActiveDocument.MechanicalAnalysis.Member = App.ActiveDocument.MechanicalAnalysis.Member + [ (object) ]
  • remove object from the analysis
member = App.ActiveDocument.MechanicalAnalysis.Member
member.remove( documentobject )
 App.ActiveDocument.MechanicalAnalysis.Member = member

Примеры:

import MechanicalAnalysis
analysis = MechanicalAnalysis.makeMechanicalAnalysis("MechanicalAnalysis")
FemGui.setActiveAnalysis(analysis)

addobj = App.ActiveDocument.getObject("MechanicalMaterial")
App.ActiveDocument.MechanicalAnalysis.Member = App.ActiveDocument.MechanicalAnalysis.Member + [addobj]

removeobj = App.ActiveDocument.getObject("MechanicalMaterial")
member = App.ActiveDocument.MechanicalAnalysis.Member
member.remove(removeobj)
App.ActiveDocument.MechanicalAnalysis.Member = member