FEM ConstraintSelfWeight: Difference between revisions

From FreeCAD Documentation
(Changed 1st sentence of 'Usage'.)
(V0.22 -> V1.0)
 
(27 intermediate revisions by 3 users not shown)
Line 4: Line 4:
<!--T:14-->
<!--T:14-->
{{Docnav
{{Docnav
|[[FEM_ConstraintPressure|Constraint pressure]]
|[[FEM_ConstraintCentrif|Constraint centrif]]
|[[FEM_ConstraintInitialTemperature|Constraint initial temperature]]
|[[FEM_ConstraintInitialTemperature|Constraint initial temperature]]
|[[FEM_Module|FEM]]
|[[FEM_Workbench|FEM]]
|IconL=FEM_ConstraintPressure.svg
|IconL=FEM_ConstraintCentrif.svg
|IconR=FEM_ConstraintInitialTemperature.svg
|IconR=FEM_ConstraintInitialTemperature.svg
|IconC=Workbench_FEM.svg
|IconC=Workbench_FEM.svg
Line 15: Line 15:
{{GuiCommand
{{GuiCommand
|Name=FEM ConstraintSelfWeight
|Name=FEM ConstraintSelfWeight
|MenuLocation=Model → Mechanical Constraints Constraint self weight
|MenuLocation=Model → Mechanical boundary conditions and loads → Gravity load
|Workbenches=[[FEM_Module|FEM]]
|Workbenches=[[FEM_Workbench|FEM]]
|SeeAlso=[[FEM_tutorial|FEM tutorial]]
|SeeAlso=[[FEM_tutorial|FEM tutorial]]
}}
}}
Line 23: Line 23:


<!--T:12-->
<!--T:12-->
Constraint self weight defines gravity acceleration 9,81 m/s^2 acting on the whole model in the prescribed direction.
Defines a gravity acceleration acting on the whole model in the prescribed direction.

<!--T:23-->
{{VersionMinus|0.21}}: The acceleration has a fixed value of 9.81 m/s^2.


==Usage== <!--T:3-->
==Usage== <!--T:3-->


<!--T:13-->
<!--T:13-->
# There are several ways to invoke the command:
# Press the {{Button|[[Image:FEM_ConstraintSelfWeight.svg|16px]]}} button or choose {{MenuCommand|Model → Mechanical Constraints → [[Image:FEM_ConstraintSelfWeight.svg|16px]] Constraint self weight‏‎}} from the top menu.
#* Press the {{Button|[[Image:FEM_ConstraintSelfWeight.svg|16px]] [[FEM_ConstraintSelfWeight|Gravity load]]}} button.
# You can modify the direction of gravitation by changing its vector coordinates in the property bar of newly created ConstraintSelfWeight object.
#* Select the {{MenuCommand|Model → Mechanical boundary conditions and loads → [[Image:FEM_ConstraintSelfWeight.svg|16px]] Gravity load}} option from the menu.
# A ConstraintSelfWeight object is created.
# {{Version|1.0}}: Optionally change its {{PropertyData|Gravity Acceleration}} property.
# Optionally change its {{PropertyData|Gravity Direction}} property.


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


<!--T:7-->
<!--T:7-->
'''New object'''
New object:

</translate>
</translate>
{{Code|code=
{{Code|code=
import ObjectsFem
import ObjectsFem
ObjectsFem.makeConstraintSelfWeight( name )
ObjectsFem.makeConstraintSelfWeight(name)
}}
}}
<translate>
<translate>


<!--T:8-->
<!--T:8-->
'''Add object to the analysis named Analysis'''
Add object to the analysis named Analysis:

</translate>
</translate>
{{Code|code=
{{Code|code=
App.ActiveDocument.Analysis.Member = App.ActiveDocument.Analysis.Member + [ (object) ]
App.ActiveDocument.Analysis.Member = App.ActiveDocument.Analysis.Member + [(object)]
}}
}}
<translate>
<translate>


<!--T:9-->
<!--T:9-->
'''Example:'''
Example:

</translate>
</translate>
{{Code|code=
{{Code|code=
import ObjectsFem
import ObjectsFem
selfweight_obj = ObjectsFem.makeConstraintSelfWeight( 'MySelfWeightObject' )
selfweight_obj = ObjectsFem.makeConstraintSelfWeight("MySelfWeightObject")
App.ActiveDocument.Analysis.Member = App.ActiveDocument.Analysis.Member + [selfweight_obj]
App.ActiveDocument.Analysis.Member = App.ActiveDocument.Analysis.Member + [selfweight_obj]

}}
}}
<translate>
<translate>


== Solver CalculiX == <!--T:5-->
== Solver CalculiX == <!--T:18-->
===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=== <!--T:10-->
===Limitations=== <!--T:19-->

Acceleration constant can be edited by hand modification after generating CalculiX input file.
<!--T:5-->
*{{VersionMinus|0.21}}: You need to modify the .inp file to edit gravity acceleration.
*Self-weight is applied to the element set Eall which includes the whole model.

===Editing CalculiX input file=== <!--T:20-->

<!--T:10-->
The acceleration constant can be manually edited after generating the CalculiX input file.


<!--T:6-->
<!--T:6-->
Example of lines in .inp file:
Example of lines in the .inp file:

</translate>
{{Code|code=
{{Code|code=
*DLOAD
*DLOAD
Eall,GRAV,9810,0.0,0.0,-1.0
Eall,GRAV,9810,0.0,0.0,-1.0
}}
}}
<translate>
where 9810 is gravity acceleration magnitude in [mm/s^2], and 0,0,-1 is direction vector.

<!--T:21-->
where 9810 is a gravity acceleration magnitude in [mm/s^2], and 0,0,-1 is the direction vector. The value can be set as a multiple of standard gravity acceleration to simulate loading of e.g. 4g.

== Solver Z88 == <!--T:22-->


== Solver Z88 == <!--T:11-->
<!--T:11-->
* not implemented in Z88 solver (March 2017)
* Currently, not implemented in the Z88 solver.




<!--T:15-->
<!--T:15-->
{{Docnav
{{Docnav
|[[FEM_ConstraintPressure|Constraint pressure]]
|[[FEM_ConstraintCentrif|Constraint centrif]]
|[[FEM_ConstraintInitialTemperature|Constraint initial temperature]]
|[[FEM_ConstraintInitialTemperature|Constraint initial temperature]]
|[[FEM_Module|FEM]]
|[[FEM_Workbench|FEM]]
|IconL=FEM_ConstraintPressure.svg
|IconL=FEM_ConstraintCentrif.svg
|IconR=FEM_ConstraintInitialTemperature.svg
|IconR=FEM_ConstraintInitialTemperature.svg
|IconC=Workbench_FEM.svg
|IconC=Workbench_FEM.svg
Line 94: Line 115:
{{FEM Tools navi{{#translation:}}}}
{{FEM Tools navi{{#translation:}}}}
{{Userdocnavi{{#translation:}}}}
{{Userdocnavi{{#translation:}}}}
{{clear}}

Latest revision as of 09:55, 21 April 2024

FEM ConstraintSelfWeight

Menu location
Model → Mechanical boundary conditions and loads → Gravity load
Workbenches
FEM
Default shortcut
None
Introduced in version
-
See also
FEM tutorial

Description

Defines a gravity acceleration acting on the whole model in the prescribed direction.

version 0.21 and below: The acceleration has a fixed value of 9.81 m/s^2.

Usage

  1. There are several ways to invoke the command:
    • Press the Gravity load button.
    • Select the Model → Mechanical boundary conditions and loads → Gravity load option from the menu.
  2. A ConstraintSelfWeight object is created.
  3. introduced in version 1.0: Optionally change its DataGravity Acceleration property.
  4. Optionally change its DataGravity Direction property.

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

  • version 0.21 and below: You need to modify the .inp file to edit gravity acceleration.
  • Self-weight is applied to the element set Eall which includes the whole model.

Editing CalculiX input file

The acceleration constant can be manually edited after generating the CalculiX input file.

Example of lines in the .inp file:

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

where 9810 is a gravity acceleration magnitude in [mm/s^2], and 0,0,-1 is the direction vector. The value can be set as a multiple of standard gravity acceleration to simulate loading of e.g. 4g.

Solver Z88

  • Currently, not implemented in the Z88 solver.