FEM: examples, add method for retrieving informations
This commit is contained in:
committed by
Bernd Hahnebach
parent
9f84186c16
commit
3685b3dad7
@@ -44,6 +44,18 @@ def init_doc(doc=None):
|
||||
return doc
|
||||
|
||||
|
||||
def get_information():
|
||||
info = {"name": "Box Analysis Frequency",
|
||||
"meshtype": "solid",
|
||||
"meshelement": "Tet10",
|
||||
"constraints": [],
|
||||
"solvers": ["ccx"],
|
||||
"material": "solid",
|
||||
"equation": "frequency"
|
||||
}
|
||||
return info
|
||||
|
||||
|
||||
def setup(doc=None, solvertype="ccxtools"):
|
||||
# setup box frequency, change solver attributes
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
# ***************************************************************************
|
||||
# * Copyright (c) 2019 Bernd Hahnebach <bernd@bimstatik.org> *
|
||||
# * Copyright (c) 2020 Sudhanshu Dubey <sudhanshu.thethunder@gmail.com *
|
||||
# * *
|
||||
# * This file is part of the FreeCAD CAx development system. *
|
||||
# * *
|
||||
@@ -42,6 +43,18 @@ def init_doc(doc=None):
|
||||
return doc
|
||||
|
||||
|
||||
def get_information():
|
||||
info = {"name": "Box Analysis Static",
|
||||
"meshtype": "solid",
|
||||
"meshelement": "Tet10",
|
||||
"constraints": ["fixed", "force", "pressure"],
|
||||
"solvers": ["ccx", "z88", "elmer"],
|
||||
"material": "solid",
|
||||
"equation": "mechanical"
|
||||
}
|
||||
return info
|
||||
|
||||
|
||||
def setup_base(doc=None, solvertype="ccxtools"):
|
||||
# setup box base model
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
# ***************************************************************************
|
||||
# * Copyright (c) 2019 Bernd Hahnebach <bernd@bimstatik.org> *
|
||||
# * Copyright (c) 2020 Sudhanshu Dubey <sudhanshu.thethunder@gmail.com *
|
||||
# * *
|
||||
# * This file is part of the FreeCAD CAx development system. *
|
||||
# * *
|
||||
@@ -42,6 +43,18 @@ def init_doc(doc=None):
|
||||
return doc
|
||||
|
||||
|
||||
def get_information():
|
||||
info = {"name": "CCX cantilever face load",
|
||||
"meshtype": "solid",
|
||||
"meshelement": "Tet10",
|
||||
"constraints": ["fixed", "force"],
|
||||
"solvers": ["ccx", "z88", "elmer"],
|
||||
"material": "solid",
|
||||
"equation": "mechanical"
|
||||
}
|
||||
return info
|
||||
|
||||
|
||||
def setup_cantileverbase(doc=None, solvertype="ccxtools"):
|
||||
# setup CalculiX cantilever base model
|
||||
|
||||
|
||||
@@ -44,6 +44,18 @@ def init_doc(doc=None):
|
||||
return doc
|
||||
|
||||
|
||||
def get_information():
|
||||
info = {"name": "CCX cantilever face load",
|
||||
"meshtype": "solid",
|
||||
"meshelement": "Hexa20",
|
||||
"constraints": ["fixed", "force"],
|
||||
"solvers": ["ccx", "z88", "elmer"],
|
||||
"material": "solid",
|
||||
"equation": "mechanical"
|
||||
}
|
||||
return info
|
||||
|
||||
|
||||
def setup(doc=None, solvertype="ccxtools"):
|
||||
doc = faceload.setup(doc, solvertype)
|
||||
|
||||
|
||||
@@ -44,6 +44,18 @@ def init_doc(doc=None):
|
||||
return doc
|
||||
|
||||
|
||||
def get_information():
|
||||
info = {"name": "CCX cantilever node load",
|
||||
"meshtype": "solid",
|
||||
"meshelement": "Tet10",
|
||||
"constraints": ["fixed", "force"],
|
||||
"solvers": ["ccx", "z88", "elmer"],
|
||||
"material": "solid",
|
||||
"equation": "mechanical"
|
||||
}
|
||||
return info
|
||||
|
||||
|
||||
def setup(doc=None, solvertype="ccxtools"):
|
||||
# setup CalculiX cantilever, apply 9 MN on the 4 nodes of the front end face
|
||||
|
||||
|
||||
@@ -44,6 +44,18 @@ def init_doc(doc=None):
|
||||
return doc
|
||||
|
||||
|
||||
def get_information():
|
||||
info = {"name": "CCX cantilever prescibed displacement",
|
||||
"meshtype": "solid",
|
||||
"meshelement": "Tet10",
|
||||
"constraints": ["fixed", "displacement"],
|
||||
"solvers": ["ccx", "z88", "elmer"],
|
||||
"material": "solid",
|
||||
"equation": "mechanical"
|
||||
}
|
||||
return info
|
||||
|
||||
|
||||
def setup(doc=None, solvertype="ccxtools"):
|
||||
# setup CalculiX cantilever
|
||||
# apply a prescribed displacement of 250 mm in -z on the front end face
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
# ***************************************************************************
|
||||
# * Copyright (c) 2020 Bernd Hahnebach <bernd@bimstatik.org> *
|
||||
# * Copyright (c) 2020 Sudhanshu Dubey <sudhanshu.thethunder@gmail.com *
|
||||
# * *
|
||||
# * This file is part of the FreeCAD CAx development system. *
|
||||
# * *
|
||||
@@ -48,6 +49,18 @@ def init_doc(doc=None):
|
||||
return doc
|
||||
|
||||
|
||||
def get_information():
|
||||
info = {"name": "Constraint Constact Shell Shell",
|
||||
"meshtype": "solid",
|
||||
"meshelement": "Tria3",
|
||||
"constraints": ["fixed", "force", "contact"],
|
||||
"solvers": ["ccx"],
|
||||
"material": "solid",
|
||||
"equation": "mechanical"
|
||||
}
|
||||
return info
|
||||
|
||||
|
||||
def setup(doc=None, solvertype="ccxtools"):
|
||||
# setup model
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
# ***************************************************************************
|
||||
# * Copyright (c) 2020 Bernd Hahnebach <bernd@bimstatik.org> *
|
||||
# * Copyright (c) 2020 Sudhanshu Dubey <sudhanshu.thethunder@gmail.com *
|
||||
# * *
|
||||
# * This file is part of the FreeCAD CAx development system. *
|
||||
# * *
|
||||
@@ -48,6 +49,18 @@ def init_doc(doc=None):
|
||||
return doc
|
||||
|
||||
|
||||
def get_information():
|
||||
info = {"name": "Constraint Contact Solid Solid",
|
||||
"meshtype": "solid",
|
||||
"meshelement": "Tet10",
|
||||
"constraints": ["fixed", "pressure", "contact"],
|
||||
"solvers": ["ccx"],
|
||||
"material": "solid",
|
||||
"equation": "mechanical"
|
||||
}
|
||||
return info
|
||||
|
||||
|
||||
def setup(doc=None, solvertype="ccxtools"):
|
||||
# setup model
|
||||
|
||||
|
||||
@@ -55,6 +55,18 @@ def init_doc(doc=None):
|
||||
return doc
|
||||
|
||||
|
||||
def get_information():
|
||||
info = {"name": "Constraint Section Print",
|
||||
"meshtype": "solid",
|
||||
"meshelement": "Tet10",
|
||||
"constraints": ["section_print", "fixed", "pressure"],
|
||||
"solvers": ["ccx"],
|
||||
"material": "solid",
|
||||
"equation": "mechanical"
|
||||
}
|
||||
return info
|
||||
|
||||
|
||||
def setup(doc=None, solvertype="ccxtools"):
|
||||
|
||||
if doc is None:
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
# ***************************************************************************
|
||||
# * Copyright (c) 2020 Bernd Hahnebach <bernd@bimstatik.org> *
|
||||
# * Copyright (c) 2020 Sudhanshu Dubey <sudhanshu.thethunder@gmail.com *
|
||||
# * *
|
||||
# * This file is part of the FreeCAD CAx development system. *
|
||||
# * *
|
||||
@@ -48,6 +49,18 @@ def init_doc(doc=None):
|
||||
return doc
|
||||
|
||||
|
||||
def get_information():
|
||||
info = {"name": "Constraint Tie",
|
||||
"meshtype": "solid",
|
||||
"meshelement": "Tet10",
|
||||
"constraints": ["fixed", "force", "tie"],
|
||||
"solvers": ["ccx"],
|
||||
"material": "solid",
|
||||
"equation": "mechanical"
|
||||
}
|
||||
return info
|
||||
|
||||
|
||||
def setup(doc=None, solvertype="ccxtools"):
|
||||
# setup model
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
# ***************************************************************************
|
||||
# * Copyright (c) 2019 Bernd Hahnebach <bernd@bimstatik.org> *
|
||||
# * Copyright (c) 2020 Sudhanshu Dubey <sudhanshu.thethunder@gmail.com *
|
||||
# * *
|
||||
# * This file is part of the FreeCAD CAx development system. *
|
||||
# * *
|
||||
@@ -44,6 +45,18 @@ def init_doc(doc=None):
|
||||
return doc
|
||||
|
||||
|
||||
def get_information():
|
||||
info = {"name": "Material Multiple Two Boxes",
|
||||
"meshtype": "solid",
|
||||
"meshelement": "Tet10",
|
||||
"constraints": ["fixed", "pressure"],
|
||||
"solvers": ["ccx"],
|
||||
"material": "multimaterial",
|
||||
"equation": "mechanical"
|
||||
}
|
||||
return info
|
||||
|
||||
|
||||
def setup(doc=None, solvertype="ccxtools"):
|
||||
# setup model
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
# ***************************************************************************
|
||||
# * Copyright (c) 2019 Bernd Hahnebach <bernd@bimstatik.org> *
|
||||
# * Copyright (c) 2020 Sudhanshu Dubey <sudhanshu.thethunder@gmail.com *
|
||||
# * *
|
||||
# * This file is part of the FreeCAD CAx development system. *
|
||||
# * *
|
||||
@@ -61,6 +62,18 @@ def init_doc(doc=None):
|
||||
return doc
|
||||
|
||||
|
||||
def get_information():
|
||||
info = {"name": "Material NL Plate with Hole",
|
||||
"meshtype": "solid",
|
||||
"meshelement": "Tet10",
|
||||
"constraints": ["fixed", "force"],
|
||||
"solvers": ["ccx"],
|
||||
"material": "multimaterial",
|
||||
"equation": "mechanical"
|
||||
}
|
||||
return info
|
||||
|
||||
|
||||
def setup(doc=None, solvertype="ccxtools"):
|
||||
# setup model
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
# ***************************************************************************
|
||||
# * Copyright (c) 2019 Bernd Hahnebach <bernd@bimstatik.org> *
|
||||
# * Copyright (c) 2020 Sudhanshu Dubey <sudhanshu.thethunder@gmail.com *
|
||||
# * *
|
||||
# * This file is part of the FreeCAD CAx development system. *
|
||||
# * *
|
||||
@@ -48,6 +49,18 @@ def init_doc(doc=None):
|
||||
return doc
|
||||
|
||||
|
||||
def get_information():
|
||||
info = {"name": "RC Wall 2D",
|
||||
"meshtype": "solid",
|
||||
"meshelement": "Tria6",
|
||||
"constraints": ["fixed", "force", "displacement"],
|
||||
"solvers": ["ccx"],
|
||||
"material": "reinforced",
|
||||
"equation": "mechanical"
|
||||
}
|
||||
return info
|
||||
|
||||
|
||||
def setup(doc=None, solvertype="ccxtools"):
|
||||
# setup reinfoced wall in 2D
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
# ***************************************************************************
|
||||
# * Copyright (c) 2020 Bernd Hahnebach <bernd@bimstatik.org> *
|
||||
# * Copyright (c) 2020 Sudhanshu Dubey <sudhanshu.thethunder@gmail.com *
|
||||
# * *
|
||||
# * This file is part of the FreeCAD CAx development system. *
|
||||
# * *
|
||||
@@ -50,6 +51,18 @@ def init_doc(doc=None):
|
||||
return doc
|
||||
|
||||
|
||||
def get_information():
|
||||
info = {"name": "Thermomech Bimetall",
|
||||
"meshtype": "solid",
|
||||
"meshelement": "Tet10",
|
||||
"constraints": ["fixed", "initial temperature", "temperature"],
|
||||
"solvers": ["ccx", "elmer"],
|
||||
"material": "multimaterial",
|
||||
"equation": "thermomechanical"
|
||||
}
|
||||
return info
|
||||
|
||||
|
||||
def setup(doc=None, solvertype="ccxtools"):
|
||||
# setup model
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
# ***************************************************************************
|
||||
# * Copyright (c) 2019 Bernd Hahnebach <bernd@bimstatik.org> *
|
||||
# * Copyright (c) 2020 Sudhanshu Dubey <sudhanshu.thethunder@gmail.com *
|
||||
# * *
|
||||
# * This file is part of the FreeCAD CAx development system. *
|
||||
# * *
|
||||
@@ -47,6 +48,18 @@ def init_doc(doc=None):
|
||||
return doc
|
||||
|
||||
|
||||
def get_information():
|
||||
info = {"name": "Thermomech Flow 1D",
|
||||
"meshtype": "solid",
|
||||
"meshelement": "Seg3",
|
||||
"constraints": ["self weight"],
|
||||
"solvers": ["ccx"],
|
||||
"material": "fluid",
|
||||
"equation": "thermomechanical"
|
||||
}
|
||||
return info
|
||||
|
||||
|
||||
def setup(doc=None, solvertype="ccxtools"):
|
||||
# setup model
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
# ***************************************************************************
|
||||
# * Copyright (c) 2019 Bernd Hahnebach <bernd@bimstatik.org> *
|
||||
# * Copyright (c) 2020 Sudhanshu Dubey <sudhanshu.thethunder@gmail.com *
|
||||
# * *
|
||||
# * This file is part of the FreeCAD CAx development system. *
|
||||
# * *
|
||||
@@ -42,6 +43,18 @@ def init_doc(doc=None):
|
||||
return doc
|
||||
|
||||
|
||||
def get_information():
|
||||
info = {"name": "Thermomech Spine",
|
||||
"meshtype": "solid",
|
||||
"meshelement": "Tet10",
|
||||
"constraints": ["fixed", "initial temperature", "temperature", "heatflux"],
|
||||
"solvers": ["ccx"],
|
||||
"material": "solid",
|
||||
"equation": "thermomechanical"
|
||||
}
|
||||
return info
|
||||
|
||||
|
||||
def setup(doc=None, solvertype="ccxtools"):
|
||||
# setup model
|
||||
|
||||
|
||||
Reference in New Issue
Block a user