Skip to content

Commit

Permalink
FEM: opensees, extend cantilever example
Browse files Browse the repository at this point in the history
  • Loading branch information
berndhahnebach committed Mar 21, 2020
1 parent 383f54a commit 1eb1bf9
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Mod/Fem/femexamples/ccx_cantilever_std.py
Expand Up @@ -81,6 +81,8 @@ def setup_cantileverbase(doc=None, solvertype="ccxtools"):
solver_object.WorkingDir = u""
elif solvertype == "elmer":
analysis.addObject(ObjectsFem.makeSolverElmer(doc, "SolverElmer"))
elif solvertype == "opensees":
analysis.addObject(ObjectsFem.makeSolverOpenSees(doc, "SolverOpenSees"))
elif solvertype == "z88":
analysis.addObject(ObjectsFem.makeSolverZ88(doc, "SolverZ88"))
if solvertype == "calculix" or solvertype == "ccxtools":
Expand Down
11 changes: 11 additions & 0 deletions src/Mod/Fem/femsolver/opensees/writer.py
Expand Up @@ -22,6 +22,17 @@
# * *
# ***************************************************************************

"""
# set up test file in FreeCAD Gui
from femexamples import ccx_cantilever_std as canti
canti.setup_cantileverhexa20faceload(solvertype="opensees")
# run OpenSees solver
from femsolver.run import run_fem_solver as run
run(App.ActiveDocument.SolverOpenSees)
"""

__title__ = "OpenSees Writer"
__author__ = "Bernd Hahnebach, Raeyat Roknabadi Ebrahim"
__url__ = "http://www.freecadweb.org"
Expand Down

0 comments on commit 1eb1bf9

Please sign in to comment.