FEM: new solver, add Cantilever example with all solvers
This commit is contained in:
@@ -8,6 +8,7 @@ SET(Examples_Files
|
||||
ArchDetail.FCStd
|
||||
FemCalculixCantilever2D.FCStd
|
||||
FemCalculixCantilever3D.FCStd
|
||||
FemCalculixCantilever3D_newSolver.FCStd
|
||||
)
|
||||
|
||||
ADD_CUSTOM_TARGET(Example_data ALL
|
||||
|
||||
BIN
data/examples/FemCalculixCantilever3D_newSolver.FCStd
Normal file
BIN
data/examples/FemCalculixCantilever3D_newSolver.FCStd
Normal file
Binary file not shown.
@@ -21,6 +21,7 @@ if(BUILD_GUI)
|
||||
LoadArchExample.py
|
||||
LoadFemExample2D.py
|
||||
LoadFemExample3D.py
|
||||
LoadFemExample3DNewSolver.py
|
||||
Mesh.py
|
||||
PartDesign.py
|
||||
Ship.py
|
||||
|
||||
26
src/Mod/Start/StartPage/LoadFemExample3DNewSolver.py
Normal file
26
src/Mod/Start/StartPage/LoadFemExample3DNewSolver.py
Normal file
@@ -0,0 +1,26 @@
|
||||
#***************************************************************************
|
||||
#* *
|
||||
#* Copyright (c) 2012 *
|
||||
#* Yorik van Havre <yorik@uncreated.net> *
|
||||
#* *
|
||||
#* 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 *
|
||||
#* *
|
||||
#***************************************************************************
|
||||
|
||||
import FreeCAD,FreeCADGui
|
||||
FreeCAD.open(FreeCAD.getResourceDir()+"examples/FemCalculixCantilever3D_newSolver.FCStd")
|
||||
FreeCADGui.activeDocument().sendMsgToViews("ViewFit")
|
||||
@@ -90,6 +90,7 @@
|
||||
<li><img src="images/FreeCAD.png" style="width: 16px"> <a href="LoadArchExample.py">text55</a></li>
|
||||
<li><img src="images/FreeCAD.png" style="width: 16px"> <a href="LoadFemExample2D.py">text64</a></li>
|
||||
<li><img src="images/FreeCAD.png" style="width: 16px"> <a href="LoadFemExample3D.py">text60</a></li>
|
||||
<li><img src="images/FreeCAD.png" style="width: 16px"> <a href="LoadFemExample3DNewSolver.py">text69</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div id="commits" class="half-block" style="float: right; display: inline-block;">
|
||||
|
||||
@@ -38,7 +38,7 @@ from .TranslationTexts import (text01, text02, text03, text04, text05, text06,
|
||||
text49, text50, text51, text52, text53, text54,
|
||||
text55, text56, text57, text58, text59, text60,
|
||||
text61, text62, text63, text64, text65, text66,
|
||||
text67, text68)
|
||||
text67, text68, text69)
|
||||
|
||||
try:
|
||||
import io as cStringIO
|
||||
@@ -274,6 +274,7 @@ def replace_html_text(html):
|
||||
html = html.replace("text61", text61)
|
||||
html = html.replace("text62", text62)
|
||||
html = html.replace("text64", text64)
|
||||
html = html.replace("text69", text69)
|
||||
return html
|
||||
|
||||
def replace_js_text(html):
|
||||
|
||||
@@ -123,3 +123,4 @@ text65 = translate("StartPage", "FreeCAD Standard File")
|
||||
text66 = translate("StartPage", "Author")
|
||||
text67 = translate("StartPage", "Company")
|
||||
text68 = translate("StartPage", "License")
|
||||
text69 = translate("StartPage", "Load an FEM 3D new solver example analysis")
|
||||
|
||||
Reference in New Issue
Block a user