FEM ConstraintSelfWeight: Difference between revisions

From FreeCAD Documentation
m (fixed {{GuiCommand}})
No edit summary
(9 intermediate revisions by 6 users not shown)
Line 1: Line 1:
<languages/>
<languages/>
<translate>
<translate>

<!--T:14-->
<!--T:14-->
{{Docnav
{{Docnav|[[FEM_ConstraintPressure|Constraint pressure]]|[[FEM_ConstraintBearing|Constraint bearing]]|[[FEM_Module|FEM]]|IconL=FEM_ConstraintPressure.png|IconC=Workbench_FEM.svg|IconR=FEM_ConstraintBearing.png}}
|[[FEM_ConstraintPressure|Constraint pressure]]
|[[FEM_ConstraintInitialTemperature|Constraint initial temperature]]
|[[FEM_Module|FEM]]
|IconL=FEM_ConstraintPressure.svg
|IconR=FEM_ConstraintInitialTemperature.svg
|IconC=Workbench_FEM.svg
}}


<!--T:1-->
<!--T:1-->
Line 8: Line 16:
|Name=FEM ConstraintSelfWeight
|Name=FEM ConstraintSelfWeight
|MenuLocation=Model → Mechanical Constraints → Constraint self weight
|MenuLocation=Model → Mechanical Constraints → Constraint self weight
|Workbenches=[[FEM Module|FEM]]
|Workbenches=[[FEM_Module|FEM]]
|Shortcut={{KEY|C}} {{KEY|W}}
|SeeAlso=[[FEM_tutorial|FEM tutorial]]
|SeeAlso=[[FEM_tutorial|FEM tutorial]]
}}
}}
Line 21: Line 28:


<!--T:13-->
<!--T:13-->
# To invoke command either:
# There are several ways to invoke the command:
#* Press on the [[Image:FEM ConstraintSelfWeight.png|24px]] button
#* Press the {{Button|[[Image:FEM_ConstraintSelfWeight.svg|16px]] [[FEM_ConstraintSelfWeight|ConstraintSelfWeight]]}} button.
#* Choose {{KEY|Model}}'''Mechanical Constraints'''{{KEY|[[Image:FEM ConstraintSelfWeight.png|24px]] Constraint self weight}} from the top menu
#* Select the {{MenuCommand|Model → Mechanical Constraints → [[Image:FEM_ConstraintSelfWeight.svg|16px]] Constraint self weight}} option from the menu.
# You can modify the direction of gravitation by changing its vector coordinates in the property bar of newly created ConstraintSelfWeight object.
#* 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.


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


<!--T:7-->
<!--T:7-->
* new object
'''New object'''
</translate>
</translate>
{{Code|code=
{{Code|code=
Line 39: Line 45:


<!--T:8-->
<!--T:8-->
* add object to the analysis named Analysis
'''Add object to the analysis named Analysis'''
</translate>
</translate>
{{Code|code=
{{Code|code=
Line 47: Line 53:


<!--T:9-->
<!--T:9-->
'''Example:'''
* example:
</translate>
</translate>
{{Code|code=
{{Code|code=
Line 71: Line 77:
Eall,GRAV,9810,0.0,0.0,-1.0
Eall,GRAV,9810,0.0,0.0,-1.0
}}
}}
where 9810 is gravity acceleration in [mm/s^2]
where 9810 is gravity acceleration magnitude in [mm/s^2], and 0,0,-1 is direction vector.


== Solver Z88 == <!--T:11-->
== 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}}


<!--T:16-->
<!--T:15-->
{{Docnav
{{FEM Tools navi}}
|[[FEM_ConstraintPressure|Constraint pressure]]
|[[FEM_ConstraintInitialTemperature|Constraint initial temperature]]
|[[FEM_Module|FEM]]
|IconL=FEM_ConstraintPressure.svg
|IconR=FEM_ConstraintInitialTemperature.svg
|IconC=Workbench_FEM.svg
}}


<!--T:17-->
{{Userdocnavi}}
</translate>
</translate>
{{FEM Tools navi{{#translation:}}}}
{{Userdocnavi{{#translation:}}}}
{{clear}}
{{clear}}

Revision as of 19:39, 26 February 2021

FEM ConstraintSelfWeight

Menu location
Model → Mechanical Constraints → Constraint self weight
Workbenches
FEM
Default shortcut
None
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. There are several ways to invoke the command:
    • Press the ConstraintSelfWeight button.
    • Select the Model → Mechanical Constraints → Constraint self weight option from the menu.
  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 magnitude in [mm/s^2], and 0,0,-1 is direction vector.

Solver Z88

  • not implemented in Z88 solver (March 2017)