FEM Analysis: Difference between revisions

From FreeCAD Documentation
No edit summary
(Marked this version for translation)
(8 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<languages/>
<translate>
<translate>
<!--T:51-->
{{Docnav||[[FEM_MaterialSolid|Material for solid]]|[[FEM_Module|FEM]]|IconC=Workbench_FEM.svg|IconR=FEM_MaterialSolid.png}}

<!--T:1-->
<!--T:1-->
{{GuiCommand|Name=FEM Analysis|MenuLocation=FEM → Analysis container‏‎||Workbenches=[[FEM Workbench|FEM]]|Shortcut=N,A|SeeAlso=[[FEM_tutorial|FEM tutorial]]}}
{{GuiCommand|Name=FEM Analysis|MenuLocation=Model → Analysis container‏‎||Workbenches=[[FEM Module|FEM]]|Shortcut=N,A|SeeAlso=[[FEM_tutorial|FEM tutorial]]}}


==Description== <!--T:5-->
==Description== <!--T:5-->

<!--T:46-->
The FEM Analysis could be seen as a Container that holds all objects of a Finite Element Analysis. It is mandatory to have a analysis container which holds all the needed objects. At least one of the following objects is needed for a mechanical analysis:
The FEM Analysis could be seen as a Container that holds all objects of a Finite Element Analysis. It is mandatory to have a analysis container which holds all the needed objects. At least one of the following objects is needed for a mechanical analysis:
* [[FEM_MaterialSolid| material]]
* [[FEM_MaterialSolid| material]]
Line 11: Line 17:


==How to use== <!--T:10-->
==How to use== <!--T:10-->

<!--T:47-->
# Press the {{KEY|[[Image:FEM_Analysis.png|24px]] [[FEM_Analysis|Analysis container]]}} button, or press {{KEY|N}} then {{KEY|A}} keys. A new Analysis is created and set to active.
# Press the {{KEY|[[Image:FEM_Analysis.png|24px]] [[FEM_Analysis|Analysis container]]}} button, or press {{KEY|N}} then {{KEY|A}} keys. A new Analysis is created and set to active.
# Other objects could be added or removed to the analysis container by drag and drop.
# Other objects could be added or removed to the analysis container by drag and drop.
Line 17: Line 25:


==Options== <!--T:15-->
==Options== <!--T:15-->

<!--T:48-->
* Up to date there is no option to choose.
* Up to date there is no option to choose.
* A frequency analysis in in development. See [http://forum.freecadweb.org/viewtopic.php?f=18&t=12189] for more informations.
* A frequency analysis in in development. See [http://forum.freecadweb.org/viewtopic.php?f=18&t=12189] for more informations.
Line 22: Line 32:


==Properties== <!--T:20-->
==Properties== <!--T:20-->

<!--T:49-->
* {{PropertyData|OutpuDir}}: Specifies the working directory of the analysis
* {{PropertyData|OutpuDir}}: Specifies the working directory of the analysis




==Scripting== <!--T:25-->
==Scripting== <!--T:25-->

<!--T:50-->
most code here is depreciated in 0.17.
most code here is depreciated in 0.17.
* new analysis
* new analysis
Line 50: Line 64:
App.ActiveDocument.MechanicalAnalysis.Member = member
App.ActiveDocument.MechanicalAnalysis.Member = member
}}
}}

<translate>
<translate>


<!--T:40-->
<!--T:40-->
Examples:
Examples:
Line 69: Line 82:
App.ActiveDocument.MechanicalAnalysis.Member = member
App.ActiveDocument.MechanicalAnalysis.Member = member
}}
}}

{{clear}}
{{clear}}
<translate>
<!--T:52-->
{{Docnav||[[FEM_MaterialSolid|Material for solid]]|[[FEM_Module|FEM]]|IconC=Workbench_FEM.svg|IconR=FEM_MaterialSolid.png}}


<!--T:53-->
{{FEM Tools navi}}


<!--T:54-->
<languages/>
{{Userdocnavi}}
</translate>

Revision as of 10:03, 11 February 2019

FEM Analysis

Menu location
Model → Analysis container‏‎
Workbenches
FEM
Default shortcut
N,A
Introduced in version
-
See also
FEM tutorial

Description

The FEM Analysis could be seen as a Container that holds all objects of a Finite Element Analysis. It is mandatory to have a analysis container which holds all the needed objects. At least one of the following objects is needed for a mechanical analysis:


How to use

  1. Press the Analysis container button, or press N then A keys. A new Analysis is created and set to active.
  2. Other objects could be added or removed to the analysis container by drag and drop.
  3. To add new FEM Objects to the document the analysis has to be active. Double click on the analysis does activate the analysis.


Options

  • Up to date there is no option to choose.
  • A frequency analysis in in development. See [1] for more informations.


Properties

  • DataOutpuDir: Specifies the working directory of the analysis


Scripting

most code here is depreciated 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

Examples:

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