From 1cda10b54e59a952f4cb3c57252cd92d0d10174e Mon Sep 17 00:00:00 2001 From: Eric Fayolle Date: Wed, 3 Oct 2018 19:27:18 +0200 Subject: [PATCH] ajout du catalogue frontiere VIMMP --- Map2/cata_vimmp.py | 94 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 94 insertions(+) create mode 100644 Map2/cata_vimmp.py diff --git a/Map2/cata_vimmp.py b/Map2/cata_vimmp.py new file mode 100644 index 00000000..25db9403 --- /dev/null +++ b/Map2/cata_vimmp.py @@ -0,0 +1,94 @@ +# Copyright (C) 2008-2018 EDF R&D +# +# This file is part of SALOME ADAO module +# +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation; either +# version 2.1 of the License. +# +# This library 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 +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# +# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com +import os, re +import Accas +from Accas import * + +JdC = JDC_CATA ( + code = 'Map2', + ) +VERSION_CATALOGUE='V_0' + +def getCfdInstance(): + return ('Code_Saturne - UoM','OpenFOAM - POLITO') + +def getRhInstance(): + return ('TFEM - UniNa','OpenFOAM - IBM-UK') + +def getSurfTensInstance(): + return ('GROMACS - UoM','LAMMPS - ICPF') + +case = PROC(nom = 'case', + + usecase = SIMP(statut='o', typ='TXM', into=['Emulsion','Surfactant Mesophases','nano powder dispersion']), + + b_Emulsion = BLOC(condition="usecase == 'Emulsion'", + workflow = SIMP(statut='o', typ='TXM', into=['Dilute emulsion /suspension','Concentrated emulsions']), + b_Dilute_emulsion = BLOC(condition="workflow == 'Dilute emulsion /suspension'", + Dilute_emulsion= FACT( statut = 'o', + cfd = SIMP(statut='o', typ='TXM', into=getCfdInstance()), + rh = SIMP(statut='o', typ='TXM', into=getRhInstance()), + surfTens = SIMP(statut='o', typ='TXM', into=getSurfTensInstance()), + ), + + ), + ), +) + +# experience = FACT(statut='o', max = "**", +# experience_Name = SIMP (statut='o', typ='TXM'), +# source = SIMP(statut='o', typ='TXM', into=['File','Dico','Value']), +# b_source_file = BLOC(condition="source == 'File'", +# exp_file = SIMP(statut = "o", typ = 'Fichier'), +# ), +# b_source_valeur = BLOC(condition="source == 'Value'", +# exp_value = SIMP(statut = "o", typ = 'R'), +# ), +# b_source_dico = BLOC(condition="source == 'Dico'", +# exp_dico = SIMP(statut = "o", typ = 'TXM'), +# ), +# Associated_simulation_step_number = SIMP(statut='o', typ='I', val_min=1), +# dependancy = FACT( statut='o', +# type_dependancy= SIMP(statut='o', +# typ='TXM', into=['temperature','moisture','irradiation']), +# source = SIMP(statut='o', typ='TXM', into=['File','Dico','Value']), +# b_source_file = BLOC(condition="source == 'File'", +# exp_file = SIMP(statut = "o", typ = 'Fichier'),), +# b_source_valeur = BLOC(condition="source == 'Value'", +# exp_value = SIMP(statut = "o", typ = 'R'),), +# b_source_dico = BLOC(condition="source == 'Dico'", +# exp_dico = SIMP(statut = "o", typ = 'TXM'),), +# ), +# ), +# dimensions= FACT( statut = 'f', +# diameter = SIMP(statut='o', typ='R', val_min = 0), +# thickness = SIMP(statut='o', typ='R', val_min = 0), +# number_elements = SIMP(statut='o', typ='I', val_min = 0), +# ), +# type_experience = SIMP(statut='o', typ='TXM', +# into=['tension','creep','relaxation','cyclic','cyclic_stab','tube']), +# ) + + +TEXTE_NEW_JDC = 'case()' + + + + -- 2.39.2