Difference between revisions of "FEM ConstraintSelfWeight"

From FreeCAD Documentation
Jump to navigation Jump to search
m (Linted templates)
 
(18 intermediate revisions by 4 users not shown)
Line 1: Line 1:
 +
<languages/>
 
<translate>
 
<translate>
 +
<!--T:14-->
 +
{{Docnav
 +
|[[FEM_ConstraintPressure|Constraint pressure]]
 +
|[[FEM_ConstraintBearing|Constraint bearing]]
 +
|[[FEM_Module|FEM]]
 +
|IconL=FEM_ConstraintPressure.png
 +
|IconC=Workbench_FEM.svg
 +
|IconR=FEM_ConstraintBearing.png
 +
}}
 +
 
<!--T:1-->
 
<!--T:1-->
{{GuiCommand|Name=FEM ConstraintSelfWeight|MenuLocation=FEM → Constraint self weight||Workbenches=[[Fem Workbench|FEM]]|Shortcut=C,W|SeeAlso=[[FEM_tutorial|FEM tutorial]]}}
+
{{GuiCommand
 +
|Name=FEM ConstraintSelfWeight
 +
|MenuLocation=Model → Mechanical Constraints → Constraint self weight
 +
|Workbenches=[[FEM Module|FEM]]
 +
|Shortcut={{KEY|C}} {{KEY|W}}
 +
|SeeAlso=[[FEM_tutorial|FEM tutorial]]
 +
}}
  
 
==Description== <!--T:2-->
 
==Description== <!--T:2-->
 +
 +
<!--T:12-->
 
Constraint self weight defines gravity acceleration 9,81 m/s^2 acting on the whole model in the prescribed direction.
 
Constraint self weight defines gravity acceleration 9,81 m/s^2 acting on the whole model in the prescribed direction.
  
==How to use== <!--T:3-->
+
==Usage== <!--T:3-->
#Click on [[Image:FEM ConstraintSelfWeight.png|32px]] or choose {{KEY| FEM}} {{KEY|[[Image:FEM ConstraintSelfWeight.png|32px]] Constraint self weight}} from the top menu or press {{KEY|C}} then {{KEY|W}} keys.
+
 
 +
<!--T:13-->
 +
# To invoke command either:
 +
#* Press on the [[Image:FEM ConstraintSelfWeight.png|24px]] button
 +
#* Choose {{KEY|Model}} → '''Mechanical Constraints''' → {{KEY|[[Image:FEM ConstraintSelfWeight.png|24px]] Constraint self weight}} from the top menu
 +
#* Use the keyboard shortcut: {{KEY|C}} then {{KEY|W}} keys.
 
#You can modify the direction of gravitation by changing its vector coordinates in the property bar of newly created ConstraintSelfWeight object.
 
#You can modify the direction of gravitation by changing its vector coordinates in the property bar of newly created ConstraintSelfWeight object.
  
==Scripting==<!--T:4-->
+
==Scripting== <!--T:4-->
  
* new object
+
<!--T:7-->
 +
'''New object'''
 
</translate>
 
</translate>
 
{{Code|code=
 
{{Code|code=
Line 20: Line 45:
 
<translate>
 
<translate>
  
* add object to the analysis
+
<!--T:8-->
 +
'''Add object to the analysis named Analysis'''
 
</translate>
 
</translate>
 
{{Code|code=
 
{{Code|code=
Line 27: Line 53:
 
<translate>
 
<translate>
  
Example:
+
<!--T:9-->
 +
'''Example:'''
 
</translate>
 
</translate>
 
{{Code|code=
 
{{Code|code=
Line 37: Line 64:
 
<translate>
 
<translate>
  
== Solver specific informations == 
+
== Solver CalculiX == <!--T:5-->
=== CalculiX ===
+
===Limitations===
====Limitations====<!--T:5-->
 
 
*You need to modify .inp file to edit gravity acceleration.
 
*You need to modify .inp file to edit gravity acceleration.
 
*Self weight is applied to the element set Eall means to the whole model.
 
*Self weight is applied to the element set Eall means to the whole model.
  
====Editing CalculiX input file====
+
===Editing CalculiX input file=== <!--T:10-->
 
Acceleration constant can be edited by hand modification after generating CalculiX input file.
 
Acceleration constant can be edited by hand modification after generating CalculiX input file.
  
Line 54: Line 80:
 
where 9810 is gravity acceleration in [mm/s^2]
 
where 9810 is gravity acceleration in [mm/s^2]
  
=== Z88 ===
+
== Solver Z88 == <!--T:11-->
 
* not implemented in Z88 solver (March 2017)
 
* not implemented in Z88 solver (March 2017)
 +
 +
<!--T:15-->
 +
{{Docnav
 +
|[[FEM_ConstraintPressure|Constraint pressure]]
 +
|[[FEM_ConstraintBearing|Constraint bearing]]
 +
|[[FEM_Module|FEM]]
 +
|IconL=FEM_ConstraintPressure.png
 +
|IconC=Workbench_FEM.svg
 +
|IconR=FEM_ConstraintBearing.png
 +
}}
  
 
</translate>
 
</translate>
 +
{{FEM Tools navi{{#translation:}}}}
 +
{{Userdocnavi{{#translation:}}}}
 
{{clear}}
 
{{clear}}
<languages/>
 

Latest revision as of 08:04, 29 February 2020

Other languages:
English • ‎français • ‎italiano • ‎română • ‎русский

FEM ConstraintSelfWeight.png FEM ConstraintSelfWeight

Menu location
Model → Mechanical Constraints → Constraint self weight
Workbenches
FEM
Default shortcut
C W
Introduced in version
-
See also
FEM tutorial


Description

Constraint self weight defines gravity acceleration 9,81 m/s^2 acting on the whole model in the prescribed direction.

Usage

  1. To invoke command either:
    • Press on the FEM ConstraintSelfWeight.png button
    • Choose ModelMechanical ConstraintsFEM ConstraintSelfWeight.png Constraint self weight from the top menu
    • Use the keyboard shortcut: C then W keys.
  2. You can modify the direction of gravitation by changing its vector coordinates in the property bar of newly created ConstraintSelfWeight object.

Scripting

New object

import ObjectsFem
ObjectsFem.makeConstraintSelfWeight( name )

Add object to the analysis named Analysis

App.ActiveDocument.Analysis.Member = App.ActiveDocument.Analysis.Member + [ (object) ]

Example:

import ObjectsFem
selfweight_obj = ObjectsFem.makeConstraintSelfWeight( 'MySelfWeightObject' )
App.ActiveDocument.Analysis.Member = App.ActiveDocument.Analysis.Member + [selfweight_obj]

Solver CalculiX

Limitations

  • You need to modify .inp file to edit gravity acceleration.
  • Self weight is applied to the element set Eall means to the whole model.

Editing CalculiX input file

Acceleration constant can be edited by hand modification after generating CalculiX input file.

Example of lines in .inp file:

*DLOAD
Eall,GRAV,9810,0.0,0.0,-1.0

where 9810 is gravity acceleration in [mm/s^2]

Solver Z88

  • not implemented in Z88 solver (March 2017)