PERMEABILITY = FACT ( statut="o",
ang ="Permeability properties",
fr ="proprietes du bloc PERMEABILITY",
+ regles = ( UN_PARMI ('VALUE_REAL','VALUE_COMPLEX'),
+ ),
LAW = SIMP (statut="o",
typ="TXM",
into = ("LINEAR","NONLINEAR"),
ang = "type of law",
),
- HOMOGENEOUS = SIMP (statut="o",
+ HOMOGENEOUS = SIMP (statut="f",
typ="TXM",
defaut="TRUE",
into = ("TRUE","FALSE"),
ang = "the material is homogeneous",
+ fr = "le materiau est homogene",
),
- ISOTROPIC = SIMP (statut="o",
+ ISOTROPIC = SIMP (statut="f",
typ="TXM",
defaut="TRUE",
into = ("TRUE","FALSE"),
ang = "the material is isotropic",
+ fr = "le materiau est isotrope",
),
- VALUE_COMPLEX = SIMP (statut="o",
+ VALUE_REAL = SIMP (statut="f",
+ typ="R",
+ ang = "enter a real value",
+ fr = "entrer un reel",
+ ),
+ VALUE_COMPLEX = SIMP (statut="f",
typ="C",
- defaut=1,
ang = "enter a complex value",
+ fr = "entrer un complexe",
),
-
), # fin FACT PERMEABILITY
sd_prod= materiau,
- NAME = SIMP (statut="o",
- typ="TXM",
- ang = "name of the linked mesh group",
- fr = "nom du groupe de mailles associe",
- ),
#------------------------------------------------
# sous bloc niveau 2 : PERMITTTIVITY
#------------------------------------------------
PERMITTIVITY = FACT ( statut="o",
ang ="Permittivity properties",
fr ="proprietes du bloc PERMITTIVITY",
+ regles = ( UN_PARMI ('VALUE_REAL','VALUE_COMPLEX'),
+ ),
LAW = SIMP (statut="o",
typ="TXM",
into = ("LINEAR","NONLINEAR"),
ang = "type of law",
),
- HOMOGENEOUS = SIMP (statut="o",
+ HOMOGENEOUS = SIMP (statut="f",
typ="TXM",
defaut="TRUE",
into = ("TRUE","FALSE"),
ang = "the material is homogeneous",
+ fr = "le materiau est homogene",
),
- ISOTROPIC = SIMP (statut="o",
+ ISOTROPIC = SIMP (statut="f",
typ="TXM",
defaut="TRUE",
into = ("TRUE","FALSE"),
ang = "the material is isotropic",
+ fr = "le materiau est isotrope",
),
- VALUE_COMPLEX = SIMP (statut="o",
+ VALUE_REAL = SIMP (statut="f",
+ typ="R",
+ ang = "enter a real value",
+ fr = "entrer un reel",
+ ),
+ VALUE_COMPLEX = SIMP (statut="f",
typ="C",
- defaut=1,
ang = "enter a complex value",
+ fr = "entrer un complexe",
),
), # fin FACT PERMITTIVITY
PERMEABILITY = FACT ( statut="o",
ang ="Permeability properties",
fr ="proprietes du bloc PERMEABILITY",
+ regles = ( UN_PARMI ('VALUE_REAL','VALUE_COMPLEX'),
+ ),
LAW = SIMP (statut="o",
typ="TXM",
into = ("LINEAR","NONLINEAR"),
ang = "type of law",
),
- HOMOGENEOUS = SIMP (statut="o",
+ HOMOGENEOUS = SIMP (statut="f",
typ="TXM",
defaut="TRUE",
into = ("TRUE","FALSE"),
ang = "the material is homogeneous",
+ fr = "le materiau est homogene",
),
- ISOTROPIC = SIMP (statut="o",
+ ISOTROPIC = SIMP (statut="f",
typ="TXM",
defaut="TRUE",
into = ("TRUE","FALSE"),
ang = "the material is isotropic",
+ fr = "le materiau est isotrope",
),
- VALUE_COMPLEX = SIMP (statut="o",
+ VALUE_REAL = SIMP (statut="f",
+ typ="R",
+ ang = "enter a real value",
+ fr = "entrer un reel",
+ ),
+ VALUE_COMPLEX = SIMP (statut="f",
typ="C",
- defaut=1,
ang = "enter a complex value",
+ fr = "entrer un complexe",
),
#------------------------------------------------
fr= "definition du bloc ZSURFACIC",
sd_prod= materiau,
- NAME = SIMP (statut="o",
- typ="TXM",
- ang = "name of the linked mesh group",
- fr = "nom du groupe de mailles associe",
- ),
+
#------------------------------------------------
# sous bloc niveau 2 : CONDUCTIVITY
#------------------------------------------------
CONDUCTIVITY = FACT ( statut="o",
ang ="Conductivity properties",
fr ="proprietes du bloc CONDUCTIVITY",
+ regles = ( UN_PARMI ('VALUE_REAL','VALUE_COMPLEX'),
+ ),
LAW = SIMP (statut="o",
typ="TXM",
ang = "type of law",
fr = "type de loi",
),
- HOMOGENEOUS = SIMP (statut="o",
+ HOMOGENEOUS = SIMP (statut="f",
typ="TXM",
defaut="TRUE",
into = ("TRUE","FALSE"),
ang = "the material is homogeneous",
fr = "le materiau est homogene",
),
- ISOTROPIC = SIMP (statut="o",
+ ISOTROPIC = SIMP (statut="f",
typ="TXM",
defaut="TRUE",
into = ("TRUE","FALSE"),
ang = "the material is isotropic",
fr = "le materiau est isotrope",
),
- VALUE_COMPLEX = SIMP (statut="o",
+ VALUE_REAL = SIMP (statut="f",
+ typ="R",
+ ang = "enter a real value",
+ fr = "entrer un reel",
+ ),
+ VALUE_COMPLEX = SIMP (statut="f",
typ="C",
- defaut=1,
ang = "enter a complex value",
fr = "entrer un complexe",
),
PERMEABILITY = FACT ( statut="o",
ang ="Permeability properties",
fr ="proprietes du bloc PERMEABILITY",
+ regles = ( UN_PARMI ('VALUE_REAL','VALUE_COMPLEX'),
+ ),
LAW = SIMP (statut="o",
typ="TXM",
into = ("LINEAR","NONLINEAR"),
ang = "type of law",
),
- HOMOGENEOUS = SIMP (statut="o",
+ HOMOGENEOUS = SIMP (statut="f",
typ="TXM",
defaut="TRUE",
into = ("TRUE","FALSE"),
ang = "the material is homogeneous",
+ fr = "le materiau est homogene",
),
- ISOTROPIC = SIMP (statut="o",
+ ISOTROPIC = SIMP (statut="f",
typ="TXM",
defaut="TRUE",
into = ("TRUE","FALSE"),
ang = "the material is isotropic",
+ fr = "le materiau est isotrope",
),
- VALUE_COMPLEX = SIMP (statut="o",
+ VALUE_REAL = SIMP (statut="f",
+ typ="R",
+ ang = "enter a real value",
+ fr = "entrer un reel",
+ ),
+ VALUE_COMPLEX = SIMP (statut="f",
typ="C",
- defaut=1,
ang = "enter a complex value",
+ fr = "entrer un complexe",
),
), # fin FACT PERMEABILITY
fr= "definition du bloc NILMAT",
sd_prod= materiau,
- NAME = SIMP (statut="o",
- typ="TXM",
- ang = "name of the linked mesh group",
- fr = "nom du groupe de mailles associe",
- ),
+
) # fin OPER NILMAT
# --------------------------------------------------
class materiau ( ASSD ) : pass
class grmaille ( ASSD ) : pass
-class loiNL ( ASSD ) : pass
+class loi ( ASSD ) : pass
#CONTEXT.debug = 1
# --------------------------------------------------
),
LAW = SIMP (statut="o",
- typ="TXM",
- defaut="LINEAR",
- into = ("LINEAR","NONLINEAR"),
- ang = "type of law",
- fr = "type de loi",
+ typ= (loi,),
+ ang = "Choice of law",
+ fr = "Choix d une loi",
),
HOMOGENEOUS = SIMP (statut="f",
),
LAW = SIMP (statut="o",
- typ="TXM",
- defaut="LINEAR",
- into = ("LINEAR","NONLINEAR"),
- ang = "type of law",
+ typ= (loi,),
+ ang = "Choice of law",
+ fr = "Choix d une loi",
),
HOMOGENEOUS = SIMP (statut="f",
typ="TXM",
ang = "enter a real value",
fr = "entrer un reel",
),
- VALUE_COMPLEX = SIMP (statut="o",
+ VALUE_COMPLEX = SIMP (statut="f",
typ="C",
ang = "enter a complex value",
fr = "entrer un complexe",
),
LAW = SIMP (statut="o",
- typ="TXM",
- defaut="LINEAR",
- into = ("LINEAR","NONLINEAR"),
- ang = "type of law",
+ typ= (loi,),
+ ang = "Choice of law",
+ fr = "Choix d une loi",
),
HOMOGENEOUS = SIMP (statut="f",
typ="TXM",
ang = "enter a real value",
fr = "entrer un reel",
),
- VALUE_COMPLEX = SIMP (statut="o",
+ VALUE_COMPLEX = SIMP (statut="f",
typ="C",
ang = "enter a complex value",
fr = "entrer un complexe",
),
LAW = SIMP (statut="o",
- typ="TXM",
- defaut="LINEAR",
- into = ("LINEAR","NONLINEAR"),
- ang = "type of law",
+ typ= (loi,),
+ ang = "Choice of law",
+ fr = "Choix d une loi",
),
HOMOGENEOUS = SIMP (statut="f",
typ="TXM",
ang = "enter a real value",
fr = "entrer un reel",
),
- VALUE_COMPLEX = SIMP (statut="o",
+ VALUE_COMPLEX = SIMP (statut="f",
typ="C",
ang = "enter a complex value",
fr = "entrer un complexe",
),
- NonLinearCond = BLOC (condition="LAW=='NONLINEAR'",
- NONLINEAR = SIMP (statut="o",
- typ= (loiNL,),
- ang = "enter a complex value",
- fr = "parametres de la loi non lineaire",
- ),
- ),
), # fin FACT PERMEABILITY
),
LAW = SIMP (statut="o",
- typ="TXM",
- defaut="LINEAR",
- into = ("LINEAR","NONLINEAR"),
- ang = "type of law",
- fr = "type de loi",
+ typ= (loi,),
+ ang = "Choice of law",
+ fr = "Choix d une loi",
),
HOMOGENEOUS = SIMP (statut="f",
typ="TXM",
ang = "enter a real value",
fr = "entrer un reel",
),
- VALUE_COMPLEX = SIMP (statut="o",
+ VALUE_COMPLEX = SIMP (statut="f",
typ="C",
ang = "enter a complex value",
fr = "entrer un complexe",
),
LAW = SIMP (statut="o",
- typ="TXM",
- defaut="LINEAR",
- into = ("LINEAR","NONLINEAR"),
- ang = "type of law",
- fr = "type de loi",
+ typ= (loi,),
+ ang = "Choice of law",
+ fr = "Choix d une loi",
),
HOMOGENEOUS = SIMP (statut="f",
typ="TXM",
ang = "enter a real value",
fr = "entrer un reel",
),
- VALUE_COMPLEX = SIMP (statut="o",
+ VALUE_COMPLEX = SIMP (statut="f",
typ="C",
ang = "enter a complex value",
fr = "entrer un complexe",
) # fin PROC EM_ANISOTROPIC
#=========================================================
-# definition des parametres d une loi
+# definition des parametres d une loi avec si besoin la constitution du sous bloc NONLINEAR
#
-# Constitution de sous bloc NONLINEAR
-# produit un objet "bloc NONLINEAR" de type (classe) loiNL
+# produit un objet de la class loi
#------------------------------------------------
-DEF_NONLINEAR_BL = OPER (nom = "DEF_NONLINEAR_BL",
+LAW = OPER (nom = "LAW",
op = None,
repetable = 'n',
UIinfo= {"groupes":("Definition",)},
ang= "NONLINEAR block definition",
- fr= "definition de bloc NONLINEAR",
- sd_prod= loiNL,
+ fr = "definition des parametres de la loi",
+ sd_prod= loi,
+
+ LINEAR = SIMP (statut="o",
+ typ="TXM",
+ defaut="YES",
+ into = ("YES","NO"),
+ ang = "linear law or not",
+ fr = "loi lineaire ou non",
+ ),
+
+ NonLinearLaw = BLOC (condition="LINEAR=='NO'",
- NATURE = SIMP (statut="o",
+ NATURE = SIMP (statut="o",
typ="TXM",
defaut="SPLINE",
into=("SPLINE","MARROCCO","MARROCCO+SATURATION"),
fr ="jointure appliquee a ",
),
), # fin BLOC MarroSatuParam
+ ),# fin BLOC NonLinearLaw
) # fin OPER
#================================
# 3eme bloc : bloc SOURCES