From: pascale.noyret Date: Thu, 12 Nov 2020 15:21:30 +0000 (+0100) Subject: echange eric X-Git-Tag: V210224_osthus~105 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=f073e15867f1d2f5357f56387521cbdc5bee874d;p=tools%2Feficas.git echange eric --- diff --git a/Vimmp/cata_CSAndCPS_v2.py b/Vimmp/cata_CSAndCPS_v2.py index cbd72e3e..fbd9c8b2 100644 --- a/Vimmp/cata_CSAndCPS_v2.py +++ b/Vimmp/cata_CSAndCPS_v2.py @@ -52,7 +52,7 @@ dictCodeModeleNumerique = { } dictCodeFormat = { - 'Code_Saturne' : ('med', 'cgns', 'msh', 'des', 'unv ', 'Use converter'), + 'Code_Saturne' : ('Med', 'cgns', 'msh', 'des', 'unv ', 'Use converter'), 'Culgi Package': ('cof',), 'DEM_SD' : ('geo', 'ascii'), 'DFTB+' : ('geo', 'ascii'), @@ -80,7 +80,7 @@ dictCodeConvertisseur = { def prepareBlocSystemType(systemType) : condition = "SystemType == '" + systemType + "'" Identifier = SIMP(statut='o', typ=(modeleNumDuCompo,'createObject'),) - ModelType = SIMP(statut='o', typ='TXM', into = ('Particles', 'Fields'),position='globale') + ModelType = SIMP(statut='o', typ='TXM', into = ('Particles', 'Fields'),position='global') dicoArgs={} for typeMod in ('Particles', 'Fields'): conditionType = "ModelType == '" + typeMod + "'" @@ -499,7 +499,7 @@ Species = PROC(nom='Species', ) Interactions = PROC(nom='Interactions', - InteractionComposant = FACT( max = '**', + Interaction = FACT( max = '**', origine = SIMP(typ=modeleNumDuCompo, statut='o'), destination = SIMP(typ=modeleNumDuCompo, statut='o'), # PN a derouler avec une fonction @@ -511,12 +511,13 @@ Interactions = PROC(nom='Interactions', condition = 'getEficasAttribut(origine,"ModelType") == "Particles" and getEficasAttribut(destination,"ModelType") == "Fields"' , termeLE = SIMP(typ='TXM', statut='o', into = dictTermeLE['Particles','Fields'],fenetreIhm='menuDeroulant'), ), + transferType = SIMP(typ='TXM', statut='o', into =['File', 'Memory', 'CorbaObject']), monBloc_Saturne_Fluent = BLOC ( - condition = 'getEficasAttribut(origine,"Solver") == "Code_Saturne" and getEficasAttribut(destination,"Solver") == "Fluent"' , + 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) ), ), monBloc_Saturne_OpenFoam = BLOC ( - condition = 'getEficasAttribut(origine,"Solver") == "Code_Saturne" and getEficasAttribut(destination,"Solver") == "OpenFOAM"' , + condition = 'transferType == "File" and getEficasAttribut(origine,"Solver") == "Code_Saturne" and getEficasAttribut(destination,"Solver") == "OpenFOAM"' , Format = SIMP(typ='TXM', statut='o', into = calculCommun( "Code_Saturne", "OpenFOAM",dictCodeFormat) ), monBloc_conversion = BLOC (condition = 'Format == "Use converter"', converter = SIMP(typ='TXM', statut='o', into = dictCodeConvertisseur['Saturne', 'OpenFOAM']),