mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-11-14 09:38:33 +05:00
PR: add blocFissure plugin exemples
This commit is contained in:
parent
e9e7af000e
commit
26b5406860
25
src/Tools/blocFissure/README
Normal file
25
src/Tools/blocFissure/README
Normal file
@ -0,0 +1,25 @@
|
||||
|
||||
Exécution des exemples et cas tests :
|
||||
------------------------------------
|
||||
|
||||
- lancer salome
|
||||
- exécuter les instructions suivantes dans la console Python embarquée, ou dans une console Python avec l'environnement SALOME
|
||||
# les shapes et fichiers med nécessaires aux tests sont créés dans ${SMESH_ROOT_DIR}/share/salome/plugins/smesh/blocFissure/CasTests
|
||||
# les maillages fissurés sont écrits dans le répertoire d'exécution.
|
||||
|
||||
|
||||
# preparation des shapes et fichiers MED
|
||||
|
||||
import sys, os
|
||||
sys.path.append(os.path.join(os.environ["SMESH_ROOT_DIR"], "share", "salome", "plugins", "smesh"))
|
||||
from blocFissure.materielCasTests import genereMateriel
|
||||
|
||||
# execution exemples
|
||||
|
||||
from blocFissure import exemple
|
||||
from blocFissure import exemple
|
||||
|
||||
# execution des cas tests
|
||||
|
||||
from blocFissure.CasTests import execution_Cas
|
||||
|
1
src/Tools/blocFissure/ihm/dialogFissureCoude.dic
Normal file
1
src/Tools/blocFissure/ihm/dialogFissureCoude.dic
Normal file
@ -0,0 +1 @@
|
||||
{'nbAxeTubeP2': 12, 'orientation': 90.0, 'nbAxeTubeP1': 16, 'posiAngul': 20.0, 'influence': 50.0, 'nbCirconf': 20, 'azimut': 160.0, 'longueur': 400.0, 'rbFissExt': True, 'cbForceEllipse': False, 'cbOptDiscrFiss': True, 'lTubeP2': 1200.0, 'dext': 760.0, 'angle': 60.0, 'cbOptDiscrSain': True, 'nbAxeCoude': 15, 'epais': 40.0, 'nbSecteurs': 6, 'aretesFaceFissure': 5.0, 'rCintr': 1200.0, 'rayonTore': 2.5, 'nbEpaisseur': 3, 'nbTranches': 176, 'rbPosiAngul': True, 'lenSegPipe': 2.4511363636363637, 'absCurv': 0.0, 'profondeur': 10.0, 'lTubeP1': 1600.0, 'nbCouronnes': 5}
|
@ -6,15 +6,15 @@
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>1061</width>
|
||||
<height>600</height>
|
||||
<width>826</width>
|
||||
<height>540</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string>Dialog</string>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayout_8">
|
||||
<item>
|
||||
<layout class="QGridLayout" name="gridLayout_8">
|
||||
<item row="0" column="0">
|
||||
<layout class="QHBoxLayout" name="horizontalLayout_5">
|
||||
<item>
|
||||
<layout class="QVBoxLayout" name="verticalLayout_2">
|
||||
@ -854,7 +854,49 @@
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<item row="1" column="0">
|
||||
<layout class="QHBoxLayout" name="horizontalLayout_6">
|
||||
<item>
|
||||
<spacer name="horizontalSpacer">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>40</width>
|
||||
<height>20</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLabel" name="lb_calcul">
|
||||
<property name="font">
|
||||
<font>
|
||||
<pointsize>24</pointsize>
|
||||
</font>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>--- Calcul en cours ---</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<spacer name="horizontalSpacer_9">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>40</width>
|
||||
<height>20</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item row="2" column="0">
|
||||
<spacer name="verticalSpacer_2">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Vertical</enum>
|
||||
@ -867,7 +909,7 @@
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
<item>
|
||||
<item row="3" column="0">
|
||||
<layout class="QHBoxLayout" name="horizontalLayout">
|
||||
<item>
|
||||
<widget class="QPushButton" name="pb_reset">
|
||||
@ -936,6 +978,9 @@
|
||||
</item>
|
||||
</layout>
|
||||
<zorder>verticalSpacer_2</zorder>
|
||||
<zorder>horizontalSpacer</zorder>
|
||||
<zorder>lb_calcul</zorder>
|
||||
<zorder>horizontalSpacer_9</zorder>
|
||||
</widget>
|
||||
<resources/>
|
||||
<connections>
|
||||
|
@ -82,6 +82,7 @@ def fissureCoudeDlg(context):
|
||||
self.ui.sb_nbSecteur.setSpecialValueText("saisie_obligatoire")
|
||||
self.ui.dsb_aretesFaceFissure.setSpecialValueText("automatique")
|
||||
self.ui.dsb_influence.setSpecialValueText("automatique")
|
||||
self.ui.lb_calcul.hide()
|
||||
|
||||
# Connect up the buttons.
|
||||
self.connect(self.ui.pb_valPrec, QtCore.SIGNAL("clicked()"),
|
||||
@ -366,6 +367,7 @@ def fissureCoudeDlg(context):
|
||||
if not(NOK):
|
||||
dico['lenSegPipe'] = (dico['longueur'] + 3.14*dico['profondeur'])/dico['nbTranches']
|
||||
self.writeDefault(dico)
|
||||
self.ui.lb_calcul.show()
|
||||
probleme = fissureCoude_ihm(0)
|
||||
probleme.setDicoParams(dico)
|
||||
probleme.executeProbleme()
|
||||
|
Loading…
Reference in New Issue
Block a user