mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-26 17:30:35 +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>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>1061</width>
|
<width>826</width>
|
||||||
<height>600</height>
|
<height>540</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<property name="windowTitle">
|
<property name="windowTitle">
|
||||||
<string>Dialog</string>
|
<string>Dialog</string>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QVBoxLayout" name="verticalLayout_8">
|
<layout class="QGridLayout" name="gridLayout_8">
|
||||||
<item>
|
<item row="0" column="0">
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout_5">
|
<layout class="QHBoxLayout" name="horizontalLayout_5">
|
||||||
<item>
|
<item>
|
||||||
<layout class="QVBoxLayout" name="verticalLayout_2">
|
<layout class="QVBoxLayout" name="verticalLayout_2">
|
||||||
@ -854,7 +854,49 @@
|
|||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</item>
|
</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">
|
<spacer name="verticalSpacer_2">
|
||||||
<property name="orientation">
|
<property name="orientation">
|
||||||
<enum>Qt::Vertical</enum>
|
<enum>Qt::Vertical</enum>
|
||||||
@ -867,7 +909,7 @@
|
|||||||
</property>
|
</property>
|
||||||
</spacer>
|
</spacer>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item row="3" column="0">
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout">
|
<layout class="QHBoxLayout" name="horizontalLayout">
|
||||||
<item>
|
<item>
|
||||||
<widget class="QPushButton" name="pb_reset">
|
<widget class="QPushButton" name="pb_reset">
|
||||||
@ -936,6 +978,9 @@
|
|||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
<zorder>verticalSpacer_2</zorder>
|
<zorder>verticalSpacer_2</zorder>
|
||||||
|
<zorder>horizontalSpacer</zorder>
|
||||||
|
<zorder>lb_calcul</zorder>
|
||||||
|
<zorder>horizontalSpacer_9</zorder>
|
||||||
</widget>
|
</widget>
|
||||||
<resources/>
|
<resources/>
|
||||||
<connections>
|
<connections>
|
||||||
|
@ -82,6 +82,7 @@ def fissureCoudeDlg(context):
|
|||||||
self.ui.sb_nbSecteur.setSpecialValueText("saisie_obligatoire")
|
self.ui.sb_nbSecteur.setSpecialValueText("saisie_obligatoire")
|
||||||
self.ui.dsb_aretesFaceFissure.setSpecialValueText("automatique")
|
self.ui.dsb_aretesFaceFissure.setSpecialValueText("automatique")
|
||||||
self.ui.dsb_influence.setSpecialValueText("automatique")
|
self.ui.dsb_influence.setSpecialValueText("automatique")
|
||||||
|
self.ui.lb_calcul.hide()
|
||||||
|
|
||||||
# Connect up the buttons.
|
# Connect up the buttons.
|
||||||
self.connect(self.ui.pb_valPrec, QtCore.SIGNAL("clicked()"),
|
self.connect(self.ui.pb_valPrec, QtCore.SIGNAL("clicked()"),
|
||||||
@ -366,6 +367,7 @@ def fissureCoudeDlg(context):
|
|||||||
if not(NOK):
|
if not(NOK):
|
||||||
dico['lenSegPipe'] = (dico['longueur'] + 3.14*dico['profondeur'])/dico['nbTranches']
|
dico['lenSegPipe'] = (dico['longueur'] + 3.14*dico['profondeur'])/dico['nbTranches']
|
||||||
self.writeDefault(dico)
|
self.writeDefault(dico)
|
||||||
|
self.ui.lb_calcul.show()
|
||||||
probleme = fissureCoude_ihm(0)
|
probleme = fissureCoude_ihm(0)
|
||||||
probleme.setDicoParams(dico)
|
probleme.setDicoParams(dico)
|
||||||
probleme.executeProbleme()
|
probleme.executeProbleme()
|
||||||
|
Loading…
Reference in New Issue
Block a user