FEM: examples, copy code to run to module top
This commit is contained in:
@@ -22,6 +22,17 @@
|
||||
# ***************************************************************************
|
||||
|
||||
|
||||
# to run the example use:
|
||||
"""
|
||||
from femexamples import boxanalysis as box
|
||||
|
||||
box.setup_base()
|
||||
box.setup_static()
|
||||
box.setup_frequency()
|
||||
|
||||
"""
|
||||
|
||||
|
||||
import FreeCAD
|
||||
import ObjectsFem
|
||||
import Fem
|
||||
@@ -167,13 +178,3 @@ def setup_frequency(doc=None, solvertype="ccxtools"):
|
||||
|
||||
doc.recompute()
|
||||
return doc
|
||||
|
||||
|
||||
"""
|
||||
from femexamples import boxanalysis as box
|
||||
|
||||
box.setup_base()
|
||||
box.setup_static()
|
||||
box.setup_frequency()
|
||||
|
||||
"""
|
||||
|
||||
@@ -22,6 +22,18 @@
|
||||
# ***************************************************************************
|
||||
|
||||
|
||||
# to run the example use:
|
||||
"""
|
||||
from femexamples import ccx_cantilever_std as canti
|
||||
|
||||
canti.setup_cantileverbase()
|
||||
canti.setup_cantileverfaceload()
|
||||
canti.setup_cantilevernodeload()
|
||||
canti.setup_cantileverprescribeddisplacement()
|
||||
|
||||
"""
|
||||
|
||||
|
||||
import FreeCAD
|
||||
import ObjectsFem
|
||||
import Fem
|
||||
@@ -172,14 +184,3 @@ def setup_cantileverprescribeddisplacement(doc=None, solvertype="ccxtools"):
|
||||
|
||||
doc.recompute()
|
||||
return doc
|
||||
|
||||
|
||||
"""
|
||||
from femexamples import ccx_cantilever_std as canti
|
||||
|
||||
canti.setup_cantileverbase()
|
||||
canti.setup_cantileverfaceload()
|
||||
canti.setup_cantilevernodeload()
|
||||
canti.setup_cantileverprescribeddisplacement()
|
||||
|
||||
"""
|
||||
|
||||
@@ -25,6 +25,13 @@
|
||||
# contact example shell to shell elements
|
||||
# https://forum.freecadweb.org/viewtopic.php?f=18&t=42228
|
||||
# based on https://forum.freecadweb.org/viewtopic.php?f=18&t=42228#p359488
|
||||
# to run the example use:
|
||||
"""
|
||||
from femexamples.contact_shell_shell import setup
|
||||
setup()
|
||||
|
||||
"""
|
||||
|
||||
|
||||
import FreeCAD
|
||||
import ObjectsFem
|
||||
@@ -185,10 +192,3 @@ def setup(doc=None, solvertype="ccxtools"):
|
||||
|
||||
doc.recompute()
|
||||
return doc
|
||||
|
||||
|
||||
"""
|
||||
from femexamples.contact_shell_shell import setup
|
||||
setup()
|
||||
|
||||
"""
|
||||
|
||||
@@ -22,6 +22,32 @@
|
||||
# ***************************************************************************
|
||||
|
||||
|
||||
# to run the examples copy the code:
|
||||
"""
|
||||
from femexamples.manager import *
|
||||
run_all()
|
||||
|
||||
from femexamples.manager import *
|
||||
doc = run_boxanalysisstatic()
|
||||
doc = run_boxanalysisfrequency()
|
||||
doc = run_ccx_cantileverfaceload()
|
||||
doc = run_ccx_cantilevernodeload()
|
||||
doc = run_ccx_cantileverprescribeddisplacement()
|
||||
doc = run_contact_shell_shell()
|
||||
doc = run_material_nl_platewithhole()
|
||||
doc = run_material_multiple_twoboxes()
|
||||
doc = run_rcwall2d()
|
||||
doc = run_thermomech_flow1d()
|
||||
doc = run_thermomech_spine()
|
||||
|
||||
|
||||
doc = run_ccx_cantilevernodeload("calculix")
|
||||
doc = run_ccx_cantilevernodeload("ccxtools")
|
||||
doc = run_ccx_cantilevernodeload("z88")
|
||||
|
||||
"""
|
||||
|
||||
|
||||
import FreeCAD
|
||||
|
||||
|
||||
@@ -249,29 +275,3 @@ def run_all():
|
||||
run_rcwall2d()
|
||||
run_thermomech_flow1d()
|
||||
run_thermomech_spine()
|
||||
|
||||
|
||||
"""
|
||||
from femexamples.manager import *
|
||||
run_all()
|
||||
|
||||
from femexamples.manager import *
|
||||
doc = run_boxanalysisstatic()
|
||||
doc = run_boxanalysisfrequency()
|
||||
doc = run_ccx_cantileverfaceload()
|
||||
doc = run_ccx_cantilevernodeload()
|
||||
doc = run_ccx_cantileverprescribeddisplacement()
|
||||
doc = run_contact_shell_shell()
|
||||
doc = run_material_nl_platewithhole()
|
||||
doc = run_material_multiple_twoboxes()
|
||||
doc = run_rcwall2d()
|
||||
doc = run_thermomech_flow1d()
|
||||
doc = run_thermomech_spine()
|
||||
|
||||
|
||||
doc = run_ccx_cantilevernodeload("calculix")
|
||||
doc = run_ccx_cantilevernodeload("ccxtools")
|
||||
doc = run_ccx_cantilevernodeload("z88")
|
||||
|
||||
|
||||
"""
|
||||
|
||||
@@ -22,6 +22,14 @@
|
||||
# ***************************************************************************
|
||||
|
||||
|
||||
# to run the example use:
|
||||
"""
|
||||
from femexamples.material_multiple_twoboxes import setup
|
||||
setup()
|
||||
|
||||
"""
|
||||
|
||||
|
||||
import FreeCAD
|
||||
import ObjectsFem
|
||||
import Fem
|
||||
@@ -154,10 +162,3 @@ def setup(doc=None, solvertype="ccxtools"):
|
||||
|
||||
doc.recompute()
|
||||
return doc
|
||||
|
||||
|
||||
"""
|
||||
from femexamples.material_multiple_twoboxes import setup
|
||||
setup()
|
||||
|
||||
"""
|
||||
|
||||
@@ -22,6 +22,14 @@
|
||||
# ***************************************************************************
|
||||
|
||||
|
||||
# to run the example use:
|
||||
"""
|
||||
from femexamples.material_nl_platewithhole import setup
|
||||
setup()
|
||||
|
||||
"""
|
||||
|
||||
|
||||
import FreeCAD
|
||||
import ObjectsFem
|
||||
import Fem
|
||||
@@ -154,10 +162,3 @@ def setup(doc=None, solvertype="ccxtools"):
|
||||
|
||||
doc.recompute()
|
||||
return doc
|
||||
|
||||
|
||||
"""
|
||||
from femexamples.material_nl_platewithhole import setup
|
||||
setup()
|
||||
|
||||
"""
|
||||
|
||||
@@ -22,6 +22,14 @@
|
||||
# ***************************************************************************
|
||||
|
||||
|
||||
# to run the example use:
|
||||
"""
|
||||
from femexamples.rc_wall_2d import setup
|
||||
setup()
|
||||
|
||||
"""
|
||||
|
||||
|
||||
import FreeCAD
|
||||
import ObjectsFem
|
||||
import Fem
|
||||
@@ -156,10 +164,3 @@ def setup(doc=None, solvertype="ccxtools"):
|
||||
|
||||
doc.recompute()
|
||||
return doc
|
||||
|
||||
|
||||
"""
|
||||
from femexamples.rc_wall_2d import setup
|
||||
setup()
|
||||
|
||||
"""
|
||||
|
||||
@@ -22,6 +22,14 @@
|
||||
# ***************************************************************************
|
||||
|
||||
|
||||
# to run the example use:
|
||||
"""
|
||||
from femexamples.thermomech_flow1d import setup
|
||||
setup()
|
||||
|
||||
"""
|
||||
|
||||
|
||||
import FreeCAD
|
||||
import ObjectsFem
|
||||
import Fem
|
||||
@@ -247,10 +255,3 @@ def setup(doc=None, solvertype="ccxtools"):
|
||||
|
||||
doc.recompute()
|
||||
return doc
|
||||
|
||||
|
||||
"""
|
||||
from femexamples.thermomech_flow1d import setup
|
||||
setup()
|
||||
|
||||
"""
|
||||
|
||||
@@ -22,6 +22,14 @@
|
||||
# ***************************************************************************
|
||||
|
||||
|
||||
# to run the example use:
|
||||
"""
|
||||
from femexamples.thermomech_spine import setup
|
||||
setup()
|
||||
|
||||
"""
|
||||
|
||||
|
||||
import FreeCAD
|
||||
import ObjectsFem
|
||||
import Fem
|
||||
@@ -140,10 +148,3 @@ def setup(doc=None, solvertype="ccxtools"):
|
||||
|
||||
doc.recompute()
|
||||
return doc
|
||||
|
||||
|
||||
"""
|
||||
from femexamples.thermomech_spine import setup
|
||||
setup()
|
||||
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user