forked from FreeCAD/FreeCAD
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FEM] implement centrifugal body loads, ccx label CENTRIF from *DLOAD…
… card
- Loading branch information
1 parent
27e98c3
commit 557be14
Showing
16 changed files
with
620 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,131 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<ui version="4.0"> | ||
<class>Form</class> | ||
<widget class="QWidget" name="Form"> | ||
<property name="geometry"> | ||
<rect> | ||
<x>0</x> | ||
<y>0</y> | ||
<width>350</width> | ||
<height>500</height> | ||
</rect> | ||
</property> | ||
<property name="windowTitle"> | ||
<string>Centrif parameter</string> | ||
</property> | ||
<layout class="QVBoxLayout" name="verticalLayout"> | ||
<item> | ||
<widget class="QGroupBox" name="groupBox_3"> | ||
<property name="maximumSize"> | ||
<size> | ||
<width>16777215</width> | ||
<height>1677215</height> | ||
</size> | ||
</property> | ||
<property name="title"> | ||
<string>Parameter</string> | ||
</property> | ||
<layout class="QVBoxLayout" name="verticalLayout_5"> | ||
<item> | ||
<layout class="QGridLayout" name="gridLayout"> | ||
<property name="horizontalSpacing"> | ||
<number>4</number> | ||
</property> | ||
<item row="0" column="0"> | ||
<widget class="QLabel" name="l_rotation_frequency"> | ||
<property name="sizePolicy"> | ||
<sizepolicy hsizetype="Expanding" vsizetype="Fixed"> | ||
<horstretch>0</horstretch> | ||
<verstretch>0</verstretch> | ||
</sizepolicy> | ||
</property> | ||
<property name="text"> | ||
<string>Rotation frequency f<sub>rot</sub> [rps]</string> | ||
</property> | ||
<property name="scaledContents"> | ||
<bool>false</bool> | ||
</property> | ||
<property name="alignment"> | ||
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set> | ||
</property> | ||
<property name="margin"> | ||
<number>0</number> | ||
</property> | ||
<property name="indent"> | ||
<number>-1</number> | ||
</property> | ||
</widget> | ||
</item> | ||
<item row="0" column="1"> | ||
<widget class="Gui::InputField" name="if_rotation_frequency"> | ||
<property name="sizePolicy"> | ||
<sizepolicy hsizetype="Expanding" vsizetype="Fixed"> | ||
<horstretch>0</horstretch> | ||
<verstretch>0</verstretch> | ||
</sizepolicy> | ||
</property> | ||
<property name="minimumSize"> | ||
<size> | ||
<width>80</width> | ||
<height>20</height> | ||
</size> | ||
</property> | ||
<property name="toolTip"> | ||
<string>revolutions per second</string> | ||
</property> | ||
<property name="layoutDirection"> | ||
<enum>Qt::LeftToRight</enum> | ||
</property> | ||
<property name="text"> | ||
<string>0.0</string> | ||
</property> | ||
<property name="alignment"> | ||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> | ||
</property> | ||
<property name="singleStep" stdset="0"> | ||
<double>1.000000000000000</double> | ||
</property> | ||
<property name="maximum" stdset="0"> | ||
<double>1000000000.000000000000000</double> | ||
</property> | ||
<property name="unit" stdset="0"> | ||
<string>1/s</string> | ||
</property> | ||
<property name="decimals" stdset="0"> | ||
<number>2</number> | ||
</property> | ||
<property name="value" stdset="0"> | ||
<double>0.000000000000000</double> | ||
</property> | ||
</widget> | ||
</item> | ||
</layout> | ||
</item> | ||
</layout> | ||
</widget> | ||
</item> | ||
<item> | ||
<spacer name="verticalSpacer_2"> | ||
<property name="orientation"> | ||
<enum>Qt::Vertical</enum> | ||
</property> | ||
<property name="sizeHint" stdset="0"> | ||
<size> | ||
<width>20</width> | ||
<height>40</height> | ||
</size> | ||
</property> | ||
</spacer> | ||
</item> | ||
</layout> | ||
</widget> | ||
<customwidgets> | ||
<customwidget> | ||
<class>Gui::InputField</class> | ||
<extends>QLineEdit</extends> | ||
<header>Gui/InputField.h</header> | ||
</customwidget> | ||
</customwidgets> | ||
<resources/> | ||
<connections/> | ||
</ui> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
# *************************************************************************** | ||
# * Copyright (c) 2020 Bernd Hahnebach <bernd@bimstatik.org> * | ||
# * * | ||
# * This file is part of the FreeCAD CAx development system. * | ||
# * * | ||
# * This program is free software; you can redistribute it and/or modify * | ||
# * it under the terms of the GNU Lesser General Public License (LGPL) * | ||
# * as published by the Free Software Foundation; either version 2 of * | ||
# * the License, or (at your option) any later version. * | ||
# * for detail see the LICENCE text file. * | ||
# * * | ||
# * This program is distributed in the hope that it will be useful, * | ||
# * but WITHOUT ANY WARRANTY; without even the implied warranty of * | ||
# * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * | ||
# * GNU Library General Public License for more details. * | ||
# * * | ||
# * You should have received a copy of the GNU Library General Public * | ||
# * License along with this program; if not, write to the Free Software * | ||
# * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 * | ||
# * USA * | ||
# * * | ||
# *************************************************************************** | ||
|
||
__title__ = "FreeCAD FEM constraint centrif document object" | ||
__author__ = "Bernd Hahnebach" | ||
__url__ = "https://www.freecadweb.org" | ||
|
||
## @package constraint_centrif | ||
# \ingroup FEM | ||
# \brief constraint centrif object | ||
|
||
from . import base_fempythonobject | ||
|
||
|
||
class ConstraintCentrif(base_fempythonobject.BaseFemPythonObject): | ||
""" | ||
The ConstraintCentrif object | ||
""" | ||
|
||
Type = "Fem::ConstraintCentrif" | ||
|
||
def __init__(self, obj): | ||
super(ConstraintCentrif, self).__init__(obj) | ||
|
||
obj.addProperty( | ||
"App::PropertyFrequency", | ||
"RotationFrequency", | ||
"Constraint CENTRIF", | ||
"set rotation frequency f<sub>rot" | ||
) | ||
|
||
obj.addProperty( | ||
"App::PropertyLinkSubList", | ||
"AxisReference", | ||
"Constraint CENTRIF", | ||
"set line as axis of rotation" | ||
) |
Oops, something went wrong.