From: pascale.noyret Date: Thu, 12 Nov 2020 15:53:30 +0000 (+0100) Subject: echange 2 X-Git-Tag: V210224_osthus~104 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=7eb46348c3217545573e33b39c5fbae1fbbafb25;p=tools%2Feficas.git echange 2 --- diff --git a/Vimmp/cata_CSAndCPS_v2.py b/Vimmp/cata_CSAndCPS_v2.py index fbd9c8b2..7e7b170a 100644 --- a/Vimmp/cata_CSAndCPS_v2.py +++ b/Vimmp/cata_CSAndCPS_v2.py @@ -498,6 +498,12 @@ Species = PROC(nom='Species', ) ) +def monBlocInteractionTypeChamp (): + return BLOC (condition = '1 == 1' , # a distinguer selon les cas + fieldNameInOrigine = SIMP(typ='TXM', statut='o'), + fieldNameInDetgination = SIMP(typ='TXM', statut='o'), + ) + Interactions = PROC(nom='Interactions', Interaction = FACT( max = '**', origine = SIMP(typ=modeleNumDuCompo, statut='o'), @@ -506,12 +512,18 @@ Interactions = PROC(nom='Interactions', monBloc_FFDP = BLOC ( condition = 'getEficasAttribut(origine,"ModelType") == "Fields" and getEficasAttribut(destination,"ModelType") == "Particles"' , termeLE = SIMP(typ='TXM', statut='o', into = dictTermeLE['Fields','Particles'],fenetreIhm='menuDeroulant'), + monBloc_Champ = monBlocInteractionTypeChamp(), ), monBloc_DPFF = BLOC ( condition = 'getEficasAttribut(origine,"ModelType") == "Particles" and getEficasAttribut(destination,"ModelType") == "Fields"' , termeLE = SIMP(typ='TXM', statut='o', into = dictTermeLE['Particles','Fields'],fenetreIhm='menuDeroulant'), + monBloc_Champ = monBlocInteractionTypeChamp(), ), transferType = SIMP(typ='TXM', statut='o', into =['File', 'Memory', 'CorbaObject']), + monBloc_Saturne_Saturne = BLOC ( + condition = 'transferType == "File" and getEficasAttribut(origine,"Solver") == "Code_Saturne" and getEficasAttribut(destination,"Solver") == "Code_Saturne"' , + Format = SIMP(typ='TXM', statut='o', into = calculCommun( "Code_Saturne", "Fluent",dictCodeFormat) ), + ), monBloc_Saturne_Fluent = BLOC ( condition = 'transferType == "File" and getEficasAttribut(origine,"Solver") == "Code_Saturne" and getEficasAttribut(destination,"Solver") == "Fluent"' , Format = SIMP(typ='TXM', statut='o', into = calculCommun( "Code_Saturne", "Fluent",dictCodeFormat) ),